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