|
| 1 | +# jQuery.iecors |
| 2 | + |
| 3 | +This is a new "transport" (or driver) for jQuery that allows the browser-like software known as IE 8 and 9 to make cross-domain AJAX requests using Microsoft's XDomainRequest object. No need for JSONP! |
| 4 | + |
| 5 | +# Installation |
| 6 | + |
| 7 | +Copy jquery.iecors.js into your javascripts directory. Include it in your web page. |
| 8 | + |
| 9 | +# Usage |
| 10 | + |
| 11 | +```javascript |
| 12 | +$.ajax({ ... }); |
| 13 | +``` |
| 14 | + |
| 15 | +Yes, it's that simple! IE will try to use standard XHR, but will fail because it can't make cross-domain requests. Then, it will try this snazzy new driver and succeed. |
| 16 | + |
| 17 | +# License |
| 18 | + |
| 19 | +The MIT License |
| 20 | + |
| 21 | +Copyright (c) 2011 Derek Kastner |
| 22 | + |
| 23 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 24 | +of this software and associated documentation files (the "Software"), to deal |
| 25 | +in the Software without restriction, including without limitation the rights |
| 26 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 27 | +copies of the Software, and to permit persons to whom the Software is |
| 28 | +furnished to do so, subject to the following conditions: |
| 29 | + |
| 30 | +The above copyright notice and this permission notice shall be included in |
| 31 | +all copies or substantial portions of the Software. |
| 32 | + |
| 33 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 34 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 35 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 36 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 37 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 38 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 39 | +THE SOFTWARE. |
0 commit comments