12
Nov
It is very sad!
Below is my code. The server has " Access-Control-Allow-Origin: * " in its head.
var xdr = new XDomainRequest();
if (xdr) {
xdr.open('get', url);
xdr.onload = function () {
var xml = $.parseXML(xdr.responseText);
do_something_with(xml);
};
xdr.onerror = function () { alert('bug in IE: fail to load'); }
xdr.ontimeout = function () { alert('bug in IE: time out'); }
xdr.send();
} else {
alert('bug in IE: fail to start');
}

- 作者:cail
- 版权声明:署名-非商业性使用-禁止演绎 CC BY-NC-ND 3.0
- 原文网址:http://en.dogeno.us/?p=7798
- 最后修改时间:2011年11月12日 19:58 PDT
Previous:
Weekly Tweets for 2011-11-07
Next:
Weekly Tweets for 2011-11-14
blog by cail
- » the Paper Link - my latest Creation for PubMed users
- » How to use ImageJ to analyze images?
- » 2shRNA - design oligos for RNAi
- » Play background music
- » about this blog
- » about me
Hot in 'How-To'
- analog - analog/digital - digital, VGA - DVI - HDMI - 74,642 views
- Ez-12 windsurfer antenna - 54,056 views
- Import custom ringtones to iPhone via iTunes (no jailbreaking required) - 47,101 views
- How to add new ringtones to iPhone - 42,510 views
- Use GParted to align partitions on a SSD hard drive for better performance - 41,012 views
put your ads here? contact me
Leave a Reply