rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Convenience method for submitting the form with option for ajax or non-ajax submit
 *
 * <p>
 * For full options using the KradRequest function directly
 * </p>
 *
 * @param methodToCall - the controller method to be called
 * @param additionalData - any additional data that needs to be passed to the server
 * @param validate - indicates whethere client side validation should be performed before the submit
 * @param ajaxSubmit - whether the submit should be via ajax or standard browser submit
 * @param successCallback - method to invoke after a successful request, only applies to ajax calls
 * @param fieldsToSend (optional) - limit the fields to send to property names defined in an array
 */
Convenience method for submitting the form with option for ajax or non-ajax submit


For full options using the KradRequest function directly



Convenience method for submitting the form with option for ajax or non - ajax submit For full options using the KradRequest function directly
function submitForm(methodToCall, additionalData, validate, ajaxSubmit, successCallback, fieldsToSend) {
    var kradRequest = new KradRequest();
    kradRequest.methodToCall = methodToCall;
    kradRequest.additionalData = additionalData;
    kradRequest.validate = validate;
    kradRequest.ajaxSubmit = ajaxSubmit;
    kradRequest.successCallback = successCallback;
    kradRequest.fieldsToSend = fieldsToSend;
    kradRequest.send();
}
function submitForm ( methodToCall , additionalData , validate , ajaxSubmit , successCallback , fieldsToSend ) { var kradRequest = new KradRequest ( ) ; kradRequest . methodToCall = methodToCall ; kradRequest . additionalData = additionalData ; kradRequest . validate = validate ; kradRequest . ajaxSubmit = ajaxSubmit ; kradRequest . successCallback = successCallback ; kradRequest . fieldsToSend = fieldsToSend ; kradRequest . send ( ) ; }
Convenience method for submitting the form with option for ajax or non-ajax submit
Convenience method for submitting the form with option for ajax or non - ajax submit