Page 1 of 1

Change an 'object' content...

Posted: Tue May 31, 2005 1:05 am
by Sacapuss
Hi !

To transfer a file content in a part of my page, i'd like to change an 'object' content.

It could be something like that :

Code: Select all

<object
id=&quote;tarmac&quote;
data=&quote;1.html&quote;
>
</object>

<a onclick=&quote;document.getElementById('tarmac').data='2.html'&quote;>
change
</a>
But this way doesn't work !

Who has the solution ???

Thanx for your help !

Posted: Tue May 31, 2005 10:26 pm
by wwwapu
Have you succeeded with this?

Code: Select all

<object id=&quote;tarmac&quote; data=&quote;1.html&quote;></object>
because I havn't. Object would be ideal way of inserting menus and such on servers where there isn't any PHP or other programmatic way of including them. Only if it worked with all browsers.

You may find answers in my next question...

Posted: Fri Jun 03, 2005 6:12 pm
by Sacapuss
Hi wwwapu !

You may find answers in my next question...