risolto!
occorre specificare onSubmit="return false" nel tag FORM in modo che il submit venga effettuato solo dal javascript.
grazie comunque