[Rails-spinoffs] Re: IE/CSS issue using Sortables....but only on the first drag

2005-12-20 Thread Jerod Venema
And naturally...now I figure it out. Apparently I have to define an inline "height" element for IE. I had tried it with an external CSS file...didn't work. As soon as I put the inline style in place, I was good to go. Is this documented somehwere, or should this be considered a bug? I'm not

[Rails-spinoffs] IE/CSS issue using Sortables....but only on the first drag

2005-12-20 Thread Jerod Venema
OK, I'm in need of help :) I've got a bug in IE (whoa!) that I can't figure out. I think its CSS-related, but I sure can't figure out what the problem is. Go here: http://jerod.ontasksoftware.com/demo/index.php and drag one of the items in the center listbox. In FF, it works beautifully. In

Re: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread danilocelic
Gregory Hill wrote: Imagine the situation, when loop body removes one element from the array. It's quite common situation, for example when you operate on select tag and remove options dynamically in loop body, in each loop pass. Thus the length of option collection has changed, and the length mu

RE: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Gregory Hill
> Imagine the situation, when loop body removes one element from the > array. It's quite common situation, for example when you operate on > select tag and remove options dynamically in loop body, in each loop > pass. Thus the length of option collection has changed, and the > length must be recalc

[Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Krzysztof Szafranek
Although IE performace is really BAD, computing length each time isn't a bug. This property behaves exactly as a method, it's computed each time the loop is executed. Most of the performance gain is from it, not from RegExp handling. Imagine the situation, when loop body removes one element from t

Re: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Jay Miller
It just looks like an attribute to the programmer, but the implementation underneath could very well be iterating the whole array each time.  There's no way to know.On 12/20/05, Gregory Hill <[EMAIL PROTECTED]> wrote: Ok, how do those optimize anything?  Is it some bug in IE?  He's justcopying a v

RE: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Gregory Hill
Ok, how do those optimize anything? Is it some bug in IE? He's just copying a value to a local variable and using that instead and there's a big speed difference? What the heck? I could understand if .length were a function, and had to recalculate the value each time, but it's just an attribute

Re: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Nicolas Terray
On 12/20/05, Ryan Gahl <[EMAIL PROTECTED]> wrote: > Wow, that is some major difference! I know nothing about Sam's plans or > how to get any of this into the official branch, but before I copy your > version into my project, would you mind explaining briefly the things > you changed? > Thank you. >

RE: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Ryan Gahl
Wow, that is some major difference! I know nothing about Sam's plans or how to get any of this into the official branch, but before I copy your version into my project, would you mind explaining briefly the things you changed? Thank you. -Ryan Gahl -Original Message- From: [EMAIL PROTECTE

[Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Krzysztof Szafranek
Hi I've tried to use Prototype as a base for few large intranet applications I'm working on. Unfortunately I encountered some serious performance problems when working with Internet Explorer. It's really sluggish when it comes to DOM operations and Prototype could really benefit from some small op

[Rails-spinoffs] swap css class

2005-12-20 Thread Marco M. Jaeger
I was in need of a function to change (swap) css classes - this is what I came up with - maybe some of the prototype gurus could have a look at the function - I'm sure it needs some improvements, but basically it is working: // usage: toggle (boolean), elementId, old class, new class, tag