by prettyscripts on 2009-09-15 14:43:56 • Leave a 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
by prettyscripts on 2008-09-22 16:22:57 • 1 comment »
free • javascript • xajax • tinymce
the normal way to clear <textarea> field:
document.formname.textareaid.value = '';
for <textarea> converted into tinymce editor, the above javascript call does not work. you need to call tinyMCE.setContent()
tinyMCE.getInstanceById('texta…
more »Tags: clear, editor, textarea, tinymce, xajax