problem with prototype.js Ajax functions
Posted
by Maksim Burnin
on Stack Overflow
See other posts from Stack Overflow
or by Maksim Burnin
Published on 2010-06-10T11:47:09Z
Indexed on
2010/06/10
12:03 UTC
Read the original article
Hit count: 252
my code(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');}
});
});
or
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');}
});
});
all i get in ff3.7prea5 is "err2". my client says he has ff3.6.3 and same error
firebug console says he's get the response and the status code is 200
works fine in opera, ie 6-8, ff on some computers
any suggestions?
© Stack Overflow or respective owner