Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 October 21st, 2004, 12:34 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default Refresh a frame from another frame

I have this page that gets displayed as a result of a succesful insert statement, but I want this page to refresh another frame which has a dropdown box with all the records from the database. Can somebody give me a function that I will only have to pass the name of the frame and it will refresh it?

Thanks so much


Christian
__________________
Christian
 
Old October 21st, 2004, 04:00 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Christian,

Assuming the frame you want to refresh is in the same frameset as the page you want to call the refresh from, you can use
Code:
parent.frames['yourFrameName'].location.reload();
HTH,

Chris

 
Old October 21st, 2004, 09:09 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris you are a GENIUS. I tried so many things and nothing worked. Is there any good javascript book you can recommend for me to read?

Thanks so much


Christian
 
Old October 21st, 2004, 11:20 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Christian,

I'd recommend the Wrox Beginning & Professional JavaScript books - both contain a wealth of information.

Best regards,

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set one frame src from other frame akumarp2p ASP.NET 1.x and 2.0 Application Design 2 March 13th, 2007 04:13 AM
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
refresh other form inside frame. (ASP.NET C#) richie86 ASP.NET 1.0 and 1.1 Basics 1 December 1st, 2005 02:18 PM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Refresh only one frame Che Guevara Javascript 5 October 26th, 2004 10:08 AM





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