thegreatone Posted May 19, 2008 Share Posted May 19, 2008 hi guy i am trying a image gallery tutorial in dreamweaver when i go to test my page it comes up with a red box with the words "Exception caught while loading data.xml: [object Error]" and am no sure what is wrong can anyone help a novice to why this is happening.i will post the code if that helpshtml <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><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("data.xml", "imageset/image");//--></script><link href="style.css" rel="stylesheet" type="text/css" /></head><body><div id="wrap"> <div spry:detailregion="ds1"> <div id="limg"> <img src="Images/Gallery/Graphics/{ds::imgfile}" width="{ds::imglarwidth}" height="{ds::imglarheight}" alt="{ds::imgfile}" /> </div> </div> <div id="cont"> <div spry:region="ds1"> <ul id="ulthumb"><li spry:repeat="ds" spry:setrow="ds"><img src="Images/Gallery/Graphics/{imgfile}" width="{imgthumbwidth}" height="{imgthumbheight}" alt="{imgname}" /></li></ul> </div> </div> <p style="margin:0px auto;padding:20px 0px;text-align:center;display:block;width:100%;height:1%;"><a href="../spry_image_gallery.php" title="Image Gallery using Spry framework">Go back</a></p></div></body></html> and xml <?xml version="1.0" encoding="utf-8"?><imageset> <image> <imgfile>1.png</imgfile> <imgthumbwidth>50px</imgthumbwidth> <imgthumbheight>50px</imgthumbheight> <imglarwidth>339px</imglarwidth> <imglarheight>254px</imglarheight> </image> <image> <imgfile>2.png</imgfile> <imgthumbwidth>50px</imgthumbwidth> <imgthumbheight>50px</imgthumbheight> <imglarwidth>339px</imglarwidth> <imglarheight>254px</imglarheight> </image> <image> <imgfile>3.png</imgfile> <imgthumbwidth>50px</imgthumbwidth> <imgthumbheight>50px</imgthumbheight> <imglarwidth>339px</imglarwidth> <imglarheight>254px</imglarheight> </image> <image> <imgfile>4.png</imgfile> <imgthumbwidth>50px</imgthumbwidth> <imgthumbheight>50px</imgthumbheight> <imglarwidth>339px</imglarwidth> <imglarheight>254px</imglarheight> </image></imageset> thanks Link to comment Share on other sites More sharing options...
aalbetski Posted May 20, 2008 Share Posted May 20, 2008 off the top of my head, it looks like this line var ds1 = new Spry.Data.XMLDataSet("data.xml", "imageset/image");should bevar ds1 = new ActiveXObject(Spry.Data.XMLDataSet) you will have to set the other properties based on the methods exposed.As I said, this is just at first glance, not knowing anything about Spry Link to comment Share on other sites More sharing options...
Les Posted May 20, 2008 Share Posted May 20, 2008 I've seen similar posts elsewhere, and the problem appears to be with IE. Have you tried this under Firefox?-CzechM8 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.