Help - Search - Members - Calendar
Full Version: Sample Not Working On Chrome
W3Schools Forum > W3Schools > Suggestions
pcmendes
Attn W3schools:


Some XML DOM samples (e.g. http://www.w3schools.com/dom/dom_nodes_access.asp) do not work on Google Chrome. I get an error message (an empty alert box) when I use the "Try It Yourself" button.

I am trying to code a similar function (i.e., parse an XML tree with GetNodeByTagName, format, and display it) and it also works on Firefox and IE, but not on Chrome 1.0.154.53.

Finally, thank you so much for the site. Terrific job!
justsomeguy
The loadXMLDoc function is the one that causes an empty alert. Chrome might not like the XML.
pcmendes
Hello,

I see loadXMLDoc has been modified. Everything is working OK now.

My code had other bugs, but I have managed to fix it as well.

Thank you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.