[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
of the parent link, I need to work on the *parent link* under which the active link is found. Any ideas? Thanks, osu On Sep 26, 7:48 pm, ryan.j ryan.joyce...@googlemail.com wrote: $('.nav-selected:first') On Sep 26, 5:36 pm, osu onesiz...@googlemail.com wrote: Can anyone help with this one

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
(){ $(this).parents(ul).parents(li).addClass(nav-selected); }); Any ideas what's going wrong? On Sep 29, 10:29 am, Liam Potter radioactiv...@gmail.com wrote: $(li a).click(function(){     $(this).parents(ul).parents(li).addClass(className); }); osu wrote: Hi Ryan, That only affects the child of theparent

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
); }); }); //]] /script But nothing is happening...no JS errors in Firebug either - any ideas? Thanks for your patience, osu On Sep 29, 11:07 am, Liam Potter radioactiv...@gmail.com wrote: I'm assuming you posted an example list and the real list does contain a tags? I'm also assuming you

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
? 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 radioactiv...@gmail.com wrote: It all works fine, except for this bit $(li ul).siblings(a).click(function(){                 return

[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 am, Liam Potter

[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 onesiz...@googlemail.com 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 ran

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

2009-09-26 Thread osu
, not the last item I want (link P7). Does anyone know how I can target this with my selector? Thanks, osu ul class=nav li class=nav-path-selected FIRST a href=/ class=nav-path-selectedP1/a /li li a href=/#P2/a /li li class=nav-path-selected a href=/# class=nav-path-selectedP3/a ul li class

[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 onesiz...@googlemail.com wrote: Hi, I'm trying

[jQuery] Re: Deactivating parent link with JQuery

2009-09-25 Thread osu
Anyone? Thanks osu On Sep 24, 9:26 pm, osu onesiz...@googlemail.com 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 the code that's being

[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, osu On Sep 25, 11

[jQuery] Disabling parent link if children present

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

[jQuery] Deactivating parent link with JQuery

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

[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 a tag, is it possible to just 'deactivate' it? i.e. when you click it, nothing happens, but the a tag stays in place? I ask, because I'd like to keep the CSS as simple as possible. Thanks, osu On Sep 24, 6:05

[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 dowhatyouw...@gmail.com wrote: In that case, you can just remove the href attribute of the link(s): $(li ul).siblings(a).removeAttr(href); or, if you want to leave in the href attribute

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
in it. Do you know how I can do that? Thanks for all your help so far, really is appreciated. osu On Sep 24, 8:18 pm, osu onesiz...@googlemail.com wrote: That's perfect, thanks for that - the second example works a treat. osu On Sep 24, 7:10 pm, Andi23 dowhatyouw...@gmail.com wrote

[jQuery] Fading background images in and out

2009-07-16 Thread osu
with 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
track of all browsers. Thanks, osu On Jun 29, 10:57 am, Jonathan Vanherpe (T T NV) jonat...@tnt.be 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 seems to happen on all browsers on my computer

[jQuery] Weird jumping happening with hover-over

2009-06-27 Thread osu
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] Problem validating checkbox before allowing submit of form

2009-04-03 Thread osu
doing wrong please? Thanks, osu HTML: form action=/cart method=post id=cartform input type=submit id=update-cart name=update value=Update basket class=checkout-btns / input type=submit value=Checkout name=checkout class=checkout- btns / a href=/ class=checkout-btns /Continue shopping/a p id=tandc

[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 onesiz...@googlemail.com 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 in Firebug

[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 bally.z...@gmail.com wrote

[jQuery] Using the title attribute if images as captions

2009-04-01 Thread osu
, but don't know how to do that. Any ideas greatly appreciated. Thanks osu

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

2009-04-01 Thread osu
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 = 'p' + $j(this).attr('title') + '/p'; $j('img.cright').wrap('div class=captionwrap

[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: Validating reCaptcha using JQuery before sending via $.post

2009-01-26 Thread osu
...@googlemail.com wrote: Here 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 onesiz...@googlemail.com wrote: Hi, Is there a way

[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 ramanatha...@gmail.com wrote: Hi, Checkout the non-intrusive labelover plugin.http://remysharp.com/2007/03

[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