I want to put the postalcodes in an array from an xml file but it doesn't work in Firefox o.O Anyone can help with this?
- Code: Select all
if(document.implementation && document.implementation.createDocument)
{
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.async = false;
xmlDoc.load("cities.xml");
/*xmlDoc = document.implementation.createDocument("","",null);*/
xmlObj = xmlDoc.documentElement;
/*this.states = [];
xmlDoc.load('cities.xml');*/
for (i=0;i<1200;i++)
{
this.states[i] = xmlObj.childNodes[i].firstChild.text;
}
}