Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDávid Molnár
27,081 Points"?jsoncallback=?" query string is a general solution?
Hey everyone, I've just watched the AJAX basics course and there's something I'm not sure about. I've seen the teacher using this querystring: "?jsoncallback=?" at the end of the url to request JSONP from the server using "$.getJSON()". Is it a general solution that works (and neccessery) on most of the websites or it's rather situational?
1 Answer
Steven Parker
231,269 PointsThe impact of query strings would depend on the API at the server side that is handling the request. There may be some common conventions, but the documentation for service being used should be consulted for specific cases.