by prettyscripts on 2011-10-24 16:02:00 • 1 comment »
php • xajax • yii
i keep running into the same problem. there are at least 2 rows of data saved everytime a form is saved.
it's because of ajax validation!
if you're using CActiveForm and set enableAjaxValidation to true, when the form is submitted, it will be posting…
more »Tags: duplicate, form, submit, yii
by prettyscripts on 2008-06-30 14:15:50 • Leave a comment »
javascript • xajax
by default xajax.getFormValues does not pass values from disabled fields. as previously noted, it is browser standard not to submit disabled fields. with xajax.getFormValues(), disable field can still be submitted. by setting 2nd optional parameter to…
more »Tags: disabled field, form, submit, xajax
by prettyscripts on 2008-06-23 15:44:11 • Leave a comment »
javascript • xajax • tinymce
i just downloaded and installed tinymce which magically converted the <textarea> element into a nice little editor, which suppose transform the input into html output. nice! no more educating non-programmers about html tags. if you submit the for…
more »Tags: form, post, submit, textarea, tinymce, xajax
by prettyscripts on 2008-04-10 12:00:48 • 1 comment »
ajax • xajax
the function to get form values to submit is xajax.getFormValues().
to submit the form via click of a button:
<input type="submit" value="Submit"
onClick="xajax_function(xajax.getFormValues('formname'));" />
to submit part of the form…
more »Tags: form, submit, xajax