Re: [Proto-Scripty] Sortable with 1,000 elements?
On 30 June 2011 17:33, Walter Lee Davis wa...@wdstudio.com wrote: On Jun 30, 2011, at 12:08 PM, Richard Quadling wrote: I use http://www.kryogenix.org/code/browser/sorttable/ -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea Thanks, that's completely a different thing from what I'm doing. I have a drag-to-sort widget that lets users put photos in a specific order, then saves that order in an Ajax callback. Scripty.Sortable does precisely that. Walter Aha! Ok. Sorry for the noise. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Sortable with 1,000 elements?
I have been chasing my tail on a slow script error, and just now discovered that if I disable my call to make a 1,000 element list sortable the problem goes entirely away. First, is there any sort of tool I can use to determine where this function is spending all of its time? Second, is there any way to get around these slow script errors? The issue I am seeing is that once the page loads, and this function is called, the browser goes into beachball mode, eventually shows an alert about the slow script. If I okay that (keep trying, I tell it) the page loads and works perfectly. Sortable does exactly what it's supposed to do, and very snappily. Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Sortable with 1,000 elements?
Walter, I had the timeout problem on a script with a different purpose. What I did was hijacked the code here: http://www.mcfedries.com/JavaScript/timer.asp I created an array: var funcTimers[] and then modified the above code to insert into the array and each func started the timer on entry and ended it on exit. At the end, I dumped the funcTimers out with an alert() and I had my answer. Also, about 10 years ago (when I was younger and smarter) I wrote a table sort function that would sort a standard html table based on the column clicked. It was quite fast and would sort through 1000 columns pretty quickly. I looked on my backup drive and couldnt find it but if you want, I'll root around and post it might give you a different strategy. P~ On Thu, Jun 30, 2011 at 9:01 AM, Walter Lee Davis wa...@wdstudio.comwrote: I have been chasing my tail on a slow script error, and just now discovered that if I disable my call to make a 1,000 element list sortable the problem goes entirely away. First, is there any sort of tool I can use to determine where this function is spending all of its time? Second, is there any way to get around these slow script errors? The issue I am seeing is that once the page loads, and this function is called, the browser goes into beachball mode, eventually shows an alert about the slow script. If I okay that (keep trying, I tell it) the page loads and works perfectly. Sortable does exactly what it's supposed to do, and very snappily. Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@** googlegroups.com prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+** unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/prototype-scriptaculous?**hl=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Sortable with 1,000 elements?
Thanks very much for the offer. I seem to have fixed it here, but the problem wasn't specifically in Sortable. What I ended up doing was staggering some of the Ajax loading events that were also happening while that function fired using setTimeout and that got around the problem. Somewhere on one of my computers I have a copy of a framework called light sortable or lite sortable, which aims to ape the Scriptaculous API without being so heavy. It eschews the fancy animation effects for simple fast drag sorting. But my page (and client) are pretty wedded to that eye candy, so I guess Im stuck with that. Thanks, Walter On Jun 30, 2011, at 10:23 AM, Phil Petree wrote: Walter, I had the timeout problem on a script with a different purpose. What I did was hijacked the code here: http://www.mcfedries.com/JavaScript/timer.asp I created an array: var funcTimers[] and then modified the above code to insert into the array and each func started the timer on entry and ended it on exit. At the end, I dumped the funcTimers out with an alert() and I had my answer. Also, about 10 years ago (when I was younger and smarter) I wrote a table sort function that would sort a standard html table based on the column clicked. It was quite fast and would sort through 1000 columns pretty quickly. I looked on my backup drive and couldnt find it but if you want, I'll root around and post it might give you a different strategy. P~ On Thu, Jun 30, 2011 at 9:01 AM, Walter Lee Davis wa...@wdstudio.com wrote: I have been chasing my tail on a slow script error, and just now discovered that if I disable my call to make a 1,000 element list sortable the problem goes entirely away. First, is there any sort of tool I can use to determine where this function is spending all of its time? Second, is there any way to get around these slow script errors? The issue I am seeing is that once the page loads, and this function is called, the browser goes into beachball mode, eventually shows an alert about the slow script. If I okay that (keep trying, I tell it) the page loads and works perfectly. Sortable does exactly what it's supposed to do, and very snappily. Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Sortable with 1,000 elements?
On 30 June 2011 15:41, Walter Lee Davis wa...@wdstudio.com wrote: Thanks very much for the offer. I seem to have fixed it here, but the problem wasn't specifically in Sortable. What I ended up doing was staggering some of the Ajax loading events that were also happening while that function fired using setTimeout and that got around the problem. Somewhere on one of my computers I have a copy of a framework called light sortable or lite sortable, which aims to ape the Scriptaculous API without being so heavy. It eschews the fancy animation effects for simple fast drag sorting. But my page (and client) are pretty wedded to that eye candy, so I guess Im stuck with that. Thanks, Walter On Jun 30, 2011, at 10:23 AM, Phil Petree wrote: Walter, I had the timeout problem on a script with a different purpose. What I did was hijacked the code here: http://www.mcfedries.com/JavaScript/timer.asp I created an array: var funcTimers[] and then modified the above code to insert into the array and each func started the timer on entry and ended it on exit. At the end, I dumped the funcTimers out with an alert() and I had my answer. Also, about 10 years ago (when I was younger and smarter) I wrote a table sort function that would sort a standard html table based on the column clicked. It was quite fast and would sort through 1000 columns pretty quickly. I looked on my backup drive and couldnt find it but if you want, I'll root around and post it might give you a different strategy. P~ On Thu, Jun 30, 2011 at 9:01 AM, Walter Lee Davis wa...@wdstudio.com wrote: I have been chasing my tail on a slow script error, and just now discovered that if I disable my call to make a 1,000 element list sortable the problem goes entirely away. First, is there any sort of tool I can use to determine where this function is spending all of its time? Second, is there any way to get around these slow script errors? The issue I am seeing is that once the page loads, and this function is called, the browser goes into beachball mode, eventually shows an alert about the slow script. If I okay that (keep trying, I tell it) the page loads and works perfectly. Sortable does exactly what it's supposed to do, and very snappily. Thanks in advance, Walter I use http://www.kryogenix.org/code/browser/sorttable/ -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Sortable with 1,000 elements?
Ah yes.. the stacked ajax calls... kill ya every time! Glad you got it working! On Thu, Jun 30, 2011 at 10:41 AM, Walter Lee Davis wa...@wdstudio.comwrote: Thanks very much for the offer. I seem to have fixed it here, but the problem wasn't specifically in Sortable. What I ended up doing was staggering some of the Ajax loading events that were also happening while that function fired using setTimeout and that got around the problem. Somewhere on one of my computers I have a copy of a framework called light sortable or lite sortable, which aims to ape the Scriptaculous API without being so heavy. It eschews the fancy animation effects for simple fast drag sorting. But my page (and client) are pretty wedded to that eye candy, so I guess Im stuck with that. Thanks, Walter On Jun 30, 2011, at 10:23 AM, Phil Petree wrote: Walter, I had the timeout problem on a script with a different purpose. What I did was hijacked the code here: http://www.mcfedries.com/** JavaScript/timer.asp http://www.mcfedries.com/JavaScript/timer.asp I created an array: var funcTimers[] and then modified the above code to insert into the array and each func started the timer on entry and ended it on exit. At the end, I dumped the funcTimers out with an alert() and I had my answer. Also, about 10 years ago (when I was younger and smarter) I wrote a table sort function that would sort a standard html table based on the column clicked. It was quite fast and would sort through 1000 columns pretty quickly. I looked on my backup drive and couldnt find it but if you want, I'll root around and post it might give you a different strategy. P~ On Thu, Jun 30, 2011 at 9:01 AM, Walter Lee Davis wa...@wdstudio.com wrote: I have been chasing my tail on a slow script error, and just now discovered that if I disable my call to make a 1,000 element list sortable the problem goes entirely away. First, is there any sort of tool I can use to determine where this function is spending all of its time? Second, is there any way to get around these slow script errors? The issue I am seeing is that once the page loads, and this function is called, the browser goes into beachball mode, eventually shows an alert about the slow script. If I okay that (keep trying, I tell it) the page loads and works perfectly. Sortable does exactly what it's supposed to do, and very snappily. Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@** googlegroups.com prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+** unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/prototype-scriptaculous?**hl=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@** googlegroups.com prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+** unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/prototype-scriptaculous?**hl=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@** googlegroups.com prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+** unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/prototype-scriptaculous?**hl=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Sortable with 1,000 elements?
On Jun 30, 2011, at 12:08 PM, Richard Quadling wrote: I use http://www.kryogenix.org/code/browser/sorttable/ -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea Thanks, that's completely a different thing from what I'm doing. I have a drag-to-sort widget that lets users put photos in a specific order, then saves that order in an Ajax callback. Scripty.Sortable does precisely that. Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.