Hallo, soenk.e,
Wenn man mit diesen Vorschlägen den Inhalt ändert, gibt's beim IE kein onChange-Ereignis? Was hat Microsoft denn da nun wieder für einen Unsinn zusammengeschustert?
To determine when a user updates the content of a field from the AutoComplete dialog box, use the onpropertychange event, rather than the onchange event, because the onchange event does not fire.
http://msdn.microsoft.com/workshop/author/forms/autocomplete_ovr.asp
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onpropertychange.asp
[There is no public standard that applies to this event.]
Was Deine Frage angeht: event.keycode spuckt Unicode aus. Siehe http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/keycode.asp. (in SelfHTML steht fälschlicherweise ASCII).
Aber bei Microsoft steht auch folgendes:
As of Microsoft® Internet Explorer 4.0, the onkeypress
event fires and can be canceled for the following keys:
Letters: A - Z (uppercase and lowercase)
Numerals: 0 - 9
Symbols: ! @ # $ % ^ & * ( ) _ - + = < [ ] { } , . / ? \ | ' ` " ~
System: ESC, SPACEBAR, ENTER
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/keycode.asp
Soll ich daraus schließen, daß nur für diese Zeichen Unicode ausgegeben wird?
Grüße,
Sebastian