checkbox-driven page-content filter

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default checkbox-driven page-content filter

    I'd like to provide a client-side function to give the user the abiliity to filter a results set, after a search. As an example, a user searches for all restaurants in San Francisco. The results display all restaurants along with a checkbox control enabling the user to show only those restaurants categorized accordingly:

    [x] Expensive
    [x] Affordable
    [x] Cheap

    In this case, all restaurants would display, and if the user de-selects Expensive and Affordable, then only the Cheap restaurants would display. I'd like to do that without hitting the server again. I thought this could be done in Javascript, but haven't found an example I could work with. Is this something I can do in DHTML? Can anyone get me closer to a solution?



    M'karlo webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. How do I Include content (another page) in a WEeb [page
      I need some help. I?ve been using MS Front Page for the last 6-7 yrs. In MS FP there is a way to include an html file into another html file. ...
    2. How To: Display content page to page w/ different domain
      Greetings - Domain 1 = State Domain 2 = County What I would like to accomplish, is display 12 lines of code from a web page under "domain 1"...
    3. Securing content via .NET ISAPI filter
      I’m trying to protect some content on a web application from un-authenticated users based on forms authentication. So far I’ve added the...
    4. pass dynamic checkbox values to results page?
      ASP VB Access db Help! I'm trying to pass the results of dynamic checkboxes to a results pages. What's the easiest way to get this accomplished?...
    5. Page Filter in C#
      Your opinion is appreciated. I am thinking about building a role-based security module for my web based application. Here is what I have in...
  3. #2

    Default Re: checkbox-driven page-content filter

    It would be pretty easy, there are a whole load of different techniques you
    could use, either using checkboxes in a form or just plain links. Each
    result would have to have a tag included with it, say in an array, and you'd
    need a function that when called would show or hide each result based on
    that tag... is this making any sense?


    M'karlo wrote:
    > I'd like to provide a client-side function to give the user the
    > abiliity to filter a results set, after a search. As an example, a
    > user searches for all restaurants in San Francisco. The results
    > display all restaurants along with a checkbox control enabling the
    > user to show only those restaurants categorized accordingly:
    >
    > [x] Expensive
    > [x] Affordable
    > [x] Cheap
    >
    > In this case, all restaurants would display, and if the user
    > de-selects Expensive and Affordable, then only the Cheap restaurants
    > would display. I'd like to do that without hitting the server again.
    > I thought this could be done in Javascript, but haven't found an
    > example I could work with. Is this something I can do in DHTML? Can
    > anyone get me closer to a solution?

    rob :: digitalburn Guest

  4. #3

    Default Re:checkbox-driven page-content filter

    Thanks Rob!

    Yes, that makes perfect sense, but I need to know HOW to go about doing it. Is this a javascript implementation? If so, are there examples you can point me to?


    M'karlo webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Re:checkbox-driven page-content filter

    Yes, you can do it entirely with JavaScript, although you'd need to get your
    PHP to write a little more info to the page in the first place to make
    things a bit easier (depending on how you do it). I don't know any examples
    I'm afraid, it's the kind of thing I usually figure out by myself :)


    M'karlo wrote:
    > Thanks Rob!
    >
    > Yes, that makes perfect sense, but I need to know HOW to go about
    > doing it. Is this a javascript implementation? If so, are there
    > examples you can point me to?

    rob :: digitalburn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139