[jQuery] Error in IE, works in Firefox

2007-10-11 Thread hydra12
I'm working on a game in my (spare) time. It works in firefox, but not in ie. In my code, I assign a variable: board = $('#board'); board.hide(); This works in the latest firefox. In IE 6 and 7, I get Error: Object doesn't support this property or method Any ideas? Thanks! hydra12

[jQuery] Filter Question

2007-09-13 Thread hydra12
I have a list of images with the class block: $('img.block') I want to filter that list and only get items that have a specific top or left css value (for instance, only images with a top value of 25px). Does anyone have an idea how to do this? Thanks! hydra12

[jQuery] Re: Is it possible to catch keypress events to a div?

2007-09-07 Thread hydra12
Thanks! $(document).keypress was exactly what I needed! On Sep 7, 3:11 pm, seedy <[EMAIL PROTECTED]> wrote: > Ive used the shortkeys plugin for doing > thishttp://rikrikrik.com/jquery/shortkeys/ > > I'm not sure if it can be used on a specific div, but Ive used it on &g

[jQuery] Is it possible to catch keypress events to a div?

2007-09-07 Thread hydra12
I'm playing with the idea for a game, and I want to use the keyboard for control. I need to catch keypress events without using a textarea or a text input box. Can you bind keypress to a div or to ? I haven't been able to get it working, but I'm new to jquery. Thanks for the help! hydra12