[jQuery] Re: Help Me Optimize My First JQuery Script (Extinguish The Early Flames of Bad Practices)

2009-04-15 Thread Dante
e > this: > > $("li.button a").click(function(event){ >   //show the link's parent, hide the parent's siblings >    $(this) >      .parent().show() >      .siblings().hide(); >    return false; > > }); > > On Apr 14, 11:49 pm, Dante wrote: > >

[jQuery] Help Me Optimize My First JQuery Script (Extinguish The Early Flames of Bad Practices)

2009-04-14 Thread Dante
Hello, I'm just starting to delve into JQuery, and I'd like to extinguish as many bad practices as possible. I wrote my first script from scratch a few days ago, and here is an outline of what I wanted the script to do: >Generate the "category" links/controls onload for graceful degradation >Di

[jQuery] Re: Scroll effect

2007-12-01 Thread dante
I kind of liked the effect, so i quickly wrote a prototype using dojo, though there is really no dojo-specific stuff going on (except the _Line class, which is just an object with a start, end, and a .getValues() method to return a point based on a percentage passed (n = 0..1)) this could all eas