X-Received: by 10.99.100.133 with SMTP id y127mr8304774pgb.144.1480598419435; Thu, 01 Dec 2016 05:20:19 -0800 (PST) X-Received: by 10.157.17.3 with SMTP id g3mr2415502ote.8.1480598419331; Thu, 01 Dec 2016 05:20:19 -0800 (PST) Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!p16no766979qta.1!news-out.google.com!j8ni2911qtc.0!nntp.google.com!n6no768224qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.lang.javascript Date: Thu, 1 Dec 2016 05:20:18 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.57.143.119; posting-account=UsbOcQoAAADpxNtYUgCAp-4IldhEgoBn NNTP-Posting-Host: 82.57.143.119 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8ee0fbb2-6875-444b-b799-82c6f4ccaa17@googlegroups.com> Subject: Re: Drag&drop From: fmigliori@gmail.com Injection-Date: Thu, 01 Dec 2016 13:20:19 +0000 Content-Type: text/plain; charset=UTF-8 Lines: 11 Xref: csiph.com it.comp.lang.javascript:8105 > $(document).ready(function(){$("#01").draggable( {containment: "#divcontainer", scroll: false});}); 1 -manca l'elemento con id divcontainer o correggi la riga precedente col tag mydiv 2 -eviterei la cosa brutta dell'innerhtml (ma magari sono il solo a pensarlo) 3 -prima crea il div poi rendilo draggabile quindi sposta la riga riportata come ultima istruzione di scrivihtml Non ho fatto prove per cui posso essere stato impreciso. Ciao