how do implemant a remote login using json?
i have an api for users to log in, http://api.example.com/user_login, this is what i need to do:
send the entered password and username to the api and request verifaction using json get 开发者_JAVA技巧a response using json, if successfull create a cookie and redirect to secured area! sorry im a weak javascript program! thanks
You might want to have a look at the JQuery library:
http://api.jquery.com/jQuery.get/
$.get('ajax/test.html', function(data) {
$('.result').html(data);
alert('Load was performed.');
});
精彩评论