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', {
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
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
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
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
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
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.
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