Created
December 4, 2012 23:47
-
-
Save nataliepo/4210369 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Not sure what the base url should be, but appending the | |
| // callback=? parameter will help use it jsonp-style | |
| var api_url = this._settings.baseAPIURL + | |
| '/search/venue/' + venue_id + | |
| '?callback=?'; | |
| // I append things on the end like category=Hamburger&location=Greenpoint | |
| var ending_url = $.fn.getQueryParameterString(); | |
| // call it! | |
| $.getJSON(api_url,ending_url,function (obj, textStatus, jqXHR) { | |
| console.log("[jsonRequest] response = ", obj); | |
| // work with the obj now | |
| //... | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment