Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2004, 02:21 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: Tehran, Tehran, Iran.
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can I refresh the contents of an iframe?

hi all,
 how can I refresh an iframe's contents(an html file) on my page without refreshing the whole page(the page encluding the iframe).
I mean how shall I refresh just the part including the iframe?

 
Old September 27th, 2004, 03:36 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi nerssi,

Code:
window.frames["myIframe"].location.reload();
HTH,

Chris

 
Old November 4th, 2004, 06:05 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Nerssi
You can use <META HTTP-EQUIV="Refresh" CONTENT="10"> into ur html/asp pages.
or u can use the Method given by Chris to call from another frame too,
well that one is a simple and more reliable method,since we can call it depending upon any conditions , so its better to use Chris Method :)
Cheers !!!

vinod




Similar Threads
Thread Thread Starter Forum Replies Last Post
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
iframe refresh problem haieshwar Javascript 3 January 17th, 2007 06:59 PM
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
iframe refresh scrolls main page down kdm260 ASP.NET 2.0 Professional 0 May 16th, 2006 02:06 PM
How to print contents of IFrame when is it a frams nancy Javascript How-To 3 March 29th, 2005 10:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.