Wrox Programmer Forums
|
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 July 28th, 2008, 07:22 AM
Registered User
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default load iframe

I am having an iframe in which i want to load an url. This url performs some action at server side. After this processing is over another url with some different parameter should get loaded in the same iframe.
Thus the iframe should be loaded & unloaded in a loop.
How can I do this ?
Can anyone help ?

 
Old July 28th, 2008, 08:45 AM
Authorized User
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could put a redirect in your server side code to redirect to your next url/parameter once it is finished. It will reload in the same iframe and continue on.

Shawn Steward
Web Developer
www.shawnsteward.com
 
Old July 31st, 2008, 01:57 AM
Registered User
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello
Thanks for the reply.
Can you please explain this in more detail?

Thanks again.

 
Old August 1st, 2008, 08:52 AM
Authorized User
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What server side code are you running? PHP? C#? VB.NET?

Shawn Steward
Web Developer
www.shawnsteward.com
 
Old August 1st, 2008, 02:59 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

If you want the *CONTROLLING* of what gets loaded next in the IFRAME to be done by the outer window and not by the server-side code in the <IFRAME>, then you could instead have the server-side code "tell" the outer window that it is done. That is, it could spit out a simple JavaScript function call that calls some JS function in the outer window.

This is more complex that the simple redirect that ssteward suggested, so I'd only suggest it if you need some sort of overall controller mechanism.





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 help splinterz HTML Code Clinic 12 April 13th, 2005 01:42 AM
iframe rockon HTML Code Clinic 1 March 2nd, 2005 06:00 AM
iframe...or a better way? stacy HTML Code Clinic 4 September 4th, 2004 11:04 AM
IFRAME Load... babloo81 Javascript 2 June 18th, 2004 03:28 AM





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