Draggable has an option called 'handle' with which you can specify the
element that use used as the drag handle for the draggable.
So, something like this...
$(#wdw).draggable({handle:$(.title, this)})
...would make the element w/id wdw draggable, but only by the sub-
element w/a classname
On Sat, Aug 22, 2009 at 12:12 PM, ak732 ask...@gmail.com wrote:
Draggable has an option called 'handle' with which you can specify the
element that use used as the drag handle for the draggable.
So, something like this...
$(#wdw).draggable({handle:$(.title, this)})
That's right. But a
Hi , replace the javascript cod and add dragafter class in css
//javascript
$(document).ready(function(){
//Counter
counter = 1
//Make element draggable
$(#drag).draggable({
helper:'clone',
start: function(e, ui){
Hi Rupak, thank you very much for that,Although I did exactly what you
said, it still doesn't work very well.
It does create new items and gives them ids and everything, but the
items simply don't stick to the location, and simply disappear.
Here's how it is now:
OK, so I've made a few changes to it, and now it moves and stays on
the right place, but when i try to move it again, it moves only once
more, and messes up with the ID's, i think it's because the counter is
still incrementing.
Could you please give me some light here?
Hi markos, i think that the style of the div is attached to its id (#drag)
that's why it will disappear after dragging. Just attach the style by class
name. or replace the html file.
On Wed, Jul 29, 2009 at 2:49 PM, Marcos Placona marcos.plac...@gmail.comwrote:
Hi Rupak, thank you very much
Hi Rupak, I've done what you said, and although it now works better,
it still falls into being only able to drag the already dropped object
once. So if you drag it first time, and try to drag it again, it will
only happen once, and if you add more objects it messes up, as you can
see here:
Almost works now, except that when you add a new item, all the
existing objects have their ids changed to the newly added item's
name.
Can you spot anything weird on it?
Cheers
On Jul 29, 12:10 pm, Marcos Placona marcos.plac...@gmail.com wrote:
Hi Rupak, I've done what you said, and although
bump
On Jul 29, 12:56 pm, Marcos Placona marcos.plac...@gmail.com wrote:
Almost works now, except that when you add a new item, all the
existing objects have their ids changed to the newly added item's
name.
Can you spot anything weird on it?
Cheers
On Jul 29, 12:10 pm, Marcos Placona
9 matches
Mail list logo