[Webkit-unassigned] [Bug 11610] XMLHttpRequest object callback doesn't reference calling object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 17 12:49:20 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11610





------- Comment #3 from jamie.pate at gmail.com  2006-11-17 12:49 PDT -------
(In reply to comment #2)
> no, but IE7 references the 'this' object as the XMLHttpRequest object that is
> calling. Safari has no way to reference the calling XMLHttpRequest object (this
> refers to window). I was just suggesting what I think would be the 'proper' and
> cleanest way to do it since the event object type is already 'readystatechange'
> 
sorry, upon further testing IE6 also has the same problem as safari (in that
you can't get a hold of the XMLHttpRequest object from inside the
onreadystatechange callback)
At least IE6 will be mass-replaced soon with IE7, (and incidentally my target
audience is a controlled group so I don't have to support IE6 at all)

Either way, a reference to the XMLHttpRequest object that isn't global is all
I'm looking for. Executing in the context of the XMLHttpRequest object (making
'this' a reference to said object) would be equally acceptable, but may break
backwards compatibility if someone relies on it (illogical, but possible) 


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list