Sigma Php Ajax framework, Ajax Components, GUI Builder
May 24, 2012, 10:48:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: maxlength in input/textbox  (Read 703 times)
jovibals
Hero Member
*****
Posts: 133


View Profile
« on: April 27, 2010, 11:58:31 PM »

hi linb,

       Textbox in a normal html i can set the maxlength and once you copy a words from the notepad then paste it only allows whatever the number you have set in the textbox. But using input in visualjs and set the length using "valueFormat" then typing inside of it validate the length of the input and you cannot type continuosly but once i copy from notepad then paste inside of it. It accept and no error occurs.

Can you help me how will i do this? you cannot paste more than characters.


Thank you
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: April 30, 2010, 05:45:24 PM »

input1 is for all input and textarea in some browser.
input2 is for all input and textarea .

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #2 on: April 30, 2010, 06:02:53 PM »

And, I added getMaxlength/setMaxlength fuction. You can use "input.setMaxlength(10)" to do this.

Check it out from svn please!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!