You can try onkeydown.sendEvent('keycode') but I don't think that will
actually type text in an input text field...
J Crowley wrote:
Does anyone have a trick I can use to simulate a user typing into a text
field in either Flash, DHTML or both? I can't use setText(), because
I'm testing inputtext constraints (maxlength, pattern) that are enforced
at runtime. (Or, more specifically put, typing into the field will
constrain the field's length and which types of characters are allowed,
but setting the text either by specifying in the text attribute or using
setText() seems to bypass these limits. Which is arguably more a
feature than a bug, I think, ultimately.)
Thanks in advance for any advice and ideas.
--
Regards,
Max Carlson
OpenLaszlo.org