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 2009-09-15 14:43:56 • 1 comment »
php • html • xajax
a case that works in IE but not firefox.
supposed there’s form with a few fields. a button to manually adding more fields to the form. these fields are grouped under the same <div> tag. when the fields are added to the form, the original field va…
more »Tags: append, field, form, php, xajax
by prettyscripts on 2009-06-30 23:08:44 • Leave a comment »
php • html • xajax
append a table row should sound straight forward when using with a xajax function.
the html code for table and a button within a form:
<table>
<th><td>header1</td><td>header2</td></th>
<tbody id="tb…
more »
by prettyscripts on 2009-06-24 10:28:46 • Leave a comment »
misc • javascript • xajax
when passing a boolean value from javascript to a xajax function, the value is converted to string in the xajax function. you need to compare the string value of the boolean value (from javascript) in xajax function. eg, the following code in xajax f…
more »Tags: boolean, javascript, xajax
by prettyscripts on 2008-10-24 10:28:53 • Leave a comment »
html • xajax
to display a group of choices to select-only-one as radio buttons, the name and id parameters must be the same for all <input>.
the html code:
<input type="radio" name="option" id="option" value="1" onclick="xajax_click(this.value);" checke…
more »Tags: form, radio button, xajax