In the currently latest version of prototype.js
http://www.prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js
there is no def for onSuccess? yet when I use
Ajax.Request(url, { onSuccess : function(r) { ... } it works...
So is it defined some where else?
I was mainly looking for the conditions of success, because Jeremy
Keith in his book Bulletproof AJAX says that the status of 200 and 304
both should be considered a success. He says some version of Opera
does a conditional GET to check whether the page in cache is up to
date, and if it is, then the status 304 is returned instead of 200.
Thought, when I try the latest version of Opera using the most basic
form of AJAX (XmlHttpRequest or the Microsoft ActiveX), then I only
see a 200 status, never a 304.
There is a check in prototype
success: function() {
var status = this.getStatus();
return !status || (status >= 200 && status < 300);
},
but it doesn't include 304. Does someone know? Many thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---