Advertisement
Guest User

Ajax Call Example

a guest
Aug 21st, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $.ajax({
  2. type: 'GET', // type could be POST, GET, etc all HTTP verbs
  3. url: "http://localhost:8080/",
  4. data: {object},
  5. success: function(data) {
  6. console.log('success');
  7. // write code..
  8. }
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement