Re: object as as Iframe alternative

Thank god proprietary and one-browser-supported pseudo standards are not
integrated in recent XHTML specifications...

Nevertheless I think your suggestion includes two aspects... on the one
hand, the object element is of a quite different nature than the MS iframe
element, so for me the proposal sounds like replacing the p element by the span
element (hope you know what I mean)... on the other hand, your problem depends
on the kind you want to attain dynamic -- using server-side scripts or script
languages (PHP, Perl) you avoid as well visualization problems (because users
might disable JavaScript) as compatibility faults (like your example may
illustrate it).


Regards,
 Jens.



> 
> 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
> 


-- 
Jens Meiert

Steubenstr. 28
D-26123 Oldenburg

Telefon +49 (0)441 99 86 147
Telefax +49 (0)89 1488 2325 91
Mobil +49 (0)175 78 4146 5

eMail <jens@meiert.com>
Internet <http://meiert.com>

Received on Monday, 28 April 2003 03:53:26 UTC