Click here to get back home

subwindow - refresh parent

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
subwindow - refresh parent Wolf Grossi 07-23-2007
Get Chitika Premium
Posted by Wolf Grossi on July 23, 2007, 2:56 am
Please log in for more thread options


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.name='MainWindow';">
Date: <!--#exec cmd="date" --><hr>
<a href="t2.html?pass=1" target='SubWindow'>Open SubWindow</a>
</body>
</html>



SubWindow
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<form action="t1.html" target="MainWindow"
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

Posted by Neredbojias on July 23, 2007, 6:07 am
Please log in for more thread options


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.name='MainWindow';">
> Date: <!--#exec cmd="date" --><hr>
> <a href="t2.html?pass=1" target='SubWindow'>Open SubWindow</a>
> </body>
> </html>
>
>
>
> SubWindow
> =========
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
> <body>
> <form action="t1.html" target="MainWindow"
> 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.

Posted by Wolf Grossi on July 23, 2007, 6:32 am
Please log in for more thread options


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.name='MainWindow';">
>> Date: <!--#exec cmd="date" --><hr>
>> <a href="t2.html?pass=1" target='SubWindow'>Open SubWindow</a>
>> </body>
>> </html>
>>
>>
>>
>> SubWindow
>> =========
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> <html>
>> <body>
>> <form action="t1.html" target="MainWindow"
>> 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

Posted by rf on July 23, 2007, 6:45 am
Please log in for more thread options



> 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



Posted by Wolf Grossi on July 23, 2007, 7:13 am
Please log in for more thread options


[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

Similar ThreadsPosted
CSS parent problem March 21, 2005, 5:08 pm
Refreshing the Parent March 31, 2006, 2:37 pm
Target frame link anchor in new parent html file December 13, 2004, 3:47 am
JPG needs refresh button to appear September 13, 2004, 4:21 pm
JPG needs refresh button to appear September 13, 2004, 4:21 pm
dead images after refresh August 23, 2004, 1:06 pm
Opera doesn't refresh IFrame August 8, 2006, 9:52 am
Website needs refresh to change May 15, 2007, 10:06 am
Is there an equivalent of META REFRESH in PDF? October 19, 2007, 3:50 am
How to periodically refresh content of my page? June 11, 2006, 7:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap