Below code works correct on server, but not locally. I don't use localhost, i just open html file in firefox. I need to make it works like that because this is for phone app (phonegap) and it wont be upload to any server.
jQuery library is loaded correclty.
$.ajax({
type: "GET",
url: "http://www.mydomain.co.uk/test-login.php",
data: { curPage: 153 }
}).done(function( msg ) {
$('body').html( msg );
});