Hi every body,
I want to freeze the drag from the dragzone when the dropzone's
elements'length reach, for example, 3 elements and i wih to trigger an
alert message, advising the visitor that the dropzone can't exceed 3
elements.
I can't figure out how?
my code
Sortable.create(
"liste_1",
{
tag:"div",
dropOnEmpty: true,
containment:["liste_1","liste_2"],
only:"lineitem"
}
);
Sortable.create(
"liste_2",{tag:"div",dropOnEmpty: true,
containment: ["liste_1","liste_2"],
only:"lineitem",
});
Many thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---