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?
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