Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spry xml data

Status
Not open for further replies.

Linda224

Programmer
Dec 6, 2006
80
US
I have an xml file that i am using as my data to populate a list.
It works perfect in firefox but gives me an error in IE

Here is the xml:

<events>
<event>
<name>Promotion</name>
<date>January 17th 2009</date>
<pic>promo1.gif</pic>
<desc>coming soon...</desc>
</event>
</events>



and my spry data region:

<div spry:region="ds1" >
<h1>Upcoming Events</h1>
<div spry:repeat="ds1">
{ds1::name}
</div>
</div>


and the code that dreamweaver put in:
<script src="../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js" type="text/javascript"></script>


<script type="text/javascript">
<!--
var ds1 = new Spry.Data.XMLDataSet("../Events/events.xml", "events/event");
//-->
</script>


And the error message in IE:

Exception caught while loading Events/events.xml: [object Error]



Any suggestions?
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top