---------- Original Message ----------------------------------
From: "Hugo Ahlenius" <[EMAIL PROTECTED]>

>I have this idea to improve the quality of a heavy DHTML/Javascript
>application -- Storing some important variables (browser, OS, screen size)
>from javascript when window.onerror function is triggered. This could be
>stored in a db, or just in a log-file. (One could, onerror, trigger a
>function in a hidden frame that passes these, in a request, to the
>server).

There was an article several months back (September?) in the CFDJ on catching JS 
errors.  Our application currently does this (we're not catching things like OS or 
screen-size, since our app is standardized on a single system, but I see no reason why 
you couldn't do so.).  On a JS error, we grab the URL, the message, the line number, 
the referrer (the nature of our app causes the actual problem URL to actually be the 
referrer instead of the file pointed to by the "URL").  Then, we send an e-mail to an 
administration address that includes that info, along with dumping all the client 
variables.

Sorry I don't have sample code to share, but if you've got access to the CFDJ 
archives, you should be able to find some there.

Scott
--------------------------------
Scott Brady
http://www.scottbrady.net/
 
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to