gauravgr8 Posted August 24, 2007 Share Posted August 24, 2007 HiI want to fetch multiple record from a xml file using javascript. I referred these links-- http://www.w3schools.com/xml/tryit.asp?filename=cd_list- http://www.w3schools.com/xml/tryit.asp?filename=cd_navigatebut I am able to see the result in Internet Explorer but it is not showing any result on Firefox.Pls help me.Thanx in advance. Link to comment Share on other sites More sharing options...
Synook Posted August 24, 2007 Share Posted August 24, 2007 Err... can you show us what code you have written? Link to comment Share on other sites More sharing options...
gauravgr8 Posted August 24, 2007 Author Share Posted August 24, 2007 Err... can you show us what code you have written?I have tried the links mentioned I have not changed the code. The same code is running on Internet Explorer but not on Firefox. I need to run t on Firefox.Thanx for reply Link to comment Share on other sites More sharing options...
jesh Posted August 24, 2007 Share Posted August 24, 2007 I don't think Firefox supports that currently (the XML element on a page). You might look into using AJAX and its responseXML property. Or, you might look into using W3Schools loadXML function described here: http://www.w3schools.com/dom/dom_parser.aspBoth methods would fetch the data from an external XML file and then, using a combination of the HTML DOM and the XML DOM, you could parse that data to find the value you're looking for.HTML DOM Tutorial: http://www.w3schools.com/htmldom/default.aspXML DOM Tutorial: http://www.w3schools.com/dom/default.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.