[jQuery] Re: Making a button in active

2009-05-28 Thread Fluffica
That sounds to make sense, I shall try that out. Thanks chaps. If I'm ever in your area, I'll buy you all a pint. On 27 May, 18:00, Liam Byrne wrote: > This is definitely the best option, as you can achieve everything that > you might need > > The disabled css class can > a) have the same text

[jQuery] Re: Making a button in active

2009-05-27 Thread Liam Byrne
This is definitely the best option, as you can achieve everything that you might need The disabled css class can a) have the same text colour as the text b) set text-decoration to none c) set the cursor the normal one d) have an a.disabled:hover pseudo-class to do a & b Just remember to inclu

[jQuery] Re: Making a button in active

2009-05-27 Thread Charlie
another option is put an overlay over them Fluffica wrote: I thought "oriHref" was a fancy part of jQuery there. Well, hopefull thinking. Unfortunatly I've got a long list of dynamic links, and need to disable them all when one is clicked. Putting the original href back into each one does

[jQuery] Re: Making a button in active

2009-05-27 Thread M.M.
Why don't you just add the class, like this: $(".btn").click(function(){ if($(this).hasClass('disabled')) //alert("can't touch this!"); } else { $(this).addClass('disabled'); $("#somethingElse").doStuff('slow', function(){ $

[jQuery] Re: Making a button in active

2009-05-27 Thread GaVrA
oriHref is just variable containing value of href atribute... :) Could you post some demo page or paste here some code? On May 27, 5:17 pm, Fluffica wrote: > I thought "oriHref" was a fancy part of jQuery there. Well, hopefull > thinking. > > Unfortunatly I've got a long list of dynamic links,

[jQuery] Re: Making a button in active

2009-05-27 Thread Fluffica
I thought "oriHref" was a fancy part of jQuery there. Well, hopefull thinking. Unfortunatly I've got a long list of dynamic links, and need to disable them all when one is clicked. Putting the original href back into each one doesn't seem possible (at least with my "designer trying out this javas

[jQuery] Re: Making a button in active

2009-05-27 Thread GaVrA
You can use timeout method, or maybe changing href attribute to href="" $(".btn").click(function(){ var oriHref = $(this).attr('href'); //.btn is now NOT clickable $(this).attr('href' : ''); $("#somethingElse").doStuff("slow", function(){ //.btn is now cli

[jQuery] Re: Making a button in active

2009-05-27 Thread Fluffica
Sorry, I should probably add, it's not actually a button. It's an On May 27, 2:05 pm, Fluffica wrote: > Good Afternoon (or morning depending on where you are). > > I really hate posting probably quite simple questions to forums, but > this is really foxing me. > >         $(".btn").click(functi