Skip to content

Commit 64bbfb8

Browse files
author
Jason Moon
committed
Added instructions section with example $.ajax
1 parent 86c4d4d commit 64bbfb8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,17 @@ In order to use XDomainRequest in Internet Explorer, the request must be:
1111
- Always asynchronous
1212

1313
Working example here:
14-
http://jsfiddle.net/MoonScript/Q7bVG/
14+
http://jsfiddle.net/MoonScript/Q7bVG/
15+
16+
## Instructions
17+
18+
With at least jQuery version 1.5, just include this `jQuery.XDomainRequest.js` script into your page, then make your AJAX call like you normally would:
19+
20+
```JavaScript
21+
$.ajax({
22+
url: 'http://jsonmoon.jsapp.us/',
23+
dataType: 'json'
24+
}).done(function(data){
25+
console.log(data.name.first);
26+
});
27+
```

0 commit comments

Comments
 (0)