Ok, I'm giving this one last try. I don't know what to do about the
error in Firefox 1.5, but the Portable version is working on this
computer. When I get home, I will try it on the one installed on that
machine.

I have been able to locate the keys I want, but now, I need setup a
way to allow the following keys:
- Tab
- Up
- Down
- Left
- Right
- Home
- End
- Delete

Here's what i'm doing in my function:

var key = e.key();
if(key.code < 45 || key.code == 46 || key.code == 47 || (key.code > 57
&& key.code < 95) || key.code == 96 || key.code > 122){
        e.preventDefault();
}

Thanks to everyone for all your help, I may actually get this yet!


On Apr 16, 7:11 am, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> "briandichiara" <[EMAIL PROTECTED]> writes:
> > Yes, I do get the pop-up box, however, it's also supposed to use
> > e.preventDefault(); at the bottom of the function, so it should always
> > return false. I changed it to onkeypress and that still doesn't return
> > false. Using FF 1.5 + FIrebug, it shows the error occuring, but in IE,
> > it doesn't.
>
> There's no error on FF 2.0 and no character goes to the text field, so I
> suppose your preventDefault is working.
>
> > Using the key_events demo, I think MochiKit has amazing technology
> > behind it, but it possibly lacks real world usage examples and
> > multiple applicable cases. And I can't find any documentation where
> > MochiKit can be used with Ajax and objects that load in after
> > "onload".
>
> What's the difference from where the data came from?  If it came through
> AJAX or it existed on the page, the only difference is when it will be
> available.  You can use the same methods, events, etc.  You just have to
> make sure you bind / connect things after they're available (either the
> event that is bound the when your AJAX data is available connects things
> or you do that at the bottom of the page, with an onload event, etc.).
>
> I don't miss "real world usage examples" for MochiKit...  Specially with
> all the demos it has.
>
> --
> Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to