
any
New User
Dec 6, 2004, 8:41 PM
Post #1 of 2
(3307 views)
Shortcut
|
Limit the number of words and caracters ! ANYONE !?
|
Can't Post
|
|
I want to limit the content that is inputed in a textarea (With this tool). but I can only put menus and buttons, does anyone know how to triger a event onChange of the input of the textarea with this tool? I only want to send a value to this text-inputs in the toolbar, I got the other scripts to limit the content (of words and caracters) and validate the limit of html (close tags, etc.) // lim_words if (btnName == "lim_words") { //<input type='text' name='tituloIng' size='78' maxlength='100' value='TITLE in ENGLISH'> toolbar += '<font face="Arial, Helvetica, sans-serif" style="margin: 1 2 0 2; font-size: 12px;"><b>W:</b> </font>'; toolbar += '<input type="text" disabled '; toolbar += ' name="_' +objname+ '_Lim_Words" '; toolbar += ' id="_' +objname+ '_Lim_Words" '; toolbar += ' size="4" '; toolbar += ' maxlength="3" '; toolbar += ' value="0" '; toolbar += ' style="margin: 1 2 0 2; font-size: 12px;">'; continue; } // lim_chars if (btnName == "lim_chars") { toolbar += '<font face="Arial, Helvetica, sans-serif" style="margin: 1 2 0 2; font-size: 12px;"><b>C:</b> </font>'; toolbar += '<input type="text" disabled '; toolbar += ' name="_' +objname+ '_Lim_Chars" '; toolbar += ' id="_' +objname+ '_Lim_Chars" '; toolbar += ' size="6" '; toolbar += ' maxlength="5" '; toolbar += ' value="0" '; toolbar += ' style="margin: 1 2 0 2; font-size: 12px;">'; continue; } Thank you all.
|