Guest User

Untitled

a guest
Mar 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. function something(callback){
  2.  
  3. $.ajax({
  4. type: "GET",
  5. contentType: "application/x-www-form-urlencoded",
  6. url: "http:url.com",
  7. dataType: 'json',
  8. success:
  9.  
  10. callback
  11. // console.log(data);
  12. // console.log(JSON.parse(data));
  13.  
  14. // window.location.replace("mainkedaabuild.html"+"?#"+data );
  15. ,
  16. error: function()
  17. {
  18. $('#output').html("Unable to connect");
  19. // window.location.replace("404kedaa.html");
  20. }
  21.  
  22.  
  23. });
  24.  
  25. };
  26.  
  27.  
  28. var Blue = something(function (data) {
  29.  
  30.  
  31. data; return data;
  32.  
  33. console.log(Blue);
Add Comment
Please, Sign In to add comment