Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

object as as Iframe alternative

From: Marcos Caceres <marcos@datadriven.com.au>
Date: Mon, 28 Apr 2003 11:47:43 -0700
To: <www-html@w3.org>
Message-ID: <000001c30db6$a93c34d0$7290b583@provenance>

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 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.