jQuery Sortable list not working in CFWINDOW

2009-11-19 Thread Joshua Rowe
Hello! I have a page where a user can select other users to assign to a project. The user drags and drops a user from a list on the left side into another list on the right side. This is all handled using an unordered list and jQuery's sortable() function. This works great by itself, but I

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 the

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): 2) remove your current $(document).ready(...) block (completely if it is in the page loaded in cfwindow, or just the part of it that creates the sortable lists if it is in the main page and also has other functi

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