[pmwiki-devel] customised input with $InputTags

Hans design5 at softflow.co.uk
Fri Dec 15 05:35:31 CST 2006


Error correction:

Sorry both definitions don't work that way really.
They should not have an onblur event at all.

So here are the corrected versions:

# input text box will clear initial value, unless name contains '-fix'
$InputTags['text'][':html'] = "<input type='text' \$InputFormArgs  
    onfocus=\"if(this.name.indexOf('-fix')==-1) this.value=''\" />";

# input text box will keep initial value, unless name contains '-clear'
$InputTags['text'][':html'] = "<input type='text' \$InputFormArgs  
    onfocus=\"if(this.name.indexOf('-clear')!=-1) this.value=''\" />";



Hans




More information about the pmwiki-devel mailing list