it returns error [object xmlhttprequest] I also tried "/myFolder/login.php" The folder really exists !!! and the php script also !!!
On 23 fév, 19:56, James <james.gp....@gmail.com> wrote: > What specifically is not working correctly? Maybe the filepath > 'myFolder/login.php' could not be found? Is it not returning anything? > Use Firebug for Firefox to help debug AJAX issues. > > On Feb 23, 8:36 am,phicarre<gam...@bluewin.ch> wrote: > > > This function runs correctly: > > > function authentication() > > { > > $('#myForm').ajaxSubmit( > > { > > type:'POST', > > url:'login.php', > > success: function(reponse,status) { }, > > error: function(requete,iderror) { } > > }); > > return false; > > } > > > But not this one: > > > function authentication() > > { > > $('#myForm').ajaxSubmit( > > { > > type:'POST', > > url:'myFolder/login.php', > > success: function(reponse,status) { }, > > error: function(requete,iderror) { } > > }); > > return false; > > } > > > Why ?