[jQuery] Re: Disable a link temporarily

2009-02-09 Thread rob303
> > function is not fired, since it's not bound... > > > > > Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com > > > On Sat, Feb 7, 2009 at 2:48 PM,rob303 wrote: > > > > Hi, > > > > This should be easy. > >

[jQuery] Disable a link temporarily

2009-02-07 Thread rob303
Hi, This should be easy. I want to disable a link and then re-enable it later. I have: $('a.show_reset_pass_box').click(function() { // do some stuff $('a.show_reset_pass_box').unbind('click'); return false; }); Which works just fine. But then when I try to do: $('a.close_rese

[jQuery] Re: slideUp/Down jumpy in Firefox 3 but not in IE7?

2009-02-04 Thread rob303
I was struggling with this issue a few days ago. See: http://groups.google.com/group/jquery-en/browse_thread/thread/e24b99e5d6d14037/634d9d35155fc85a On Feb 4, 5:37 pm, "Andy Matthews" wrote: > The jQuery team freely admits that they optimize for IE more so than the > other browsers. So it's d

[jQuery] Dynamic height and animation

2009-02-04 Thread rob303
Hi All, I'm at a bit of a loss here. I have a div which contains a swf. The swf has various panels that can be expanded and contracted vertically so it's height can grow It's embedded using the jQuery flash plug-in and it has a height of 100%. The div itself has a starting height of 285px..

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-31 Thread rob303
the > div just long enough to get the height, hid it again and then slid it > down. You could prevent the div from actually showing by giving it > something like .css("left","-1px") before using .show(). Just a > thought. > > Tommy > > On Jan 30, 2:00 pm,

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Oh, one other thing. If I call .css('display', 'block') on the element before using height() FF gives me the correct value of 240px. Obviously, that breaks the accordion because I want the element hidden! /me scratches head ... Rob. On Jan 30, 7:57 pm, rob303 wrote: &g

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
ys! :D > > On Jan 30, 1:52 pm, rob303 wrote: > > > Hi, > > > I've been working on this for days.  The chaps on IRC couldn't find an > > answer so I thought I'd post it here just in case anyone knows what's > > going on. > > > I ha

[jQuery] Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Hi, I've been working on this for days. The chaps on IRC couldn't find an answer so I thought I'd post it here just in case anyone knows what's going on. I have a basic accordion type feature. The designer wants to be able to open more than one of hidden the sections at once ... So, here is m

[jQuery] Re: Identify last keeypess

2009-01-21 Thread rob303
gt; From: jquery-en@googlegroups.com on behalf of rob303 > Sent: Tue 20/01/2009 16:40 > To: jQuery (English) > Subject: [jQuery] Re: Identify last keeypess > > Thanks again.  On reflection I think you are right James.  I should > probably disable autocomplete for this field and doing s

[jQuery] Re: Identify last keeypess

2009-01-20 Thread rob303
Thanks again. On reflection I think you are right James. I should probably disable autocomplete for this field and doing so would resolve my issue. However, I've taken a quick look at the nocomplete plugin and that's not really what I want as it breaks some other functionality I have on those i

[jQuery] Re: Identify last keeypess

2009-01-20 Thread rob303
f autocomplete text box or is it a select input? > > James > > > > From: jquery-en@googlegroups.com on behalf of rob303 > Sent: Tue 20/01/2009 13:44 > To: jQuery (English) > Subject: [jQuery] Identify last keeypess > > Hi, > >

[jQuery] Identify last keeypess

2009-01-20 Thread rob303
Hi, I've been searching the web for an answer to this but haven't been able to find one. I have a form which is using an image as it's submit button and I want users to be able to submit the form by pressing enter. Simple enough: // submit the login form if the user hits enter $('.login_input'

[jQuery] Re: Hide / show password field with focus

2009-01-06 Thread rob303
ue >                 } else{ >                     if (this.value === ''){ >                                 this.value = this.defaultValue >                         } >                 } >                 if(this.name === 'pass'){ >                         $('.header_lo

[jQuery] Re: Hide / show password field with focus

2009-01-06 Thread rob303
Hi, I'm still really struggling with this. Any help would be greatly appreciated! Rob. On Jan 6, 11:40 am, rob303 wrote: > Hi, > > I've put together a couple of small functions to handle the removal / > restore of the default text inside some text inputs.  One of these

[jQuery] Hide / show password field with focus

2009-01-06 Thread rob303
Hi, I've put together a couple of small functions to handle the removal / restore of the default text inside some text inputs. One of these inputs is a password field. I'm showing the user a standard text field containing the text 'Password'. When the user clicks in the box the standard text f

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
#x27;div.success').fadeIn('medium'); } else { $('div.error').show(); } } }); return false; }); }); It works just fine now. Cheers, Rob. On Jan 4, 10:12 pm, rob303 wrote: > After a little more

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
$('div.success').fadeIn('medium'); } else { $('div.error').show(); } } }); return false; }); }); The json object contains what I need but I can only test it as if it were a string. res.result is undefined. Why? T

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
t; supposed to 'know' if the data values were numeric or string and only > quote the latter.  That was not my experience, and perhaps not yours, > either.  Try '1' as the value you compare to instead of 1. > > On Jan 4, 1:05 pm, rob303 wrote: > > > Interesting

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
Interestingly, in the Firebug console I'm seeing the correct responses: {"result":1} or {"result":0} How can I access these inside my $.ajax() call? Many thanks again for all the help! Rob. On Jan 4, 5:57 pm, rob303 wrote: > Yes, the missing semicolons are an e

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
=> 1); } else { $json_data = array('result' => 0); } echo json_encode($json_data); ?> -- On Jan 4, 5:44 pm, donb wrote: > You must 'echo' the JSON output.  Also you indicate periods ending > code lines, instead of semicolons but perhaps tha

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
rn a JSON object. > > Construct a PHP array such as $json_data = array('result' => 0, > 'error' => 'This is an error').  End your PHP script with json_encode > ($json_data).  Then you can reference del.result and del.error (I'm > referring to your d

[jQuery] How to handle responses from PHP with $.ajax()

2009-01-04 Thread rob303
Hi, I'm new to ajax and jquery but I'm not new to PHP. The following example seems to work okay to a point but I can't figure out how to handle data validation errors generated in my PHP. In my example I want to post some data to a script called ajax.php. That script will check the data for val