BioFUSION
07-02-2010, 08:56 PM
I have been using a flash file to read an xml file that reads the location of an image and displays it.
Here is an example of the XML file:
<?xml version="1.0" encoding="utf-8"?>
<icons>
<icon image="images/thmbs/set29.jpg" titre="Set 28" desc="POSTED 5-27-08"/>
<icon image="images/thmbs/set27.jpg" titre="Set 27" desc="POSTED 5-23-08"/>
<icon image="images/thmbs/set30.jpg" titre="Set 26" desc="POSTED 5-20-08"/>
</icons>
I am trying to move away from flash, and find a Jscript or Ajax solution to display the images from that same xml file.
Been playing with:
http://www.dynamicdrive.com/dynamicindex11/ajax.htm
But cannot get it to display anything, dunno what I am doing wrong.
Any help would be great.
To be clear, the goal is not to display the url of the image as text but to pull the url and put it into a div or img tag, but display the title/desc as text. Also want to be able to limit the number of nodes it loads, like do the first 4 or the first 8, that way I could have more then 8 nodes but it will only load the first 8 and stop.
Here is an example of the XML file:
<?xml version="1.0" encoding="utf-8"?>
<icons>
<icon image="images/thmbs/set29.jpg" titre="Set 28" desc="POSTED 5-27-08"/>
<icon image="images/thmbs/set27.jpg" titre="Set 27" desc="POSTED 5-23-08"/>
<icon image="images/thmbs/set30.jpg" titre="Set 26" desc="POSTED 5-20-08"/>
</icons>
I am trying to move away from flash, and find a Jscript or Ajax solution to display the images from that same xml file.
Been playing with:
http://www.dynamicdrive.com/dynamicindex11/ajax.htm
But cannot get it to display anything, dunno what I am doing wrong.
Any help would be great.
To be clear, the goal is not to display the url of the image as text but to pull the url and put it into a div or img tag, but display the title/desc as text. Also want to be able to limit the number of nodes it loads, like do the first 4 or the first 8, that way I could have more then 8 nodes but it will only load the first 8 and stop.