Login  Register

How to force a page refresh after Ajax call

Posted by Scott McWilliams on Sep 30, 2011; 3:19pm
URL: https://forum.world.st/How-to-force-a-page-refresh-after-Ajax-call-tp3860111.html

All,

What is the proper way to force a page refresh after an Ajax call?  I have button which displays a popup dialog that asks the user to confirm an action (save, logout, etc) and then (possibly) redirect based on their choice.

If the button is configured to use #ajaxSubmit, the popup confirmation appears correctly and the above code does redirect to the correct view if the user so chooses, but it does not force a refresh of the page and displays the contents of the redirected view above the contents of the current view (i.e does not clear the contents of the current browser window).  If I manually refresh the browser, the view is displayed correctly.

If the button is not configured to use #ajaxSubmit, the contents of the current view disappear altogether and the popup confirmation does not appear at all.

Both views are configured with #aidaDontCache = true.

If it makes a difference, I am using the Dolphin port.

Any and all ideas welcomed.

Thanks,
Scott

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida