Hi,

before posting my code, I'll try to explain the problem:
i have two ajax calls on a single form, and have problems with
responses from server.

This is the situation:
ajax1 = calls the php script that sends the email - and the script
returns "OK" in case of success;
ajax2 = binded to a link (with live() event because that link is added
dinamically) that calls the php script performing some operations and
returns "file cancellato" in case of success.

If the ajax2 is called before sending the mail through ajax1,
everything works, but after the ajax1 submission, if ajax2 link is
clicked, the response of the script is not updated to "file
cancellato" as it should, but it remains "OK" as the previous ajax1
call.

How can I deal with that sort of "multiple responses"?

The page link is http://www.prismastand.it/prismanuovo/richiesta_preventivo.php
The ajax1 is binded to the submit button and the ajax2 is binded to
the cancel button that appears after the file "pianta stand" is
completely uploaded.

Bye bye
Alex - Italy

Reply via email to