J
jon
I've got a page that uses a small set of ajax driven requests to
dynamically populate some divs on the page. It essentially takes the
responseText and puts it in myDiv.innerHTML where needed. Script
blocks are evaled already so they run.
I'm having trouble with a dynamic page contains an object tag that
pulls a .NET applet (IE only). Loading the object via traditional
html renders the control easily. However injecting it in the div
means it doesn't load.
<object id="myApplet" classid="/applets/Control.dll#Comp.Control"
height="200" width="200">
<param name="fields" value="one:two:three">
<param name="interval" value="1000">
</object>
Some things I've tried:
1) document.write() the object line by line within a script block, in
non-ajax situation. This renders the object okay. However
document.write() after the onload of the page clears the content so is
problematic w/ ajax after onload.
2) append the object to the dom with document.createElement('object')
within a script block, etc; it produces the object but it never loads
anything.
Any ideas how I can load the object via ajax? Or even simpler, how I
can dynamically load the object after page load?
Thanks
dynamically populate some divs on the page. It essentially takes the
responseText and puts it in myDiv.innerHTML where needed. Script
blocks are evaled already so they run.
I'm having trouble with a dynamic page contains an object tag that
pulls a .NET applet (IE only). Loading the object via traditional
html renders the control easily. However injecting it in the div
means it doesn't load.
<object id="myApplet" classid="/applets/Control.dll#Comp.Control"
height="200" width="200">
<param name="fields" value="one:two:three">
<param name="interval" value="1000">
</object>
Some things I've tried:
1) document.write() the object line by line within a script block, in
non-ajax situation. This renders the object okay. However
document.write() after the onload of the page clears the content so is
problematic w/ ajax after onload.
2) append the object to the dom with document.createElement('object')
within a script block, etc; it produces the object but it never loads
anything.
Any ideas how I can load the object via ajax? Or even simpler, how I
can dynamically load the object after page load?
Thanks