W3C home > Mailing lists > Public > www-html@w3.org > April 2003

Re: object as as Iframe alternative

From: Jens Meiert <jens.meiert@erde3.com>
Date: Mon, 28 Apr 2003 09:35:44 +0200 (MEST)
To: www-html@w3.org
Message-ID: <22293.1051515344@www16.gmx.net>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT