Saving data in a form

Discussion in 'JavaScript' started by Ben H, Apr 25, 2007.

  1. #1
    I have made a little piece of AJAX where if I select a certain dropdown box, something else will appear underneath it. For example, if I choose '2 drivers' from the 1st box which triggers the AJAX, there will be some details to fill in for the 1st driver and some details to fill in for the 2nd driver.

    Once I have filled that in and choose another option from the dropdown that triggers the AJAX, the data I enter disappears.

    I guess what I am asking is, is there a way of sorting the data that I enter into these boxes?
     
    Ben H, Apr 25, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    I know two different ways to do that:

    -1- Using XSLT transformations on client. There you can use the <xslt:sort> filter inside your <xsl:for-each>. IMO This method is for advanced AJAX programmers.

    -2- Using javascript libraries to sort TABLES, so put your resulting data on a table and sort it. Take a look at this easy to use library: Make all your tables sortable
     
    ajsa52, Apr 25, 2007 IP