aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Frame Refresh code in HTML or Java Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frame Refresh code in HTML or Java Script " Watch "Frame Refresh code in HTML or Java Script " New topic
Author

Frame Refresh code in HTML or Java Script

Rashmi Trivedi
Ranch Hand

Joined: Aug 13, 2001
Posts: 60
Hello Friends
Does any body know how to refresh the frames. I have a web page and within that i have 3 frame. I have writteen jsp code to refresh when it is being loaded however the frames do get refreshed.

any help please..

thanks and regards,
Rashmi Trivedi
P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
Since each frame may have its body, you just need to write refresh code on onload of that body. That will refresh the frame as well. You can't refresh the frames separately.

For example if your frame is

Then you just need to refresh the main.jsp page to refresh mainFrame.

Hope it will help you!


-P Lavti<br />SCJP 5.0 (88%)
P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
Alternatively you can use

<frame id="mainFrame>
<body on Load="javascript: window.setTimeout(7000)">
</body>
</frame>

This will refresh the mainFrame after every 7 seconds. Check setTimeout() for more details.

To cancel the time out, use clearTimeout(). Form more details check clearTimeout().
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Frame Refresh code in HTML or Java Script