sort

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shmuel

    #1

    sort

    Is it possible to sort a table according to a heading (<th>) by cliking that
    header?

    If I have like this

    NAME UNIT RATE
    name1 unit1 rate1
    name2 unti2 rate2
    name3 unit3 rate3

    Now if I click for example RATE it would sort them.
    Is this possible with XSL ?



  • Dimitre Novatchev

    #2
    Re: sort

    Within the onclick event start an XSLT transformation passing to it as
    parameter the name of the column, which is to be used for sorting.

    A complete example can be found in Mike Kay's book.

    See also:




    =====
    Cheers,

    Dimitre Novatchev.
    http://fxsl.sourceforge.net/ -- the home of FXSL


    "Shmuel" <shmuel@nic.f i> wrote in message
    news:vx66b.3749 $ZB4.2268@reade r1.news.jippii. net...[color=blue]
    > Is it possible to sort a table according to a heading (<th>) by cliking[/color]
    that[color=blue]
    > header?
    >
    > If I have like this
    >
    > NAME UNIT RATE
    > name1 unit1 rate1
    > name2 unti2 rate2
    > name3 unit3 rate3
    >
    > Now if I click for example RATE it would sort them.
    > Is this possible with XSL ?
    >
    >
    >[/color]


    Comment

    Working...