[pmwiki-devel] customised input with $InputTags
Hans
design5 at softflow.co.uk
Fri Dec 15 03:51:37 CST 2006
Friday, December 15, 2006, 9:43:26 AM, Hans wrote:
> An input textbox defined like this will clear the value in it when
> clicked, if the name contains '-clear', otherwise it will not clear the
> value.
Or we can do it the other way around:
An input text box will always clear the value when clicked, unless the
name contains '-fix', like (:input text box2-fix "Value stays":),
with this definition of input text:
$InputTags['text'][':html'] = "<input type='text' \$InputFormArgs
onfocus=\"pv=this.value; if(this.name.indexOf('-fix')==-1) this.value=''\" onblur=\"this.value=pv\" />";
Hans
More information about the pmwiki-devel
mailing list