-
- 236 Posts
Hi, I've done a bit of a search on this but couldn't really find anything.
I'm using jQuery to show a formit form. The problem is when the form is submitted the page is refreshed and the whole form disappears. I'm guessing I will need to submit the form using ajax to avoid a refresh. I'm not sure how to do this and I also have a feeling that it would interfere with the formit validation. Does anyone have any experience with this?
Many thanks
-
- 24,544 Posts
What is the "action" in your form tag?
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
-
- 24,544 Posts
I guess the next question is what triggers the JavaScript. If it's tied to OnLoad, it should show the form again on submission.
Since you're reloading the page, everything you see on the page should be there again on subsequent submits unless you're somehow preventing that.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
-
- 24,544 Posts
You should be able to set a variable the first time it's unhidden and check that variable to make it visible from then on.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
-
- 24,544 Posts
Thanks for ordering the book.