I'm new to jQuery and I try to use the form.js plugin to upload image for preview and validate others input fields in 2 steps.
First : The user choses the image, upload it and has a preview of the image (in a div) back from the server. For that I use ajaxSubmit() method and responseXML and it works fine. I have the preview image in my div and the user can see what he chose.
Second : He clicks the submit button to submit the others fields. But there is the pb, after submitting the form with the submit button I have an error message from the responseXMl object with stranges tags that I ve never sent from the script from the server side and nothing works.
My question is can I do that in 2 steps with the plugin (I know that ajaxSubmit() send all the datas to the server in 1 step but it does not suit to my application).
Do you have an idea to solve my pbs or must use 2 different forms for the image and the other input fields?