Difference between revisions of "JSONp"

From BC$ MobileTV Wiki
Jump to: navigation, search
Line 9: Line 9:
  
  
== Examples ==
+
>== Examples ==
  
 
=== YouTube ===
 
=== YouTube ===
Line 48: Line 48:
 
* '''Facebook social networking widget (via JSONp): http://bcmoney-mobiletv.com/metaweb/facebook/'''
 
* '''Facebook social networking widget (via JSONp): http://bcmoney-mobiletv.com/metaweb/facebook/'''
 
* JavaScript SDK: http://developers.facebook.com/docs/reference/javascript/
 
* JavaScript SDK: http://developers.facebook.com/docs/reference/javascript/
* Graph Api & Javascript Base Facebook Connect Tutorial: http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
+
* Graph Api & Javascript Base Facebook Connect Tutorial: http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
 
* 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>* JavaScript-Based Authentication: http://developers.facebook.com/docs/authentication/javascript</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>
+
&lt;ref>* JavaScript-Based Authentication: http://developers.facebook.com/docs/authentication/javascript&lt;/ref>&lt;ref>Facebook Connect JavaScript SDK: http://github.com/facebook/connect-js&lt;/ref>&lt;ref>Facebook JavaScript Client Library: http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library&lt;/ref>&lt;ref>Old JavaScript SDK: http://developers.facebook.com/docs/reference/oldjavascript/&lt;/ref>&lt;ref>Building a Better Photo Uploader (with JSONp): http://www.facebook.com/note.php?note_id=178492968919&lt;/ref>
  
  
Line 59: Line 59:
 
* Using YQL with JSONP: http://james.padolsey.com/javascript/using-yql-with-jsonp/
 
* Using YQL with JSONP: http://james.padolsey.com/javascript/using-yql-with-jsonp/
 
* YQL console: http://developer.yahoo.com/yql/console/
 
* YQL console: http://developer.yahoo.com/yql/console/
<ref>Cross-domain communications with JSONP, Part 1 -- Combine JSONP and jQuery to quickly build powerful mashups: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp1/index.html</ref><ref>Cross-domain communications with JSONP, Part 2 -- Building mashups with JSONP, jQuery, and Yahoo! Query Language: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp2/index.html</ref><ref>YQL and JSONP-X (aka. json-p-x, jsonpx, json-px): http://paul.donnelly.org/2009/07/08/yql-and-jsonp-x/</ref><ref>Mashups with JSONP, jQuery and YQL: http://projects.ischool.washington.edu/tabrooks/343INFOAutumn09/JSONP/jsonpJqueryYQL.htm</ref>
+
&lt;ref>Cross-domain communications with JSONP, Part 1 -- Combine JSONP and jQuery to quickly build powerful mashups: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp1/index.html&lt;/ref>&lt;ref>Cross-domain communications with JSONP, Part 2 -- Building mashups with JSONP, jQuery, and Yahoo! Query Language: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp2/index.html&lt;/ref>&lt;ref>YQL and JSONP-X (aka. json-p-x, jsonpx, json-px): http://paul.donnelly.org/2009/07/08/yql-and-jsonp-x/&lt;/ref>&lt;ref>Mashups with JSONP, jQuery and YQL: http://projects.ischool.washington.edu/tabrooks/343INFOAutumn09/JSONP/jsonpJqueryYQL.htm&lt;/ref>
  
  
Line 75: Line 75:
 
* MediaWiki API docs: http://en.wikipedia.org/w/api.php
 
* MediaWiki API docs: http://en.wikipedia.org/w/api.php
  
 
+
----
 
+
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
+
----
 +
=[http://axyzuhy.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
----
 +
=[http://axyzuhy.co.cc CLICK HERE]=
 +
----
 +
</div>
  
 
== Tools ==
 
== Tools ==

Revision as of 04:26, 18 November 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

<ref>* JavaScript-Based Authentication: http://developers.facebook.com/docs/authentication/javascript</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>


Yahoo

<ref>Cross-domain communications with JSONP, Part 1 -- Combine JSONP and jQuery to quickly build powerful mashups: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp1/index.html</ref><ref>Cross-domain communications with JSONP, Part 2 -- Building mashups with JSONP, jQuery, and Yahoo! Query Language: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp2/index.html</ref><ref>YQL and JSONP-X (aka. json-p-x, jsonpx, json-px): http://paul.donnelly.org/2009/07/08/yql-and-jsonp-x/</ref><ref>Mashups with JSONP, jQuery and YQL: http://projects.ischool.washington.edu/tabrooks/343INFOAutumn09/JSONP/jsonpJqueryYQL.htm</ref>


Google


Wikipedia



Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


CLICK HERE


Tools

  • JSONPify - a simple way to access feeds and web services from a client based web application: http://jsonpify.com/




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


See Also

JSON | AJAX | jQuery | JavaScript | XSS