Advertisement
Guest User

Ajaxa

a guest
Dec 11th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function (){
  2.             $("#getmap").click(function () {
  3.                 $.ajax({
  4.                     method:"post",
  5.                     url: "https://ewserver.di.unimi.it/mobicomp/mostri/getmap.php",
  6.                     data: JSON.stringify({session_id : 'zqfQaL0q6TKACDrP'}),
  7.                     type: "POST",
  8.                     dataType : "json",
  9.                     success: function (result) {
  10.                         console.log(result);
  11.                     },
  12.                     error: function (error) {
  13.                         alert( "Sorry, there was a problem!" );
  14.                         console.log( "Error: " + errorThrown );
  15.                     },
  16.                 })
  17.             })
  18.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement