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 window.location="Scheduler.do"; window.opener.location.reload(); But this call my Add Action class and not the class I want to call.
Then I tried
window.opener.location.href="Scheduler.do". 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.