[jQuery] jQuery.Form and url

[jQuery] jQuery.Form and url


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 ?