Skip to content

craic/json_jsonp_tutorial

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Practical Tutorial on JSON versus JSONP in JQuery

JSONP is a simple way to overcome browser restrictions when sending JSON responses from different domains from the client.

But the practical implementation of the approach involves subtle differences that are often not explained clearly.

Here is a simple tutorial that shows JSON and JSONP side by side.

It assumes that you are familiar with basic JQuery functions and have basic experience of server-side applications.

Specifically the tutorial uses a simple Sinatra server, written in Ruby

See the page public/index.html for the Tutorial itself.

A live version of the tutorial is at http://json-jsonp-tutorial.craic.com

About

Simple Tutorial on using JSONP versus JSON with JQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published