[Javascript] AJAX app causing excessive browser memory usage
Rick Emery
rick at emery.homelinux.net
Tue May 23 11:24:57 CDT 2006
Quoting Jonathan Buchanan <jonathan.buchanan at gmail.com>:
> The problem in this case is that when handleXHRResponse() is called,
> "this" no longer refers to your xhrObj instance. You can use the
> built-in call[1] or apply[2] functions to execute the function in the
> scope of your xhrObj instance.
Just a quick note to say "thanks". I had worked around this by
creating the xmlhttprequest object as a property of the window object.
But I also needed access to some other properties of my custom object
from the response handler, so I finally got around to sitting down
with your example and understanding it. The application is now working
as expected.
Thanks again!
Rick
--
Rick Emery
"When once you have tasted flight, you will forever walk the Earth
with your eyes turned skyward, for there you have been, and there
you will always long to return"
-- Leonardo Da Vinci
More information about the Javascript
mailing list