xajax: append form fields and firefox

by prettyscripts on 2009-09-15 14:43:56 • Leave a comment »

phphtmlxajax

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

javascript: calling xajax functions with boolean parameter

by prettyscripts on 2009-06-24 10:28:46 • Leave a comment »

miscjavascriptxajax

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

xajax and radio buttons

by prettyscripts on 2008-10-24 10:28:53 • Leave a comment »

htmlxajax

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

tinymce: clear field

by prettyscripts on 2008-09-22 16:22:57 • Leave a comment »

freejavascriptxajaxtinymce

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

xajax and checkbox

by prettyscripts on 2008-07-03 12:16:33 • 1 comment »

miscjavascripthtmlxajax

in one of the forms i work on, i need to set other form fields based on the value of a checkbox. the value this.checked was passwd a parameter to xajax function.<input type="checkbox" name="checkbox1" id="checkbox1" value="Y" onClick="xajax_functi… more »

Tags: checkbox, form, xajax