throw new Error("Pz2.js: Array with parameters has to be supplied.");
//supported pazpar2's protocol version
throw new Error("Pz2.js: Array with parameters has to be supplied.");
//supported pazpar2's protocol version
- { "command": "ping", "session": this.sessionID, "windowid" : window.name },
+ { "command": "ping", "session": this.sessionID, "windowid" : context.windowid },
- { "command": "stat", "session": this.sessionID, "windowid" : window.name },
+ { "command": "stat", "session": this.sessionID, "windowid" : context.windowid },
"sort": this.currentSort,
"block": 1,
"type": this.showResponseType,
"sort": this.currentSort,
"block": 1,
"type": this.showResponseType,
this.domainRegex = /https?:\/\/([^:/]+).*/;
this.cookieDomain = cookieDomain || null;
var xhr = new XMLHttpRequest();
this.domainRegex = /https?:\/\/([^:/]+).*/;
this.cookieDomain = cookieDomain || null;
var xhr = new XMLHttpRequest();
- } else if (typeof XDomainRequest != "undefined") {
- // XDomainRequest for IE.
+ } else if (domain && this._isCrossDomain(domain) &&
+ typeof XDomainRequest != "undefined") {
+ // use XDR (IE7/8) when no other way
//setting headers is only allowed with XHR
for (var key in this.requestHeaders)
this.request.setRequestHeader(key, this.requestHeaders[key]);
}
//setting headers is only allowed with XHR
for (var key in this.requestHeaders)
this.request.setRequestHeader(key, this.requestHeaders[key]);
}