|
|
|
| cp.bugTrackMode cp.bugTrackMode ( true / false, [optional;USERNAME] ) initial state: disabled return value: true When enabling the bugTrackMode, the window.onError gets assigned to try track down any javascript-error and report any errors that might appear within the crossprobe-module or its surroundings and automatically report them to a database at http://crossprobe.jet.st. Its purpose is to gather knowledge of problems that might appear on various navigators / OS combinations. The information will be used as a base to produce more stable future versions of the crossprobe-module. The information collected and piped to the report-script are: 1. navigator.appVersion. ( i.e Mozilla/4.0 (WinNT; I)) 2. crossProbe version (crossProbe.appVersion) 3. Javascript-engine error-message. 4. Line where the error occured. The errortrapping / reporting is done by invoking a new Image-object which source-URL is the error-reciever script at our HQ, a typical trapper-URL sent could look like; http:/crossprobe./jet.st/cperror?agent=4.0(compatible;...)&err_row=89 &err_msg=..errormessage... If used, the function should be invoked at the very beginning of the crossProbe session. see the sample area for usage. Argument 1; A boolean first argument states whether you want the browser to croak an errormessage as usual (FALSE) or if it should run in silent mode, meaning no visible errormessages .(TRUE) Remember that this set to TRUE will suppress ALL errors within the document, even your own javascript errors. Argument 2; Your Bugtrack-username if you got a Bugtrack account. This will be applied to every unique error-report sent to our database, binding these to your account. When you later access your account and statistics, the only reports available are those explicitly signed with your username. For reasons obvious, do not enable the bugTrackMode when your are developing your pages, unless you are pretty damn sure your scripting is a 100% run-on-first-try or you consider yerself that dude born into the the script-engine :)) The bugTrackMode is intended to run on your ready-for-the-web pages only. see also cp.confirmBugTrackText. |
|
| Reference
Index. |
|