Guest User

Untitled

a guest
May 16th, 2012
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function btnStart_click() {
  2.     $.ajax({
  3.         url:ajaxUrl,
  4.         type:"GET",
  5.         dataType:"json",
  6.         data:{
  7.             "action":"session@renew"
  8.         },  
  9.         success:function(data, status, xhr) {
  10.             $("#pSid").text("Session ID: " + data.sid);
  11.         },  
  12.         error:function(xhr, status, error) {
  13.             alert(error + "\n" + status + "\n" + JSON.stringify(xhr));
  14.         }  
  15.     });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment