Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 30th, 2003, 04:19 PM
Registered User
 
Join Date: Sep 2003
Location: Springfield, Missouri, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Progress Bar Help

I am having problems creating a progress bar on my website and was wondering if it is possible to open a new window and control the contents in that window from a parent window. For example...

When a user clicks a link on my page, I want that link to open a new browser window that says "Processing Request...". In the meantime I want the original window to start loading a new page. When the new page finishes loading I would like for it to close the "Processing Request..." page, which was acting somewhat like a progress bar.

What would really be nice is if I could change the messages in the "Processing Request..." page to say different things as the parent window gets closer to loading.

Thanks in advance for the help!

Jake
Reply With Quote
  #2 (permalink)  
Old November 20th, 2003, 11:18 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You could give the link an onClick handler:

<a href="#" onClick="load()">Your link</a>

and then add script to the page with the link:

<script language="javascript">
function load()
{
 var newwin = window.open("the_processing_request_page.htm","new win","//window attributes...");
 window.location = "the_new_page.htm";
}

Give the new page (the one you have been waiting for to load) this code:

<script language="javascript">
var newwin = window.open("the_processing_request_page.htm","new win","//the same window attributes...");
newwin.window.close();
</script>

The new page should still recognize the popup and close it.

Sorry, I don't know how to make different messages closer to when the page is finished loading.

Hope it helps!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Progress Bar jmss66 VB How-To 6 December 16th, 2009 10:25 PM
Progress Bar dotnetsathya VS.NET 2002/2003 0 September 26th, 2007 12:33 AM
Progress bar Poncho Pro VB 6 1 March 23rd, 2006 03:18 PM
progress bar treasacrowe Classic ASP Basics 11 February 11th, 2005 10:47 AM
Progress Bar BSkelding ASP.NET 1.0 and 1.1 Basics 3 May 4th, 2004 04:12 AM



All times are GMT -4. The time now is 04:59 AM.


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