开发者

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.');
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜