I have seen very odd behavior when playing around with XMLHttpRequest
(I'm using FireFox 1.0.7 under windoze/xp). I create a single instance
of XMLHttpRequest, store in a global var 'xmlHttpReq'. I have a
function called using onclick of an img; the funct does
'xmlHttpReq.onreadystatechange = myStateChangeHandler' (the latter is a
global func), then open() and send(). Everything works fine. But if I
tried to get the value of the onreadystatechange callback (e.g., 'var
xxx = xmlHttpReq.onreadystatechange') I get an error 'permission denied
to create wrapper for object of class UnnamedClass'.

Have you seen this behavior with Mochikit? Do you recommend re-using a
request object - or creating a new one for each request (which seems
unnecessary). I'm trying to climb the learning curve for using
MochiKit.Async - but feel like I'd better get the basics down before I
try fancier stuff like Async.

MochiKit is a great piece of work - I can't imagine the hours spent
arm-wrestling with Javascript that you had to do. I'm looking forward
to using it on several projects.

Thanks for any assistance you can provide.

Reply via email to