|
My earlier question wasn't stated
well...
I get an Ajax onFailure error in IE
5.5/Windows 98 only. Here's the
request...
new Ajax.Request
(
sUrl { method: 'get', parameters: '', onFailure: this.loadPageError.bind(this), onComplete: this.loadPageFinish.bind(this), onException:
this.loadPageException.bind(this)
}); Looking at prototype.js, the success / failure routines
are called with parameters:
onSuccess(transport, json) OR
onFailure(transport, json)
The
parameter transport is confusingly referred to as "request" in most
software I've seen using prototype.js, but transport does return
transport.status, which has a value of 501 in IE 5.5.
Using
Google, "XMLHTTP 501", I found this thread
which
goes into a lot of other detail on this error but suggests the server is
responding 501 because it receives a "get" not a "GET".
Now
maybe Windows 98 should make this case-correction of get to GET, but I simply
changed my call (shown above) to method: "GET" and IE 5.5 / Win98 is working
fine now.
Seems
to me that this is a rare error, but prototype.js would be a better place for
this fix... especially since line 674:
if (this.options.method
== 'get' && parameters.length > 0)
will
fail if the user passes "GET".
Sam
|
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
