You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Loading a form into an overlay and closing it with submit button Created Nov 12, 2009

This thread is solved

Views: 1736     Replies: 1     Last reply Nov 23, 2009  
You must login first before you can use this feature

icordoba

Posts: 1

Registered:
Nov 12, 2009

Loading a form into an overlay and closing it with submit button

Posted: Nov 12, 2009

Hello,
I am trying to load a forum into an overlay. it loads ok, but as Submit button is not in the original HTML, the library seems not to recognice it as a close button (if I move that button to the original HTML code, before loading, it closes the overlay ok, but doesn't submit the form.
My question is, how can I load a form and making the submit button of that loaded form submitting submitting the form while also closing the overly?

Thanks for any help,
Ignacio

degenerate

Posts: 156

Registered:
Sep 19, 2008

» Loading a form into an overlay and closing it with submit button

Posted: Nov 23, 2009

Reply to: Loading a form into an overlay and closing it with submit button, from icordoba
A standard form needs to POST somewhere. You cannot do POST in an expose window. You need to POST to another page.

What you need to do is use ajax in your overlay, not use a form with POST.

So instead of form method="post" you need to save the information somewhere with $.get() or $.ajax()