It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming JavaScript Forum

Text Field Problems

Text Field Problems

Postby Ori3.16 on Thu May 14, 2009 2:17 pm

Hi All, first time poster. Thanks in advance for any help.

I've coded a function that runs on click on a text field which is meant for an IP address. The function makes sure that user enters only digits and dots or backspaces, and no more than two dots in a row or more than 3 digits in a row, etc.

There are two problem with this function: 1. It's impossible to use ctrl+v to paste in the field (it is possible to paste with right click and paste or via the edit->paste command)
2. if I select the entire text, it's impossible to write over it without deleting it first.

So, how can enable ctrl+v, and how can allow writing over the text?
Ori3.16
 
Posts: 1
Joined: Thu May 14, 2009 1:56 pm

Return to JavaScript Forum

Who is online

Users browsing this forum: Google [Bot] and 7 guests