This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes refreshing the page below Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "refreshing the page below" Watch "refreshing the page below" New topic
Author

refreshing the page below

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Hello All,

I want to refresh the main page after the close of the modal window popup. I have used window.location.href but it is not working.

I also tried the replace() method of location object but it is also not working.

Please help.

Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Tina, whats your business objective behind refreshing the page. I beleive you want to submit the page.


My blood is tested +ve for Java.
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
yes..

basically want to reload with the fresh data.. even showing the data I added to the particular record in the popup..

Regards,
Tina
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

window.opener.location.reload() ??


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
no.. it does not work.. I am using a modal window.

It does not get the 'opener'

Regards,
Tina
seb petterson
Ranch Hand

Joined: Mar 04, 2005
Posts: 118
If I understood the question correct, in the main page:


Execution halts after the first line, and resumes when the modal window is closed.

Will prolly only work in IE.
 
Consider Paul's rocket mass heater.
 
subject: refreshing the page below
 
Similar Threads
Stereotypes for Java components
Pass value....urgent
Problem compiling JSPs on Tomcat
Flex application not working in Firefox 3.6
java api