This is my code using prototype 1.6.1
Event.observe(window, 'load', function() {
new Ajax.Request('/modal/order_same/', {
parameters: {},
onComplete: function(){alert('err0');},
onSuccess:function(){alert('err1');},
onCreate:function(){alert('err2');},
onFailure:function(){alert('err3');},
onException:function(){alert('err4');},
onLoaded:function(){alert('err5');}
});
});
Alternatively,
Event.observe(window, 'load', function() {
new Ajax.Updater(somelement,'/modal/order_same/', {
parameters: {},
onComplete: function(){alert('err0');},
onSuccess:function(){alert('err1');},
onCreate:function(){alert('err2');},
onFailure:function(){alert('err3');},
onException:function(){alert('err4');},
onLoaded:function(){alert('err5');}
});
});
When testing in Firefox version 3.7prea5 and a client with version 3.6.3, I only get "err2" as an error message.
The Firebug console shows that the response is received with a status code of 200.
The code works fine in Opera, Internet Explorer 6-8, and some versions of Firefox on certain computers. Any suggestions?