SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 143 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

Create PHP
functions validateCatalogId($formValues) and
updateCatalog($formValues). Both these functions take a
$formValues parameter.
function validateCatalogId($formValues){}
function updateCatalog($formValues){}
Register the PHP functions with the xajax object using the
registerFunction() method. The xajax object creates wrapper
functions for the PHP functions that may be invoked from a PHP script or
an input form event handler.
$xajax->registerFunction("validateCatalogId");
$xajax->registerFunction("updateCatalog");
Xajax generates asynchronous wrapper functions for the registered PHP
functions. A wrapper function name is of the format:
xajax_. Variable is a server side
PHP function for which a wrapper function is to be defined. Xajax
provides asynchronous form processing with the
getFormValues(string formId) method. Using the
getFormValues()method, an array of form field values may be
submitted as an argument to a xajax asynchronous function. Sections of a
form may also be submitted instead of the complete form with the
getFormValues(string formID ,boolean
submitDisabledElements, string prefix]) function. The
prefix parameter specifies that only form elements starting with that
prefix should be submitted. Boolean parameter
submitDisabledElements specifies if disabled elements are to be
submitted. . PHP functions validateCatalogId and
updateCatalog define a parameter for an array of form field values.


Pages:
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155