Ok, tried that but always get 0 as a result of the getStatus() call. Here's the relevant piece of code:
goog.provide('videofe.rpc.Command');
goog.require('relief.rpc.Command');
goog.require('videofe.rpc.ServerConfig');
/**
* @inheritDoc
*/
videofe.rpc.Command = function(onSuccess, onFailure, id, url, method, maxRetries) {
/**
* @type {videofe.rpc.ServerConfig}
* @private
*/
this.serverConfig_ = videofe.rpc.ServerConfig.getInstance();
var sc = this.serverConfig_;
var finalUrl = sc.protocol_ + '://'
+ sc.host_
+ (sc.port_ ? ':' + sc.port_ : '')
+ (sc.urlPrefix_.match("^\/|^$")?'':'/') + sc.urlPrefix_
+ (url.match("^\/")?'':'/') + url;
var failHandler = function(event) {
var x = event.target.getStatus();
onFailure(event);
}
goog.base(this, onSuccess, failHandler, id, finalUrl, method, maxRetries);
};
goog.inherits(videofe.rpc.Command, relief.rpc.Command);
-------------------------------------------------------------
I used 'var x = event.target.getAllResponseHeaders();' instead of getStatus() and get an empty string as a result. Tested it both in FF7 and Chrome 15beta.
Thanks for your continued support.
W.