This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

window.opener.location.href refereshes the page only once  RSS feed

shiva sarna
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am working on a scheduler, where the user can add events.

As soon as the user adds the event he is taken back to the calendar where he can see the event link appearing beside the selected date.

My problem is this.

Add event is a pop up window and after the user click the Add button I want the calendar page(parent window) to reload.

As I am using struts to implement this there are different classes involved.

I tried
But this call my Add Action class and not the class I want to call.

Then I tried

window.opener.location.href="". This works but only once..that is when the user add events to a date first time, the page get refereshed but if he adds the event the second time the add window just closes without refereshing the page.

I am confused why this is happening. is there a way to reset window.opener.location.href.

thanks for your help in advance


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!