|
|
 |
| 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.
|
 |

September 30th, 2003, 05:19 PM
|
|
Registered User
|
|
Join Date: Sep 2003
Location: Springfield, Missouri, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

November 20th, 2003, 11:18 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 0 Times in 0 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...");
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!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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 |
|
 |