Issue 988: TypeError:Object #<a Document>has no method 'load'
http://code.google.com/p/chromium/issues/detail?id=988

Comment #9 by [EMAIL PROTECTED]:
Got the same error before but found a worarond for it, here goes how i did  
it:

var error = "";
var file = root+"/inc/xml/linguas_"+lg+".xml";
try //Internet Explorer
{
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load(file);
}
catch(e)
{
  try //Firefox, Mozilla, Opera, etc.
  {
   xmlDoc=document.implementation.createDocument("","",null);
   xmlDoc.async=false;
   xmlDoc.load(file);
  }
  catch(e)
  {
   try //Google Chrome
   {
    var xmlhttp = new window.XMLHttpRequest();
    xmlhttp.open("GET",file,false);
    xmlhttp.send(null);
    xmlDoc = xmlhttp.responseXML.documentElement;
   }
   catch(e)
   {
    error=e.message;
   }
  }
}

Hope it helps you



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to