[jQuery] Re: focus() killed by return false;

2009-08-27 Thread Karl Swedberg
On Aug 27, 2009, at 12:33 PM, Florin Gheorghies wrote: How on earth do I start getting these emails out of the blue! I've checked, I'm not member of this group. Can anyone tell me how to cancel it? The following instructions are paraphrased from: http://groups.google.com/support/bin/answ

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread Florin Gheorghies
7, 2009 10:56 AM To: jQuery (English) Subject: [jQuery] Re: focus() killed by return false; Thanks Ianxiazhi, that works. Why is it that I need to call focus from its own callback? Like I said, I'm very new to JS/jquery so any insight is appreciated. -S On Aug 27, 12:14 am, lanxiazhi wr

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread shenry
Thanks Ianxiazhi, that works. Why is it that I need to call focus from its own callback? Like I said, I'm very new to JS/jquery so any insight is appreciated. -S On Aug 27, 12:14 am, lanxiazhi wrote: > function loginCallback() {//add a callback function to this animation,where > the focus take

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread lanxiazhi
function loginCallback() {//add a callback function to this animation,where the focus take place. $("#login_form").show("slide", null, 1000); }

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread shenry
I tried both Hector's suggestion and Karl's, neither solved the problem. In both cases the field has focus while it's sliding in, then when the animation is done focus is lost. Oddly, I noticed if I navigate away from this page by going to another tab in FF, when I return to this page the field *

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread Karl Swedberg
If Hector's suggestion doesn't work, try using preventDefault() instead of return false: $(function() { $("#login a").click(function(event) { event.preventDefault(); $("#login").animate( { width: 300, height: 20 }, 500); $("#login a").hide

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread shenry
I've only got one element with .focus at this point, but I'll try Hector's suggestion this evening. Thanks for the help

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread Cesar Sanz
: [jQuery] Re: focus() killed by return false; Try calling focus() on the actual element instead of the collection. Change this: $("input.focus").focus(); To this: $("input.focus")[0].focus(); -- Hector On Wed, Aug 26, 2009 at 7:37 AM, shenry wrote:

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread Hector Virgen
Try calling focus() on the actual element instead of the collection. Change this: $("input.focus").focus(); To this: $("input.focus")[0].focus(); -- Hector On Wed, Aug 26, 2009 at 7:37 AM, shenry wrote: > > *bump* > > Any ideas?

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread shenry
*bump* Any ideas?