• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP JavaScript Query

 
kavan desai
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic