p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Web Programming > JavaScript > Javascript How-To
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 30th, 2003, 05:19 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
__________________
Jake
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 20th, 2003, 11:18 PM
Friend of Wrox
Points: 2,801, Level: 22
Points: 2,801, Level: 22 Points: 2,801, Level: 22 Points: 2,801, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 0 Times in 0 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Progress Bar dotnetsathya VS.NET 2002/2003 0 September 26th, 2007 01:33 AM
Progress bar Poncho Pro VB 6 1 March 23rd, 2006 03:18 PM
Progress Bar jmss66 VB How-To 4 December 27th, 2005 04:55 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 05:12 AM



All times are GMT -4. The time now is 09:52 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc