473,842 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

subwindow - refresh parent

Greetings,

how to refresh a parent window after processing forms from the subwindow?

Currently I have a solution (see below) which works with IE and
Konqueror, but not with Firefox, so I assume it's not a clean solution.

ParentWindow:
==============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body onLoad="self.na me='MainWindow' ;">
Date: <!--#exec cmd="date" --><hr>
<a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
</body>
</html>

SubWindow
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<form action="t1.html " target="MainWin dow"
onClick="window .close();" method="post">
text: <input type="text" value="" name="text">
<input type="submit" value="OK">
<input type="hidden" name="pass" value="2">
</form>
</body>
</html>


Thanks for reading and hints
Wolf
Jul 23 '07 #1
6 4213
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed:
Greetings,

how to refresh a parent window after processing forms from the
subwindow?

Currently I have a solution (see below) which works with IE and
Konqueror, but not with Firefox, so I assume it's not a clean
solution.

ParentWindow:
==============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body onLoad="self.na me='MainWindow' ;">
Date: <!--#exec cmd="date" --><hr>
<a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
</body>
</html>

SubWindow
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<form action="t1.html " target="MainWin dow"
onClick="window .close();" method="post">
text: <input type="text" value="" name="text">
<input type="submit" value="OK">
<input type="hidden" name="pass" value="2">
</form>
</body>
</html>
Why don't you have the script file just reload the main page?

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 23 '07 #2
Neredbojias wrote:
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed:
>Greetings,

how to refresh a parent window after processing forms from the
subwindow?

Currently I have a solution (see below) which works with IE and
Konqueror, but not with Firefox, so I assume it's not a clean
solution.

ParentWindow :
============ ==
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body onLoad="self.na me='MainWindow' ;">
Date: <!--#exec cmd="date" --><hr>
<a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
</body>
</html>

SubWindow
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<form action="t1.html " target="MainWin dow"
onClick="window .close();" method="post">
text: <input type="text" value="" name="text">
<input type="submit" value="OK">
<input type="hidden" name="pass" value="2">
</form>
</body>
</html>

Why don't you have the script file just reload the main page?
Well, this is an excerpt only.
The main page contains a form, so when reloading, a popup
'confirm resend...' appears, which is not desired.

Wolf
Jul 23 '07 #3
rf

"Wolf Grossi" <ng***@magro-soft.comwrote in message
news:5b******** *************** ***@news.inode. at...
Greetings,

how to refresh a parent window after processing forms from the subwindow?
Could you please explain why you need that "subwindow" ?

Remove the popup, problem solved.

--
Richard
Jul 23 '07 #4
[snip]
Could you please explain why you need that "subwindow" ?

Remove the popup, problem solved.
C'mon, this does not answer the question.
If it's not possible from YPOV, say it.
Wolf
Jul 23 '07 #5
Wolf Grossi wrote:
>
how to refresh a parent window after processing forms from the subwindow?
Why don't go ask in a more appropriate newsgroup?
comp.lang.javas cript is over there -->

--
Berg
Jul 23 '07 #6
Bergamot wrote:
Wolf Grossi wrote:
>how to refresh a parent window after processing forms from the subwindow?

Why don't go ask in a more appropriate newsgroup?
comp.lang.javas cript is over there -->
yes of course, tnx.
Wolf
Jul 23 '07 #7

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

Similar topics

1
6746
by: Venkat | last post by:
Hi All, I have got two windows namely parent and a child . My parent window has got a link, on clicking which opens a child window(i am using window.open function). I do the following set of operations In my parent window i click the link which results in popping up the child
4
3187
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches for the parent and finds the proper parent in the datagrid they then click on the accept button in the grid. Then I populate a session variable with the parent ID. I then go back to the main page and have it refresh using: ...
2
1974
by: Paul Moffitt | last post by:
We have a Javascript function that opens an electronic document in a subwindow. The Title bar of the subwindow shows the filepath of the document. Looking at the script below is there any way to add script to the function to either not show the path in the title bar or replace the path with other text? function launchEDoc() { var subWindow window.document.title = "InSight" if (document.forms.EDoc.length){
2
23517
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
2
23530
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an iframe on my page whose html has the refresh meta as follows : <meta http-equiv="refresh" content="10"> The iframe is effectivelyh refreshed every 10 seconds without having the
1
1835
by: Marcel | last post by:
I have a subwindow hich displays a grid. When the user selects a row from the grid, I wish to store the selected row ID in session state and close the subwindow, returning focus to the parent (opener). Normally I would do this in javascript, but I cannot find any client side intelligence in the grid, so I wish to close the window on the select index changed event when I return to the server. I can't remeber how to add an OnLoad...
5
4617
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the program should update a database, close the window and refresh the parent window. My question is does anyone have a example of popup window wich will close it's self and refresh the parent window when a user clicks on a button? I know there are...
1
2368
by: Wolf Grossi | last post by:
Greetings, how to refresh or reload a parent window after processing forms from the subwindow? Currently I have a solution (see below) which works with IE and Konqueror, but not with Firefox, so I assume it's not a clean solution.
2
1574
by: nicofari | last post by:
Hi all, I would need to open a "subwindow of a subwindow". From first page (say "main.html") I open a window using javascript window.open('form1.html',...) After that I have two browser windows, which is fine. Now from the last window I would like to open another with the same tecnique:
0
9709
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10934
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10303
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7853
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7025
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4085
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.