(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
04. 07. 2013. | #1 |
profesionalac
Professional
Datum učlanjenja: 25.10.2012
Poruke: 278
Hvala: 16
32 "Hvala" u 9 poruka
|
Jquery UI helper: clone ne radi
Imam sledeci kod:
Kôd:
<script> $(function() { $( ".draggable" ).resizable(); $( ".draggable" ).draggable({revert: 'invalid', helper: 'clone',snap: "#drop_here td", opacity: 0.7}); $( "#drop_here td" ).droppable({ accept: '.draggable', drop: function( event, ui ) { $( this ) .find( "p" ) .html( "Dropped!" ); } }); }); </script> Ovde je kod i demo, cisto da vidite vizuelno sta ustvari zelim da uradim: http://jsbin.com/erofot/17/edit Znaci samo zelim da prevucem npr. elemenat "hotel activity" u tabelu s tim da elementa ostane na istom mestu a drugi se kopira u tabeli gde takodje ima osobine draggable i resizable... Molim za pomoc, ubi me ovo! |
04. 07. 2013. | #2 |
banned
Professional
Datum učlanjenja: 04.06.2005
Poruke: 371
Hvala: 0
738 "Hvala" u 83 poruka
|
Nešto kao:
http://jqueryui.com/droppable/#shopping-cart
__________________
Don't look at me; I'm lost too. “If you can't dazzle them with brilliance, baffle them with bul*s**t.” |
04. 07. 2013. | #3 |
profesionalac
Professional
Datum učlanjenja: 25.10.2012
Poruke: 278
Hvala: 16
32 "Hvala" u 9 poruka
|
ma to mogu da odradim da kopiram div u tabelu ali tamo u tabeli ponovo mora da dobije draggable i resizable atribute kao i da kopiram u tabeli na tamo gde zelim, gde ga pomerim a ne na pocetak... znaci left i top da budu tamo gde postavim div
|
|
|