Skip to content

lrgalego/jquery-safe-xdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery safe xdr

jQuery plugin to make Cross Domain Requests with JavaScript without jsonp.

To receive some response for this calls, you have to add the Access-Control-Allow-Origin HTTP header.

Samples

  1. Submitting a request

    $.safeXDR('http://sampleurl', {param1:'value1'});
  2. Enable cache

    $.safeXDR('http://sampleurl', {param1:'value1', cache:true});
  3. Receiving response (Needs Access-Control-Allow-Origin):

    $.safeXDR('http://sampleurl', {param1:'value1'}, function(result){
        console.log(result);
    });

About

jQuery plugin to make safe cross domain requests without jsonp. Relies on Access-Control-Allow-Origin HTTP header.

Resources

Stars

Watchers

Forks

Packages

No packages published