Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $(document).ready(function() {
  2. $.ajax({
  3. url: "http://www.strava.com/stream/segments/860503&callback=?",
  4. dataType: "json",
  5. success: function(data) {
  6. $(document.body).append(data.latlng);
  7. }
  8. });
  9. });
  10.  
  11. $(document).ready(function() {
  12. $.getJSON("http://www.strava.com/stream/segments/860503&callback=?", function(data) {
  13. $(document.body).append(data.latlng);
  14. });
  15. )};
  16.  
  17. myCallback({ ...... });
  18.  
  19. $(document).ready(function() {
  20. $.getJSON("http://www.strava.com/stream/segments/860503?callback=cb", function(data) {
  21. $(document.body).append(data.latlng);
  22. });
  23. )};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement