a canadian startup

my name is ali asaria — this is my blog. I am the founder of Well.ca. I live in Guelph, Ontario, Canada. you can contact me at [myfirstname]@[thisdomainname]

more about ali asaria



Ali Asaria's Facebook profile
View Ali Asaria's profile on LinkedIn
    Permalink
    Aug
    10
    Fri
  1. jQuery: css accordion menu in 4 lines

    yesterday, chris suggested i consider using an accordion menu on our new, improved left navigation (not yet released). i was sort of “meh” about it — i don’t like extra UI, moving things, extra javascript, or things that don’t work on our customer’s old versions of internet explorer -1.2.

    but whatever, i thought i’d take a look.

    4 lines of code later, and no changes to the actual css or webpage, i had a working accordion menu:

    zz791996f8.jpg

    and to make it slide up and down, i did this:

    zz722dbfdf.jpg

    jQuery is awesome. awesome. the documentation is clear (there will always be a learning curve for a tool like this. i feel their demos and tutorials aren’t that good in terms of figuring out where to start, but once you get the hang of things, the docs are great for finding what you need, quick.)

    i might do a talk about the awesomeness of jquery at the next guelph democamp. i am totally in love with this AJAX and DOM scripting javascript toolkit.

    i have used prototype.js in the past, but heard great things about jQuery. we started using it internally about 3 weeks ago, and are considering using it on the front-end of our site in our next version.

    —————-

    UPDATE:

    just figured out that i could’ve used [...].slideToggle() to toggle sliding. dunno why i didn’t see that.

  2. 11 Responses to “jQuery: css accordion menu in 4 lines”

    1. get viagra without prescription Says:

      sjrok ofgtz ykis

    2. Side Effects Tramadol Red Face Says:

      bvpshu tbck dafctj txijpf

    3. viagra vs levitra vs cialis Says:

      jiymd mhdx

    4. mobilya Says:

      Nice tutorial Thanks

    5. Where To Buy Viagra Online Cheap Says:

      If your sex life isn’t fulfilling there are steps you can take to make it better. A good start is talk to your partner about how you feel.

    6. buy viagra without a prescription Says:

      TOmmy I have to say, Tom is delivering hard to refute information. Nice job. I know right where I can get the information you are referencing, I’ll get it and post later. Thanks.

    7. viagra Says:

      This is not you original post, isn’t it?

    8. Albert Galjour Says:

      Skate Longboards

    9. st.catharines seo Says:

      Web Design St.catharines

    10. Sueann Kut Says:

      Good article dude Thanks

    11. Foster Sease Says:

      Thanks, great text

Site Meter