ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
PopUpFormAction and cancel event
Title:
B
I
{code}
?
I use PopupFormAction to show a dialog in mvc page where there is also this script to show a busy image $(document).ajaxStart(function () { $('#busydiv').show(); }).ajaxStop(function () { $('#busydiv').hide(); }); if I press OK button all run ok, ajaxStop event is fired and the busy image is hidden. If I press cancel button thiis event is not fired, I don't know why, but ask if there is a cancel event where I can hide it manually. Thank You --- To fire event like your answere I try this ... but seem not run $(function () { $('.awe-popup').on('aweclose', function () { alert('closed'); }); });
Save Changes
Cancel
mtugnoli
asked at 07 Jun 2016
the cancel button will close the window and remove it, it will also trigger the 'aweclose' event, and 'dialogclose' for jQueryUI
at 07 Jun 2016
Omu
use $(document) instead of $('.awe-popup'), the popup is removed on close
at 07 Jun 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK