.get fails in IE
.get fails in IE
Hi all...
I'm having a problem which is that when i do $.get(....., function(data){alert(data);}) in IE the alert show me ALL HTML CODE OF THE PAGE, but in Mozilla show me just what I return in the php funcion... what is wrong? It's possibly that $.get doesn't work in IE... the url is OK, the parameters are OK, so...
IE is allways producing me headackes... :( i need help because i don't understand why it works less in IE...
Here is my code:
$.get(url, {foovar:foovalue}, function(data)
{
//in my function (in the php file), which attac the database,if all was right i return the string "alldone" if was wrong i return the error.
if(data.indexOf('alldone')!=-1) //ok
{
alert("\n the insert was done");
$('#nombre_curriculum').val('');
$('#div_results').load("/gestion_clients.html #div_results");
$("#form_add_client").hide();
}
else
{
alert("\n an error has occurred:\n"+data);
return false;
}
});
Thanks.