473,383 Members | 1,885 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,383 software developers and data experts.

forcing parent window to reload

Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>

BR
Sonnich

Nov 16 '06 #1
2 6974
Sonnich wrote:
Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>
I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();

BR
Sonnich

Nov 16 '06 #2
I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();
..... and :-) I found that it works in one case, but another windows
days, that for freshing it needs to repost something... it is not
always there, but some times... anyone know why?

It does not happen when I change some checkboxes when working, but as
far as I get it at random...

BR
Sonnich

Nov 16 '06 #3

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

Similar topics

1
by: Winfried Koenig | last post by:
Hi everyone, I have a main page: -------------------------------------------------- <html><head><title>Test</title> </head><body> <img id="img_a" name="img_a" src="image_1.png" alt=""><br>
1
by: Debbie Davis | last post by:
Hi there, I'm not very good at javascript but I'm using the following to close a child window and refresh a parent window after updating a database. It's within an ASP page. CODE <SCRIPT>...
2
by: Snolly | last post by:
Hi all, Here is my issue. I have a web page (lets call it page1) with an iframe in it that then opens a pop-up window (page2). The pop-up window is used to edit some data that was loaded into...
2
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...
4
by: Earl Teigrob | last post by:
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and...
7
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with...
3
by: Joe | last post by:
I need to popup a window, allow the user to select an image, update the parent window with this new value (requires a refresh) and then close the child window. Are there any examples of...
2
by: svbc | last post by:
Hi, I am facing a problem with refreshing parent: Parent window : A From A I am opening a child window B using...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.