Form with javascript/ajax does not work in WordPress
-
I use a template to hold a form. A plugin register javascript and jQuery. The form is processed by javascript/AJAX and sent to a PHP file to process its $_POST content and return it to the template page filling a <div>.
I tried all the code before, without includin in my WordPress files works perfectly. The process php file returns HTML which is included in a <div> by ajax script.
The same code does not work in wordpress. Firebug shows that javascript is working, the form is emptied but the result never gets back. I wonder about html() method, but it works without WordPress.
Any suggestions?I include 4 files: template, plugin php, javascript file and process file.
- The topic ‘Form with javascript/ajax does not work in WordPress’ is closed to new replies.