rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Writes a property name/value pair as a hidden input field on the form.
 *
 * <p>Called to dynamically set request parameters based on a chosen action. Assumes
 * existence of a div named 'formComplete' where the hidden inputs will be
 * inserted</p>
 *
 * @param propertyName name for the input field to write
 * @param propertyValue value for the input field to write
 */
Writes a property name/value pair as a hidden input field on the form.

Called to dynamically set request parameters based on a chosen action. Assumes
existence of a div named 'formComplete' where the hidden inputs will be
inserted

@param propertyName name for the input field to write
@param propertyValue value for the input field to write
Writes a property name / value pair as a hidden input field on the form . Called to dynamically set request parameters based on a chosen action . Assumes existence of a div named ' formComplete ' where the hidden inputs will be inserted @param propertyName name for the input field to write @param propertyValue value for the input field to write
function writeHiddenToForm(propertyName, propertyValue) {
    jQuery('input[name="' + escapeName(propertyName) + '"]').remove();
    if (propertyValue && typeof propertyValue === 'string') {
        propertyValue = propertyValue.replace(/"/g, "\\\"");
    }
    jQuery("<input type='hidden' name='" + propertyName + "'" + ' value="' + propertyValue + '"/>').appendTo(jQuery("#" + kradVariables.FORM_COMPLETE_ID));
}
function writeHiddenToForm ( propertyName , propertyValue ) { jQuery ( 'input[name="' + escapeName ( propertyName ) + '"]' ) . remove ( ) ; if ( propertyValue && typeof propertyValue === 'string' ) { propertyValue = propertyValue . replace ( / " / g , "\\\"" ) ; } jQuery ( "<input type='hidden' name='" + propertyName + "'" + ' value="' + propertyValue + '"/>' ) . appendTo ( jQuery ( "#" + kradVariables . FORM_COMPLETE_ID ) ) ; }
Writes a property name/value pair as a hidden input field on the form.
Writes a property name / value pair as a hidden input field on the form .