> -----Original Message-----
> From: Chris Jordan [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 04, 2007 3:24 PM
> To: CF-Talk
> Subject: Re: ajaxcfc dump results
>
> It would be nice if it didn't try to expand every single section but
> instead
> allow for lazy loading of those pieces that the user wants to click on
> to
> expand. I figure that would take care of some instances of the out of
> memory
> crashes (which I rarely run into, unless I'm trying to dump top or
> document
> or window,etc.).
I doubt this would be possible in JavaScript (or, at the very least, in a
dumper written in JavaScript).
The main problem is that there's no way to "pause" JavaScript. So when you
call a "dump" JavaScript runs that dump then continues merrily on its way.
So every dump is strictly point in time.
By the time the user requests a "lazy load" of more data the structure that
contained it may very well be gone or changed. In JavaScript the container
itself might be completely dissimilar from when it was originally displayed.
For example:
myObject = {Count: 0};
DP_Debug.dump(myObject);
myObject = "Hello";
Say, for the sake of argument, that the initial display didn't display the
content of the "Count" property but rather linked to it. By the time the
user clicks on it "myObject" is actually a string and "myObject.Count" won't
exist.
I'd LOVE to see some code that could do this correctly (damn that would be
neat) but can't envision any way to do it in Native JavaScript (although I
assume that there's some why to access the parser more directly in a program
since both IE and FF have more traditional JavaScript debuggers available).
Jim Davis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292635
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4