Skip to content

Instantly share code, notes, and snippets.

View kemasdimas's full-sized avatar

Kemas Dimas kemasdimas

View GitHub Profile
@kemasdimas
kemasdimas / strophe.xdomainrequest.js
Created July 11, 2012 01:07 — forked from kenstir/strophe.xdomainrequest.js
A Strophe plugin by iAdvize that use the XdomainRequest if found (Internet Explorer)
Strophe.addConnectionPlugin("xdomainrequest", {
init: function () {
if (window.XDomainRequest) {
Strophe.debug("using XdomainRequest for IE");
// Need to extend XDomainRequest to support compatibility in IE8
var MyXHR = function() {
var that = new XDomainRequest();
var oldsend = that.send;