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,
** AJAX HELPER CLASS ***********************************************************
********************************************************************************
*/
** AJAX HELPER CLASS ***********************************************************
********************************************************************************
*/
this.maxUrlLength = 2048;
this.request = null;
this.url = url;
this.errorHandler = errorHandler || null;
this.async = true;
this.requestHeaders = {};
this.maxUrlLength = 2048;
this.request = null;
this.url = url;
this.errorHandler = errorHandler || null;
this.async = true;
this.requestHeaders = {};
- } 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]);
}