Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, December 6th, 2006

Time Event
1:34p
trying to create a script to format phone numbers as the client types it in. I found this one which I like alot.

But we just realized that it does not work correctly in IE 6.  If you type in a zero, strange things happen. For example, typing 405 leaves you with (405) but the curser is BEFORE the 5 instead of after.

This works fine in firefox.

EDIT :  I think I found the problem.

if(keycode > 48){
		ValidatePhone(object)
}

should say:
if (keycode > 47){
		ValidatePhone(object)
}


Here is the script if you want to take a look:



Current Mood: Image confused

<< Previous Day 2006/12/06
[Calendar]
Next Day >>
About LiveJournal.com
Image