RE: jQuery Sortable list not working in CFWINDOW

2009-11-20 Thread Joshua Rowe
This is exactly what I was looking for! Works great! Thank you! :) -Original Message- From: Azadi Saryev [mailto:az...@sabai-dee.com] Sent: Thursday, November 19, 2009 7:50 PM To: cf-talk Subject: Re: jQuery Sortable list not working in CFWINDOW try this: 1) create a js function

Re: jQuery Sortable list not working in CFWINDOW

2009-11-19 Thread Tony Bentley
Try this: function sortLists(el){ var mylist = $(el); var listitems = mylist.children('li').get(); listitems.sort(function(a, b){ var compA = $(a).text().toUpperCase(); var compB = $(b).text().toUpperCase(); return (compA compB) ? -1 :

Re: jQuery Sortable list not working in CFWINDOW

2009-11-19 Thread Tony Bentley
Here is an example. It does not feature drag/drop but it works like a charm. http://tonybentley.com/projects/sortedlist.cfm?download=true ~| Want to reach the ColdFusion community with something they want? Let them know on

Re: jQuery Sortable list not working in CFWINDOW

2009-11-19 Thread Azadi Saryev
try this: 1) create a js function in your main page (the one that opens a cfwindow): script type=text/javascript createSortables = function() { // users available and assigned lists: $(ul#sListAvailable, ul#sListAssigned).sortabl e({ connectWith: ul.userList, placeHolder: ul.userList,