jquery - Ajax Returns errorError: Access is denied on IE -


my following code works great on firefox , chrome, shows error-error: access denied on ie, can me please.

on firefox returns success status , same success status on chrome not sure why doesnt work on ie 9.0

<html> <head> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <meta charset=utf-8 /> <title>js bin</title> <script type="text/javascript"> $(document).ready(function () { $.support.cors = true;     $('#time').html(new date());     $('#status').html('');     $('#content').html('');      $.ajax({         cache: false,         url: $('#xhr_url').val()     }).done(function (data, textstatus, jqxhr) {         $('#status').html(textstatus+jqxhr);         $.each(data.t2json.printermanufacturers.items, function (i, item) {             $("#content").append('<a class="manufacturer" id="' + item.id + '" onclick="hello(' + item.id + ');" href="#">' + item.name + '</a></br>');         });     }).fail(function (jqxhr, textstatus, errorthrown ) {         $('#status').html(textstatus + errorthrown );         $('#content').html('(failed)' + errorthrown);     }); });</script> </head> <body>   <input id='xhr_url' style='width:600px;' type='text' value='http://t2json.tgoservices.com/818746/printermanufacturers' /> <div id='content1'>ass</div> <fieldset>     <legend>time:</legend>     <div id='time'></div> </fieldset> <fieldset>     <legend>status:</legend>     <div id='status'></div> </fieldset> <fieldset>     <legend>content:</legend>     <div id='content'></div> </fieldset> </body> </html> 

check this out.

ie9 has known issues , limitations, documented here.

note: supported in ie8 , ie9 using xdomainrequest object (but has limitations)

you can read xdomainrequest limitations here.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -