Javascript RESTful client call using jQuery
$.ajax({ Â Â Â type: 'POST', Â Â Â url: 'http://fscebook.comxa.com/index.php', Â Â Â crossDomain: true, Â Â Â data: {user:user, pass:pass}, Â Â Â cache: false, Â Â Â success: function(data) { Â Â Â Â if($.trim(data) == "false") { Â Â Â Â Â alert("Fail to recived data"); Â Â Â Â } Â Â Â Â else { Â Â Â Â Â alert("Successfully data recived"); Â Â Â Â Â $('.results').html(data); Â Â Â Â } Â Â Â } Â Â });
















