| Server IP : 89.46.109.6 / Your IP : 216.73.216.84 Web Server : Apache System : Linux hlpi1ws-c284v20.ad.aruba.it 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : ID19067310 ( 19067310) PHP Version : 5.3.29 Disable Function : system,popen,dl,passthru,proc_open,shell_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /web/htdocs/www.edizacco.it/home/pannello/js/ |
Upload File : |
function limitText (inputHandle, maxLen, counterHandle)
{
if (inputHandle == null) return false;
if (maxLen == null) maxLen = 255;
var hasBeenLimited = false;
if (inputHandle.value.length > maxLen) {
alert ("Il testo nel campo " + (inputHandle.name ? ("\" " + inputHandle.name + "\"") : "(senza nome)") +
" eccede il limite di " + maxLen + " caratteri.");
inputHandle.value = inputHandle.value.substring (0, maxLen);
inputHandle.select();
inputHandle.focus();
hasBeenLimited = true;
}
if (counterHandle != null)
counterHandle.value = maxLen - inputHandle.value.length;
return hasBeenLimited;
}