Wrox Programmer Forums
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 30th, 2003, 04:19 PM
Registered User
Join Date: Sep 2003
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!

Old November 20th, 2003, 11:18 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

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...");

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!

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

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