On Jul 11, 9:03 pm, traunic <[EMAIL PROTECTED]> wrote:
> var x =
> a.childNodes[2].firstChild.innerHTML;
> var y =
> b.childNodes[2].firstChild.innerHTML;
> return ((x < y) ? -1 : ((x > y) ? 1 :
...
>
Thank you so much, changed the function to your suggestion and now the
sort is almost instant:
$("#entries").each(function(prntI,prnt){
switch($("#myform div.displayOrderDIV input:checked").val()){
case "createDate":
$("div.entry",prnt).sort(functio
As you may have suspected this example is greatly simplified from what
I am working with. My real "div.entry"s look more like:
create date:
11-29-2007
1196312400813
The browser doesn't render anything while you are running a script, only
when the script stops. That's way alert() makes it work - it stops your
script and gives the browser a chance to render. You could follow the
blockUI() call with a 1 millisecond setTimeout call with the rest of your
code insi
traunic,
You'll need to put your sorting code in a setTimeout fn so that the
browser has time to render the block before you pin the cpu. Try
something like this:
$("#entries").each(function(prntI,prnt){
$.blockUI();
setTimeout(function() {
$("div.entry",prnt).sort(function(a,b){
5 matches
Mail list logo