Difference between revisions of "JSONp"

From BC$ MobileTV Wiki
Jump to: navigation, search
Line 15: Line 15:
 
* '''YouTube video widget (via JSONp): http://bcmoney-mobiletv.com/metaweb/youtube/'''
 
* '''YouTube video widget (via JSONp): http://bcmoney-mobiletv.com/metaweb/youtube/'''
 
* YouTube AJAX API integration (video/playlist search): http://www.yvoschaap.com/youtube.html
 
* YouTube AJAX API integration (video/playlist search): http://www.yvoschaap.com/youtube.html
 +
* Developer's Guide -- JSON-C / JavaScript: http://code.google.com/apis/youtube/2.0/developers_guide_jsonc.html
 +
* (Interactive test tool) Understanding the YouTube API's JSON-C responses: http://code.google.com/apis/youtube/articles/view_youtube_jsonc_responses.html
 +
* YouTube JavaScript Player API Reference: http://code.google.com/apis/youtube/js_api_reference.html
 +
  
  
Line 46: Line 50:
 
* JavaScript-Based Authentication: http://developers.facebook.com/docs/authentication/javascript
 
* JavaScript-Based Authentication: http://developers.facebook.com/docs/authentication/javascript
 
* New Facebook Javascript API: http://blog.toppingdesign.com/2010/04/26/new-facebook-javascript-api/
 
* New Facebook Javascript API: http://blog.toppingdesign.com/2010/04/26/new-facebook-javascript-api/
<ref>Facebook Connect JavaScript SDK: http://github.com/facebook/connect-js</ref><ref>Building a Better Photo Uploader (with JSONp): http://www.facebook.com/note.php?note_id=178492968919</ref><ref>Facebook JavaScript Client Library: http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library</ref><ref>Old JavaScript SDK: http://developers.facebook.com/docs/reference/oldjavascript/</ref>
+
<ref>Facebook Connect JavaScript SDK: http://github.com/facebook/connect-js</ref><ref>Facebook JavaScript Client Library: http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library</ref><ref>Old JavaScript SDK: http://developers.facebook.com/docs/reference/oldjavascript/</ref><ref>Building a Better Photo Uploader (with JSONp): http://www.facebook.com/note.php?note_id=178492968919</ref>
 +
 
 +
 
 +
=== Google ===
 +
 
 +
* '''Google web search widget (via JSONp): http://bcmoney-mobiletv.com/metaweb/google/'''
 +
* Google Search AJAX API: http://code.google.com/apis/ajaxsearch/
 +
* Google Feed API — Now with instant gratification: http://googleajaxsearchapi.blogspot.com/2010/05/google-feed-api-now-with-instant.html
 +
 
 +
 
 +
=== Yahoo ===
 +
 
 +
* '''Yahoo! Term Extractor widget: http://bcmoney-mobiletv.com/metaweb/yahoo/'''
 +
* Yahoo! web-wide proxy content scraper widget (via YQL and JSONp):
 +
 
  
  
Line 64: Line 82:
 
* XML to JSONML Client-side (Flash .swf) Proxy: http://synaptify.com/?p=19592
 
* XML to JSONML Client-side (Flash .swf) Proxy: http://synaptify.com/?p=19592
 
* Mocking Facebook Connect Javascript API: http://www.ajaxlines.com/ajax/stuff/article/mocking_facebook_connect_javascript_api.php
 
* Mocking Facebook Connect Javascript API: http://www.ajaxlines.com/ajax/stuff/article/mocking_facebook_connect_javascript_api.php
 +
* '''MEGAUPLOADから簡単にダウンロード (download MegaUpload videos easily): http://hail2u.net/blog/coding/fast-megaupload.html'''
  
  

Revision as of 13:12, 29 May 2010

JSON with Padding (commonly abbreviated JSONP) is a JSON extension wherein a prefix is specified as an input argument of the call itself. This padding prefix is typically the name of a callback function, but may also be a variable assignment, an if statement, or any other Javascript statement prefix. The original proposition appears to have been made in the MacPython blog in 2005 [17] and is now used by many Web 2.0 applications such as Dojo Toolkit Applications, Google Toolkit Applications[18] and Web Services. Further extensions of this protocol have been proposed by considering additional input arguments as, for example, is the case of JSONPP[1] supported by S3DB web services.

Because JSONP makes use of script tags, calls are essentially open to the world. For that reason, JSONP may be inappropriate to carry sensitive data.[20]

Including script tags from remote sites allows the remote sites to inject any content into a website. If the remote sites have vulnerabilities that allow JavaScript injection, the original site can also be affected.[2]



Examples

YouTube


Flickr


Last.fm


Twitter


Facebook

[3][4][5][6]


Google


Yahoo




External Links


References

  1. Almeida, Jonas (June 11, 2008). "JSON, JSONP, JSONPP?". S3DB: http://sites.google.com/a/s3db.org/s3db/documentation/mis/json-jsonp-jsonpp. Retrieved April 26, 2009.
  2. wikipedia: JSONP#JSONP
  3. Facebook Connect JavaScript SDK: http://github.com/facebook/connect-js
  4. Facebook JavaScript Client Library: http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library
  5. Old JavaScript SDK: http://developers.facebook.com/docs/reference/oldjavascript/
  6. Building a Better Photo Uploader (with JSONp): http://www.facebook.com/note.php?note_id=178492968919


See Also

JSON | AJAX | jQuery | JavaScript | XSS