Re: [jQuery] Smooth Scrolling for same-page links

2007-02-19 Thread hcabbos
Hey Klaus. Do you think you could post the new code that includes everyone's final recommendations? Karl Swedberg-2 wrote: > > > Ah! That is beautiful, Sam! Thanks! > > You know, sometimes I make things much harder for myself than they > have to be, just because I fear the browser (IE in p

Re: [jQuery] # or javascript:;

2007-02-17 Thread hcabbos
Wow. I completely understand. You've opened my eyes in more ways than one. I hope my newbie question has resulted in an education for all of us. Incredible insight Klaus. YOU ARE THE MAN! Klaus Hartl wrote: > > hcabbos schrieb: >> Understood. But all this started with me aski

Re: [jQuery] # or javascript:;

2007-02-16 Thread hcabbos
LOL. I'm dying over here :) This has been my week. Kenneth-35 wrote: > > I believe because: "So in the case of a link that isn't going anywhere but > is just meant to toggle a div, what's your recommendation?" > > We've almost come full-circle in the discussion now :) > >

Re: [jQuery] # or javascript:;

2007-02-16 Thread hcabbos
Understood. But all this started with me asking whether to use inline # or javascript:; for activating a toggle. So my conclusion is if Progressive Enhancement is what I'm after, I'll use this method: $(document).ready(function(){ $("a#sliderExec").bind('click', function() {

Re: [jQuery] # or javascript:;

2007-02-16 Thread hcabbos
malsup wrote: > > I haven't read this whole thread, but I don't see why you need this line: > > $("a#sliderExec").attr({ href: "javascript:;"}); > > You're handling the click event anyway, so why update the href? > Because without this my link isn't showing up as a link (with the styles ap

Re: [jQuery] # or javascript:;

2007-02-16 Thread hcabbos
hcabbos wrote: > > The following works but is it correct based on: > > 1) the unobtrusive scripting paradigm > Duh...answering my own question, the way to address this would be to link to a page that contained the content of the toggling div. That way if javascript were turned

Re: [jQuery] # or javascript:;

2007-02-16 Thread hcabbos
Thanks to everyone for really helpful insights into my question. I've witnessed '#' and 'javascript:;' being used in JQuery examples, so I was curious as to a recommended method. I'm a newbie to JQuery. With that said, Kenneth-35 makes a good point... "IE doesn't treat 's as links unless they ha

[jQuery] # or javascript:;

2007-02-16 Thread hcabbos
What's the best way to apply a behavior to an anchor tag? my text -- or -- my text ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/