473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Reload after sumit

I need to be able to allow a user to submit a form which opens another
window. This part I have working. But after the submit, I need to delay
and have the original window do a reload. I cannot figure out how to do
this. If I do a delay and reload with an OnSubmit, then the new window
will load only after the reload, which will not work.

Basically the first page displays a set of things that need to be done,
and after clicking on the button of something outstanding, a new window
pops up, and the action is preformed. Once the action is done, that
item is no longer needed to be done, so the original window I need to do
a reload, so it will not show up as outstanding any more. A 1 or 2
second delay would be plenty.

Any ideas?

Thanks,

Marshall

Jul 20 '05 #1
1 2048
Marshall Dudley wrote:
I need to be able to allow a user to submit a form which opens another
window. This part I have working. But after the submit, I need to delay
and have the original window do a reload. I cannot figure out how to do
this. If I do a delay and reload with an OnSubmit, then the new window
will load only after the reload, which will not work.

Basically the first page displays a set of things that need to be done,
and after clicking on the button of something outstanding, a new window
pops up, and the action is preformed. Once the action is done, that
item is no longer needed to be done, so the original window I need to do
a reload, so it will not show up as outstanding any more. A 1 or 2
second delay would be plenty.


Why have this second window?

If the main page needs to be reloaded anyway, just submit without a
target window specified, and have the servlet process the submission,
and return the new, updated page.

If you INSIST, then you can have the newly opened window calling a
javascript function in its parent window which does a reload. Use
window.opener to get to the parent. Or the child could call a Javascript
function in its parent window which just uses DOM calls to change the
display to remove the "outstanding" status.

There is no sleep() function in Javascript.

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

66
by: Ellinghaus, Lance | last post by:
> > Other surprises: Deprecating reload() >Reload doesn't work the way most people think >it does: if you've got any references to the old module, >they stay around. They aren't replaced. ...
4
by: David MacQuigg | last post by:
I'm going to be teaching EEs some basic Python using the first few chapters of Learning Python, 2nd ed. by Mark Lutz. The discussion on Reloading Modules starting on page 266 is confusing and I...
1
by: Emmanuel | last post by:
Hi, I use a 'reload all' feature in my app, that allow to reload every module. I first try this version : import sys def Reload():
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
4
by: Lonnie Princehouse | last post by:
So, it turns out that reload() fails if the module being reloaded isn't in sys.path. Maybe it could fall back to module.__file__ if the module isn't found in sys.path?? .... or reload could...
3
by: John Salerno | last post by:
I understand that after you import something once, you can reload it to pick up new changes. But does reload work with from statements? I tried this: from X import * and then did my testing....
8
by: T. Wintershoven | last post by:
Hi all, Is there a simple way in php to reload a page coded within an if statement.(see code below) It's very important that the session stays intact. The filename is RCStudent.php ...
0
by: Rafe | last post by:
Hi, This seems to be an old question, and I've read back a bit, but rather than assume the answer is "you can't do that", I'd thought I'd post my version of the question along with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.