trigger jQuery function after location.reload() completes
Posted
by raj
on Stack Overflow
See other posts from Stack Overflow
or by raj
Published on 2009-12-24T01:41:23Z
Indexed on
2010/05/07
7:28 UTC
Read the original article
Hit count: 602
I have a Rails app that allows users to login via jQuery modal form. Once logged in, I refresh the original page using location.reload().
At this point, I'm attempting to create a new jQuery dialog. How can I open the dialog only after location.reload() has finished executing?
Right now the dialog is loading up before location.reload() is done. This is causing the dialog to disappear.
© Stack Overflow or respective owner