House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  JQuery

sorting jQuery created list and or lists

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Teed Younger
01/21/2011 10:19 AM

I have some jQuery that creates unordered lists as needed by the user. The list is then sent to the action page where a nested cfloop inserts the form values into a ul. I need these lists to be sorted alphabetically so the user doesnt have to do it. No matter what I've tried, I cant seem to get this working. Maybe I'm placing my sort function in the wrong place or wrong page entirely. Here is my form. http://pastebin.com/UPVGdjUn Here is my action page nested loops. http://pastebin.com/EsHFyYRS And here is my sort fucntion. http://pastebin.com/8zM86TRL Thanks again for all the help!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Teed Younger
01/21/2011 11:47 AM

Update. Ok I've managed finally to sort the lists! I reworked my action.cfm just a bit. Now instead of looping through a collection of ul, THEN looping through an array of <li>, the outer loop just loops through the Vendors as headings. Then the inner loop loops through the ul. So now when my lists are displayed back, they are in alphabetical order. However, the issue now is I cant seem to get the lists saved IN that order throughout my application.


<< Previous Thread Today's Threads Next Thread >>

Search jquery

May 21, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       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   

Designer, Developer and mobile workflow conference