Advertisement
Arckios

Update data

Dec 5th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.45 KB | None | 0 0
  1.     function UpdateParticipant(){
  2.       request = jQuery.ajax({
  3.         url: "/participants/UpdateParticipant",
  4.         method: 'post',
  5.         data: { waiting_for_user_id : id , game_data : boardParts },
  6.         dataType: "json"
  7.       });
  8.        
  9.       request.done(function( msg ) {
  10.         console.log(msg);
  11.       });
  12.        
  13.       request.fail(function( jqXHR, textStatus ) {
  14.         alert( "Request failed: " + textStatus );
  15.       });
  16.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement