[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
You're a dude, thank you. I agree that it would be better server-side, but it would involve hacking the core and I'm against that kind of thing, particularly for something that is purely to satisfy a designer's poncy preference. Thanks for your help. osu On Sep 29, 11:54 

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
place? Like this didn't work: $("li a").ready(function(){ $(this).parents("ul").parents("li").addClass("nav-selected"); }); Thanks, osu On Sep 29, 11:35 am, Liam Potter wrote: > It all works fine, except for this bit > $("li ul&quo

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
}); $("li a").click(function(){ $(this).parents("ul").parents("li").addClass("nav-selected"); }); }); //]]> But nothing is happening...no JS errors in Firebug either - any ideas

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
ick(function(){ $(this).parents("ul").parents("li").addClass("nav-selected"); }); Any ideas what's going wrong? On Sep 29, 10:29 am, Liam Potter wrote: > $("li a").click(function(){ >     $(this).parents("ul").parents("li

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
*parent link* under which the active link is found. Any ideas? Thanks, osu On Sep 26, 7:48 pm, "ryan.j" wrote: > $('.nav-selected:first') > > On Sep 26, 5:36 pm, osu wrote: > > > Can anyone help with this one please? > > > Thanks, > > >

[jQuery] Affecting last link in *top level* of unordered list

2009-09-26 Thread osu
s is appearing on the last *nested* list item, not the last item I want (link P7). Does anyone know how I can target this with my selector? Thanks, osu P1 P2 P3 P3a P3b P3c P3d P4 P5 P6 P7

[jQuery] Re: Affecting last link in *top level* of unordered list

2009-09-26 Thread osu
Ah, I feel stupid, sorry - just found the solution: $(document).ready(function() { // Hide first list item $("#header li:first").addClass("first"); // Hide last list item $("#header li:last").addClass("last"); }); On Sep 26, 6:47 pm, osu wrote: &

[jQuery] Re: Deactivating parent link with JQuery

2009-09-26 Thread osu
Can anyone help with this one please? Thanks, osu On Sep 25, 2:03 pm, osu wrote: > Thanks Ryan for the alternative, > > However, I need to do the following now (see message above your last > post): > > I need to highlight *only* the top-parentitem (the same one I just &

[jQuery] Re: Deactivating parent link with JQuery

2009-09-25 Thread osu
Thanks Ryan for the alternative, However, I need to do the following now (see message above your last post): I need to highlight *only* the top-parent item (the same one I just ran 'return false;' on) with the class 'nav-selected'. Any idea how I could do that? Thanks, o

[jQuery] Re: Deactivating parent link with JQuery

2009-09-25 Thread osu
Anyone? Thanks osu On Sep 24, 9:26 pm, osu wrote: > Ok, I have another question that's related to the first. > > I need to highlight *only* the top-parent item (the same one I just > ran 'return false;' on) with the class 'nav-selected'. > > This is

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
to parent li with children $(".nav-path-selected").addClass("nav-selected"); }; But it's not working for me. I'm *only* trying to affect the parent of the list that has a child active in it. Do you know how I can do that? Thanks for all your help so far, really is

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
That's perfect, thanks for that - the second example works a treat. osu On Sep 24, 7:10 pm, Andi23 wrote: > In that case, you can just remove the href attribute of the link(s): > $("li ul").siblings("a").removeAttr("href"); > > or, if you wan

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
Thanks Andi, Yes, I meant an unordered list as you showed. Rather than remove the tag, is it possible to just 'deactivate' it? i.e. when you click it, nothing happens, but the tag stays in place? I ask, because I'd like to keep the CSS as simple as possible. Thanks, osu

[jQuery] Deactivating parent link with JQuery

2009-09-24 Thread osu
- Link 3b - Link 3c - Link 4 Is that possible? I think it should be with selectors, but can anyone show me how? Thanks, osu

[jQuery] Disabling parent link if children present

2009-09-23 Thread osu
items. Is that possible? Thanks, osu

[jQuery] Fading background images in and out

2009-07-16 Thread osu
images in it and I can´t seem to keep them in the background only (i.e. the z-index doesn't work). Any ideas of how to keep the images only in the backgroun/stop them obscuring other elements on the page? Thanks osu

[jQuery] Re: Weird jumping happening with hover-over

2009-07-03 Thread osu
keep track of all browsers. Thanks, osu On Jun 29, 10:57 am, "Jonathan Vanherpe (T & T NV)" wrote: > osuwrote: > > Hi, > > > Could someone take a look at this website I developed and let me know > > what's going on with the footer logos please? It se

[jQuery] Weird jumping happening with hover-over

2009-06-27 Thread osu
#x27;s not happening on my system at home, but can someone confirm whether it's happening on their as well? Anyone know how I can stop it if so? Thanks, osu

[jQuery] Re: Problem validating checkbox before allowing submit of form

2009-04-03 Thread osu
Anyone? Pretty please :) On Apr 3, 9:16 am, osu wrote: > Hi, > > I'm trying to validate a checkbox before going to checkout in a shop > (without using the validate plugin), but the JQuery doesn't seem to be > working at all (i.e. nothing happens). Tried debugging

[jQuery] Problem validating checkbox before allowing submit of form

2009-04-03 Thread osu
nd see what I'm doing wrong please? Thanks, osu HTML: Continue shopping Please confirm you have read and understood our Terms and Conditions (required) JQUERY: //<![CDATA[ // JQuery function to test if t-and-c checkbox checked $(d

[jQuery] Re: Using the title attribute if images as captions

2009-04-02 Thread osu
Cheers for this Brian - can you tell me, do I need to put the makeImgCaption function code above the $(function...? Also, I can't see how the image is being wrapped in a div, could you explain that part to me please? Many thanks, osu On Apr 1, 5:09 pm, brian wrote: > In the first

[jQuery] Re: Using the title attribute if images as captions

2009-04-01 Thread osu
omla). Any ideas of what I'm doing wrong? The caption isn't appearing? Thanks, osu // Create caption from title attribute for images with class="imgcaption" $j('img.cright').each(function(){ var caption = '' + $j(this).attr('title

[jQuery] Using the title attribute if images as captions

2009-04-01 Thread osu
27;); It just uses the title attribute of the HTML document. Ideally, I'd like to wrap the caption in a tag as well, but don't know how to do that. Any ideas greatly appreciated. Thanks osu

[jQuery] Re: Validating reCaptcha using JQuery before sending via $.post

2009-01-26 Thread osu
is a demo of the validation plugin with some captcha > implementation, not > reCaptcha:http://jquery.bassistance.de/validate/demo/captcha/ > > Could help as a starting point. > > Jörn > > On Mon, Jan 26, 2009 at 2:05 PM, osu wrote: > > > Hi, > > > Is t

[jQuery] Validating reCaptcha using JQuery before sending via $.post

2009-01-26 Thread osu
Hi, Is there a way to validate a visitors reCaptcha input using JQuery before sending the form? I can't see any way I can do it. Can anytone help? Thanks

[jQuery] Re: How do I show the label text in an input

2009-01-25 Thread osu
Thanks for all the responses, much much appreciated. Funny you mentioned that method Ramanathan, as it's the one I've ended up using! Cheers, osu On Jan 24, 11:07 pm, Ramanathan RV wrote: > Hi, > > Checkout the non-intrusive labelover > plugin.http://remysharp.com

[jQuery] How do I show the label text in an input

2009-01-24 Thread osu
Hi, Apologies for this noob question, but I really need help and I have tried numerous techniques to get this right. A client has asked me to create an accessible form that has text describing what to put in the input area shown within the input. However, they don't want a label above it. To ke