gen
|
Posted: 10/30/2003, 1:24 PM |
|
Hi!
Anyone know how to refresh a iframe but not every x seconds, just when i click on a button or a link?
It work for a button but not for a link.
I'm using ccs/asp/access db
thanks
|
|
|
RonB
|
Posted: 10/30/2003, 11:43 PM |
|
In the document object model the iframe is an objct to wich you can refer. insert the button and do an onlcik event:
onclick="myIframe.location.reload()"
That's all. So just look up the name of the iframe and use the code above removing myIframe and inserting the name of your iframe.
Ron
|
|
|
gen
|
Posted: 10/31/2003, 6:15 AM |
|
Thanks Ron, but it already work for a button (onclick=top.location.reload()) and it work fine but if i apply the same thing on a link, it doesn't work cause he did this event before going to the other page. Is there a way that i can refresh the page on the before show events of the page? i try it but it doesnt work. Is there another code that i need to put instead of top.location.reload()?
N.B.: this events work fine in ie but not in netscape...????
Thanks
Gen
|
|
|
|