CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 iframe

Print topic Send  topic

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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.