I am completely lost, as is always, when trying new script libraries. I am trying to figure out how MochiKit works, and having a tough time. For example, my first use for MochiKit is to use a cross-browser key capture to restrict to only certain characters in a text input. After studying the examples and the "key_events" demo, I thought I had a basic understanding as to what's going on here. Well, I tried a simple connection and already getting errors: "connect is not defined"
It could be that I'm trying to use this on a field that isn't on the page yet. I will be loading it into the page through Ajax, so my question is simply this: How do I setup a key-checking system that captures keys pressed by the user on a specific text field and the text field isn't on the page at Load, but brought in through Ajax later? I'm simply trying to only allow a-z (not A-Z), 1-9, _, and all other key functions like the arrow keys, home, tab, etc. I don't want spaces or special characters other than the underscore. Am I correct in understanding MochiKit is capable of this, and is used for this reason, or am I mistaken, and I have misunderstood what MochiKit is for? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
