PDA

View Full Version : Ext-JS not loading in SAFARI 4 (Safari does not support XMLDOC load method .)



nj_gm
12 May 2009, 1:25 AM
Safari does not support XMLDOC load method .

following is not recognized by safari:
xmlDOC.load(comparator.xml)

Could anyone suggest alternate for this ?


Tnx in advance!

nj_gm
12 May 2009, 5:17 AM
Hi All,

I found out the soln (use XMLHttpRequest to load XML Doc),code snippet as follows :

try
{
xmlDoc = new XMLHttpRequest();
xmlDoc.open("GET", "scripts/componentConfig/component.xml", false);
xmlDoc.send();
xmlDoc=xmlDoc.responseXML;

}
catch(e)
{
alert(e.message)
return;
}