Simple Sorting Function for a Dynamic Table

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Simple Sorting Function for a Dynamic Table

    Hello everyone, I was wondering if their was a way in dreamweaver to allow
    your site users to sort the data displayed in a dynamic table on your site??
    Preferably in a drop down menu but any help anyone may be able to give would be
    most appreciated!

    TheRapidGroup Guest

  2. Similar Questions and Discussions

    1. Sorting a recursive table by specified order
      Hi all, I've got an table like this: TABLE: id int(8) PRIMARY AUTO_INCREMENT name varchar(80) parent int(8) INDEX order ...
    2. Sorting Dynamic Data
      Hello, I am working through some tutorials, trying to make my self smarter in dynamic application building. The problem I am having (and I...
    3. Help with simple datagrid paging and sorting issue
      Please help! I have a simple web app that displays some search fields, posts back to itself onclick of the search button, and shows the results...
    4. table sorting
      Hi, Does anyone have any ideas on how to sort a table by clicking the column. i.e. a name column, and an age column - clicking the name will sort...
    5. dynamic sorting
      ARAVIND wrote at Sat, 05 Jul 2003 04:11:57 -0700: I doubt it. I get $splitval eq "ARAVIND 2" and $splitval eq " BANGALORE" Well...
  3. #2

    Default Re: Simple Sorting Function for a Dynamic Table

    Create your SQL on the fly, say via a querystring so you have something like:
    [url]www.site.com/mytablepage.asp?sort=lastname[/url] find where the SQL is generated on
    your table page, Look for something like: ssql = 'SELECT * FROM customers'
    after this line add something like: if request.querystring('sort') <> '' then
    'there's something to sort by ssql =ssql &amp; ' ORDER BY ' &amp;
    request.querystring('sort') then you can add links at the column heads or in a
    drop down that look something like: <a
    href='mytablepage.asp?sort=lastname'>Last Name</a> <a
    href='mytablepage.asp?sort=address'>Address</a> <a
    href='mytablepage.asp?sort=city'>City</a> the page links to itself, but each
    link re-sorts the recordset. Check out [url]http://www.riverfrontmarine.com/[/url] and
    look at the new and used boats. Look at the URL in the status bar when you
    mouse over the column heads and you'll get an idea of what I did. This example
    is ASP but you could do the same with PHP or JSP. Best of luck, Steve
    Vaporloop: Technology Solutions for Small Businesses

    stevenlmas Guest

  4. #3

    Default Re: Simple Sorting Function for a Dynamic Table

    the code I wrote to show you how to make the sort links where converted to
    actual links. here they are w/o the tags so they show up. a
    href='mytablepage.asp?sort=lastname' LAST NAME /a a
    href='mytablepage.asp?sort=city' CITY /a a href='mytaplepage.asp?sort=state
    STATE /a

    stevenlmas Guest

  5. #4

    Default Re: Simple Sorting Function for a Dynamic Table

    Thanks for taking the time to help me out. I am going to try it out right now.
    TheRapidGroup 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