[jQuery] Re: consistently unable to get return false to work, why?

2009-07-28 Thread Eric Garside
Try starting off with a simplifying your selectors and the code in general? .live(), in this case, isn't going to provide you much benefit, as you're binding it to an element based on an ID, which means there will only ever be a single element which this function triggers for. Try something

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-28 Thread Michael Geary
The usual advice applies here: If you can post a link to a failing test page with instructions to trigger the failure, I'll bet someone can take a look at it and figure out what you're doing wrong. -Mike

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread John Resig
It looks like you're using the old liveQuery plugin. Why not just use .bind() or .live()? --John On Mon, Jul 27, 2009 at 5:11 PM, pedalpete p...@hearwhere.com wrote: So, this isn't related to any one bit of code, but it seems to be a problem I run into almost everytime i need to stop a form

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread pedalpete
Thanks John, I wasn't familiar with the .live() before, but of course I'll use that where I can. Though I'm honoured and humbled by your response, unfortunately, in this case, I'm using a 'submit', and the documentation says i can't use .live on submit currently. (I did try and, and it didn't

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread James
If the return false fails, it's usually something wrong with parsing your Javascript that causes the problem. For example: $(input#email).after(works); It's missing a closing quote () after email. On Jul 27, 12:28 pm, pedalpete p...@hearwhere.com wrote: Thanks John, I wasn't familiar with