Skip to main content
Inspiring
August 9, 2011
Question

Filter recordset client side ?

  • August 9, 2011
  • 4 replies
  • 1208 views

Was looking at a website recently and noticed an interesting and quick way to filter down the search results to what I was looking for...

The page is here:

http://www.johnlewis.com/Men/Men's+Shirts/Men's+Shirts/Men's+Shirts/10647/ProductCategory.aspx

If you look down the top left column headed "Brand", each time you tick a box, it filters the results, to show your ticked selection (and other ticked selections)

This seems to be done client side, as its nearly instantaneous ? Is it possible to achieve this with Coldfusion or a technology in addition to Coldfusion ?

    This topic has been closed for replies.

    4 replies

    Inspiring
    August 9, 2011

    Also, I can see it having implications for SEO


    For example, it'll certainly change the site's profile with Google, in terms of the number of pages shoppers would have been previously clicking on.

    I think it'll definitely have it's uses in certain situations, but must be used carefully.

    Inspiring
    August 9, 2011

    Wow, I only use Coldfusion and other web tech occasionally, so I didn't know anything about AJAX.

    What I've read so far, offers some great possibilities in terms of site useability. I'm going to have fun experimenting with this.

    Like most things, I'm sure there are caveats I need to understand. For example, at the moment I need to work out just which browsers support this and if imobile devices such as those running iOS and Android will use it happily.

    Exciting!

    Inspiring
    August 9, 2011

    OK, seriously... Google JQuery before you get too far down your current track.

    It's great to understand how the AJAX stuff works (so read all the vanilla AJAX stuff you can find so as ot understand how it works), but it's a right PitA to work with it directly.  Use JQuery for that.

    --
    Adam

    Inspiring
    August 9, 2011

    Yep, already taken your advice on board.

    JQuery is on my reading list.

    Known Participant
    August 9, 2011

    I have good experience with jQuery.

    There are many good plugins like tablesorter and tinysort if you dont want to write your own.

    //Anders

    Inspiring
    August 9, 2011

    Thanks Anders, I'll be sure to check those out.

    Inspiring
    August 9, 2011

    It's just using AJAX to re-fetch the contents of the page based on the filters.

    Google these things:

    javascript ajax

    coldfusion ajax

    jquery

    Read.  Experiment.

    --

    Adam

    Inspiring
    August 9, 2011

    Thanks Adam

    This AJAX thing looks interesting.