dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

ajax post submit inside bpopup #18

Closed gine closed 10 years ago

gine commented 11 years ago

I would insert a form inside bpopup which when the user click on submit button, ajax must do something and return with some info. At the moment i didn't understand what's happen but the function that i have setted on ajax post is never called and every time the response returns to the main page where bpopup is called.

gine commented 11 years ago

Solved with:

  action= 'javascript:return false' inside form element

and

  return false; inside succes: method inside $.ajax post