aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes JSP JavaScript Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JSP JavaScript Query" Watch "JSP JavaScript Query" New topic
Author

JSP JavaScript Query

kavan desai
Ranch Hand

Joined: Jan 16, 2005
Posts: 32
Hello Friend
I have question regarding jsp and java script. i showing some mesages in my jsp page just like any message bard page on clicking more link of the message field , it will open popup window which shows the message content in detail.and after cloing that window with close button the parent page get refreshed. i m using javascript function for the code on close button is show below. I m using Interet Explorer as my web browser.

function closeOpr()
{

window.close();
window.opener.location.reload();

}

The message i m getting on closing popwidow with the above give function is :
Thee page cannot be refreshed without resending the information click retry to send the information again.

Please help me .

Thanx
Kavan
[ November 15, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Moved


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Problem is you had a form on that page and it was submitted.

Try doing this instead of reloading

window.opener.location.href = window.opener.location.href;

AND put it before the window.close()!!

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP JavaScript Query
 
Similar Threads
jsp page refreshing containing thread
Using window.open( ).......
JSP JavaScript Query
How to refresh page only once automatically when page is loaded
post forms and window.reload()