[<< < > >>] view the code
'Crash if bad config', abbreviated as 'cibc' (and handled by vf_cibVFCfg.cibVFCfg()), analyzes your vf-configuration, crashing with helpful information and diagnostics, when an error is detected. Cibc is critical in development, as you create your vf-configuration. In production, when you know your vf-config is perfect, you can sacrifice it in order to maximize speed and minimize client download (it can always be turned on via the vfpd-toolbar).
Here is an example of what can happen when you don't use cibc, but should. The vf-configuration for this form is invalid. Specifically, iMinLength is greater than iMaxLength, meaning everything is considered invalid. |
With the below value for the 'sb_cibcOnOff' parameter, for validate_form... |
...then when VFP-Diagnostics are off, cibc is... | ...and when VFP-Diagnostics are on, cibc is... | When Recommended | |||
...configVF() |
...configVFPD() |
Downloaded | Active | Downloaded* | Active* | |
CIBC_ON |
CIBC_ON |
true | true | true | true | During initial development, to protect you from carelessness. |
CIBC_OFF |
CIBC_ON |
false | false | true | true | When diagnosing a particularly difficult, although short-term, problem. This prevents you from having to click [Load CIBC] and then select 'CRSH' from its drop down each time the page reloads (as may happen when a crash occurs). |
CIBC_ON |
CIBC_OFF |
true | true | false* | false* | |
CIBC_OFF |
CIBC_OFF |
false | false | false* | false* | During production, once you're certain the form's vf-config is perfect. |
[<< < > >>] .
<HTML><HEAD>
|
Copyright (C) 2003-2005, Jeff Epstein. All rights reserved.