Standard jQuery ajax POST call in jquery mobile driven page

Standard jQuery ajax POST call in jquery mobile driven page

Hi,
first of all excuse me for my rusty english :)
i've got a problem regarding an ajax form submission via $.ajax POST (and $.post as well).

at submission time all form data are collected in a string and passed to the ajax function.
$.ajax({ type: 'POST', url: url, data: dataString, success: function(){
      alert('it works');
      },
error: function(){

      alert('error');
      }
   });

the call fails and all that i have in the firebug console is this error:
OPTIONS contacts.php
501 Not Implemented

while it works well on a non-jquery mobile page

the same call done with old style js through the standard XMLHttpRequest works fine and i get the classic
POST contacts.php
200 OK

the contacts.php is on a different domain but it's still a server of mine so i have control on it.

thank you very much!

Dario














    • Topic Participants

    • dario