Answer the question
In order to leave comments, you need to log in
How to bind your ajax to formIt snippet?
I bring the new layout to the end and then I thought. For complete identity to the layout, I wrote the form validation myself. and everything is fine here, only if, as a rule, the php-sending script is usually in a file and I just create XMLHttpRequest() and, if the filled data passes all the conditions, then open('POST', and then the path to php- script).
But what if in MODX all scripts, markup are in the database and are called stupidly by a request to the snippet in a certain place? How do I call formIt? Will the code work if I just do
something. It seems to me that my cunning plan is doomed to failure. And ajaxForm yuzat fu. Notifications there full UG.
XMLHttpRequest().open("POST", "", true);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question