Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getData(selector,callback) {
- return $.ajax({
- url:"myurl/logs?" + selector,
- jsonp: "callback",
- dataType: "jsonp",
- success: callback
- })
- }
- getData().done(function(result){
- // my function here
- }
- [{"startTime":"2014-10-08T11:57:10.968Z","endTime":"2014-10-08T11:57:15.169Z"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement