godHedin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jun-08 19:01 UTC
Opera Ajax request bug
I found some strange thing in Ajax.Request (onStateChange function):
var readyState = this.transport.readyState;
if (readyState > 1 && !((readyState == 4) &&
this._complete))
this.respondToReadyState(this.transport.readyState);
In Opera [this._complete] always true, but I cannot understand how.
I fixed this problem this way:
if (Prototype.Browser.Opera) {
if (readyState > 1)
this.respondToReadyState(this.transport.readyState);
} else {
if (readyState > 1 && !((readyState == 4) &&
this._complete))
this.respondToReadyState(this.transport.readyState);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---