[Proto-Scripty] Sortable onUpdate firing at the wrong time

2009-08-16 Thread Mojito
Why is the onUpdate callback fired right when the Sortable is created and not when I move an li? This code also screws up my dropping - I am forced to click again to drop. Additionally, after dragging an li, it remains translucent even after dropping it. Sortable.create( 'lineup', {

[Proto-Scripty] Re: Sortable onUpdate firing at the wrong time

2009-08-16 Thread JoJo
I think I figured it out. The callback must not have parentheses. FAIL:onUpdate: someFunction(); GOOD: onUpdate: someFunction; I have no idea why. I am a beginner to JS. On Aug 15, 11:17 pm, Mojito tokyot...@gmail.com wrote: Why is the onUpdate callback fired right when the Sortable is

[Proto-Scripty] Re: Sortable onUpdate firing at the wrong time

2009-08-16 Thread Alex McAuley
If you want to do somehting like alert('blah'); you must wrap it in an anonymous function like this... onUpdate : function(event) { alert('Blah'); } Alex Mcauley http://www.thevacancymarket.com - Original Message - From: JoJo tokyot...@gmail.com To: Prototype script.aculo.us

[Proto-Scripty] empty text area in opera

2009-08-16 Thread andy
When I load the following html page in opera the text area appears empty. The script works fine in firefox. If I view the DOM in dragonfly the innerHTML of the textarea appears to be set. Does anyone know what I'm doing wrong or maybe this is a known bug in opera? Prototype Version:1.6.0.3

[Proto-Scripty] Prototype Essentials

2009-08-16 Thread jove4015
Unfortunately, I'm in the unlucky situation of having to reprogram a massive, prototype-based web application using jQuery. I've been getting very frustrated with jQuery because it's focus is much more narrow - some say this helps streamline things but I find really the parts that I needed were

[Proto-Scripty] overriding Ajax.Autocompleter onBlur

2009-08-16 Thread Piet Hadermann
Hi! I've been using Prototype for quite a while. The other day I stumbled onto something that seemed trivial at first but that I eventually had to solve another way because I couldn't get it to work. I needed to override the Autocompleter's onBlur function in order to still be able to get the

[Proto-Scripty] Re: Calling method from another method

2009-08-16 Thread T.J. Crowder
Hi, Your syntax is fine. If you're callilng explainYourself like this: this.explainYourself(); ...it should work. How are you calling it? Because context (the meaning of the this keyword) is slightly different in JavaScript than in other languages using that keyword, and it's easily lost.

[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-16 Thread Omar Adobati
Hi Andrew, I'm sorry to be so in late but I was quite busy with my job in the past days, anyway, here you ca test the same request with both prototypejs framework and the xmlhttp object: http://www.adobati.it/labs/test/ Let me to know what do you think! --- Omar Adobati On Thu, Aug 6, 2009