- From: Marcos Caceres <marcos@datadriven.com.au>
- Date: Mon, 28 Apr 2003 11:47:43 -0700
- To: <www-html@w3.org>
HI, Given that iframe is not supported by XHTML (strict), I thought it might be a good idea to simply use an object element as an alternative. The problem is that I can't seem to get the object element to dynamically update when I change the data attribute. Does anyone have any idea why object elements cannot be dynamically updated? ... some sample code: <object id="myObj" data="test.svg" type="image/svg+xml" width="250px" height="250px"></object> <div onclick="document.getElementById('myObj').setAttribute('data', 'test2.svg'); ">Change dynamically!</div> <div onclick="alert(document.getElementById('myObj').data)">the data is now...</div> Thanks, Marcos Caceres
Received on Sunday, 27 April 2003 22:24:56 UTC