Click to See Complete Forum and Search --> : Data binding erratic when run from server


abgoldberg03
03-04-2004, 08:10 AM
I've got a page that dynamically binds an image to an <img> tag using the code in the <head>:

<object id = "Images" classid = "CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param name = "DataURL" value = "images.txt" />
<param name = "UseHeader" value = "True" />
</object>

and in the <body>:

<img datasrc = "#Images" datafld = "image" alt = "Image" style = "position: relative; left: 45px" />

The page has buttons (e.g., first, previous, next, last) that invoke a javascript method to move between the images specified by the "images.txt" file.

The page works perfectly fine when run locally. Oddly, though, once the page is put on a server (with the images.txt in the same location relative to the .html file), clicking any of the buttons leads to the javascript error: "Operation is not allowed when the object is closed." If i then browse to another page and return to this page, the buttons work exactly as they should, and the image changes appropriately without any error messages.

Is anyone familiar with this erratic behavior of the data binding not working initially, then working after leaving the page and returning? Note that this only happens when the page is run from a server.

Thanks in advance for any insight into this problem.

- Andrew