theemperor
Programmer
Hi all,
I'm trying to do the following: the user types a letter (or numeral or some special chars) into a input box. Depending on the value of the input box, all entries in an array starting with exatly that string ar beeing displayed in a table underneath the input box (it is going to be a combo box). My problem now is when I'm trying to catch the onkeypress-event (I use this one because it only fires on letters, numerals, some special chars, space, esc and enter) and get the value of the input box afterwards with the getAttribute('value')-function, the character I just typed in isn't in the value of the input box. This is because the onkeypress-event is just like the onkeydown-event, except that it doesn't fires on every key.
Has anybody got an idea of how I could solve or work around this problem???
Thanx for any help!
Regards,
Robert
I'm trying to do the following: the user types a letter (or numeral or some special chars) into a input box. Depending on the value of the input box, all entries in an array starting with exatly that string ar beeing displayed in a table underneath the input box (it is going to be a combo box). My problem now is when I'm trying to catch the onkeypress-event (I use this one because it only fires on letters, numerals, some special chars, space, esc and enter) and get the value of the input box afterwards with the getAttribute('value')-function, the character I just typed in isn't in the value of the input box. This is because the onkeypress-event is just like the onkeydown-event, except that it doesn't fires on every key.
Has anybody got an idea of how I could solve or work around this problem???
Thanx for any help!
Regards,
Robert