<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript Drag and Drop example 3</title>
	<atom:link href="http://www.redips.net/javascript/drag-and-drop-example-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/javascript/drag-and-drop-example-3/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:29:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/</generator>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-4/#comment-4959</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Mon, 23 Jan 2012 07:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4959</guid>
		<description>@Rub3s - I&#039;m glad your problem is solved!

@Cristian Juvé - If you have separated drag containers then you will be unable to drop DIV element to other container. Please see &lt;a href=&quot;/my/preview/REDIPS_drag/example08/&quot; title=&quot;REDIPS: Tables in separated containers&quot; rel=&quot;nofollow&quot;&gt;Example 8: Tables in separated containers&lt;/a&gt;. Anyway, several tables can belong to the same drag container (like in &quot;School timetable&quot; example) and elements can be exchanged among them.</description>
		<content:encoded><![CDATA[<p>@Rub3s - I'm glad your problem is solved!</p>
<p>@Cristian Juvé - If you have separated drag containers then you will be unable to drop DIV element to other container. Please see <a href="/my/preview/REDIPS_drag/example08/" title="REDIPS: Tables in separated containers" rel="nofollow">Example 8: Tables in separated containers</a>. Anyway, several tables can belong to the same drag container (like in "School timetable" example) and elements can be exchanged among them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian Juvé</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-4/#comment-4940</link>
		<dc:creator>Cristian Juvé</dc:creator>
		<pubDate>Tue, 17 Jan 2012 16:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4940</guid>
		<description>It&#039;s possible to do switch between two div in two tables separate by containers?</description>
		<content:encoded><![CDATA[<p>It's possible to do switch between two div in two tables separate by containers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rub3s</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-4/#comment-4854</link>
		<dc:creator>Rub3s</dc:creator>
		<pubDate>Wed, 28 Dec 2011 11:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4854</guid>
		<description>Never mind! :)

Adding the class &quot;mark&quot; did it for the left subjects bar!</description>
		<content:encoded><![CDATA[<p>Never mind! <img src='http://www.redips.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Adding the class "mark" did it for the left subjects bar!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rub3s</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-4/#comment-4853</link>
		<dc:creator>Rub3s</dc:creator>
		<pubDate>Wed, 28 Dec 2011 11:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4853</guid>
		<description>Great work!

I&#039;m trying to use this example for a prototype scheduler (internship assignment), however i have a little problem (i think). I disabled the rule that a cell may only contain 1 item (so now it can contain more), but now the left bar with subjects can also contain more than one, what not really usable is. Is it possible so that 1 table can have more items in a cell, and that another table is unable to do that? 

&gt;is it also possible to add a class to cells, so that those cells cannot contain more than 1 item? Or should i just change script.js so that it behaves that way?

Offcourse thanks again for this great javascript library! Great that it works for most/all browsers!</description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>I'm trying to use this example for a prototype scheduler (internship assignment), however i have a little problem (i think). I disabled the rule that a cell may only contain 1 item (so now it can contain more), but now the left bar with subjects can also contain more than one, what not really usable is. Is it possible so that 1 table can have more items in a cell, and that another table is unable to do that? </p>
<p>&gt;is it also possible to add a class to cells, so that those cells cannot contain more than 1 item? Or should i just change script.js so that it behaves that way?</p>
<p>Offcourse thanks again for this great javascript library! Great that it works for most/all browsers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-4/#comment-4505</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sat, 01 Oct 2011 09:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4505</guid>
		<description>@Razmataz - Cloning from cloned elements is possible. Please try example11 - actually copy HTML of circle clone DIV element to the mini table above and reload page. You will see that cloned mini table will contain circle element with remain clone option. So technically it&#039;s possible, but the lib will not take care about unique ID set of DIV elements. There still needs some work to do.

In a new version, &quot;overwrite&quot; code around line 1037 will be replaced  with a function and exposed as a &lt;strong&gt;empty_cell()&lt;/strong&gt; public method. Here is JavaScript code:
&lt;pre class=&quot;brush:js&quot;&gt;
/**
 * Method removes elements from table cell.
 * @param {HTMLElement} td Table cell from which all elements will be deleted.
 * @example
 * // set REDIPS.drag reference
 * var rd = REDIPS.drag;
 * // search for TABLE element (from cell reference)
 * tbl = rd.empty_cell(td);
 * @return {Boolean} Returns false if input element is not table cell.
 * @public
 * @function
 * @name REDIPS.drag#empty_cell
 */
empty_cell = function (td) {
    var i,  // local variable
        cn; // number of child nodes 
    // if td is not table cell element then return false
    if (td.nodeName !== &#039;TD&#039;) {
        return false;
    } 
    // define childnodes length before loop
    // (not in loop because NodeList objects in the DOM are live)
    cn = td.childNodes.length;
    // delete all child nodes from td
    for (i = 0; i &lt; cn; i++) {
        td.removeChild(td.childNodes[0]);
    }
};
&lt;/pre&gt;
Please be free to add a comment to improve this method. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>@Razmataz - Cloning from cloned elements is possible. Please try example11 - actually copy HTML of circle clone DIV element to the mini table above and reload page. You will see that cloned mini table will contain circle element with remain clone option. So technically it's possible, but the lib will not take care about unique ID set of DIV elements. There still needs some work to do.</p>
<p>In a new version, "overwrite" code around line 1037 will be replaced  with a function and exposed as a <strong>empty_cell()</strong> public method. Here is JavaScript code:</p>
<pre class="brush:js">
/**
 * Method removes elements from table cell.
 * @param {HTMLElement} td Table cell from which all elements will be deleted.
 * @example
 * // set REDIPS.drag reference
 * var rd = REDIPS.drag;
 * // search for TABLE element (from cell reference)
 * tbl = rd.empty_cell(td);
 * @return {Boolean} Returns false if input element is not table cell.
 * @public
 * @function
 * @name REDIPS.drag#empty_cell
 */
empty_cell = function (td) {
    var i,  // local variable
        cn; // number of child nodes
    // if td is not table cell element then return false
    if (td.nodeName !== 'TD') {
        return false;
    }
    // define childnodes length before loop
    // (not in loop because NodeList objects in the DOM are live)
    cn = td.childNodes.length;
    // delete all child nodes from td
    for (i = 0; i &lt; cn; i++) {
        td.removeChild(td.childNodes[0]);
    }
};
</pre>
<p>Please be free to add a comment to improve this method. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razmataz</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-3/#comment-4497</link>
		<dc:creator>Razmataz</dc:creator>
		<pubDate>Wed, 28 Sep 2011 18:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4497</guid>
		<description>Congratulations, great piece of work!

I ran into a bug because I wanted to clone/move contents that had
nested DIVs while using the &#039;overwrite&#039; option. There is a loop around 
line 1037 that doesn&#039;t work correctly in handling content with nested DIVs.
Easy enough to fix one way or another.

Also, for my purposes I wanted cloned cells that themselves could be recloned.
Your code allows only for &quot;sterile&quot; offspring so-to-speak, but it would be easy 
enough to allow users to choose whether they want the offspring to be sterile or fertile.</description>
		<content:encoded><![CDATA[<p>Congratulations, great piece of work!</p>
<p>I ran into a bug because I wanted to clone/move contents that had<br />
nested DIVs while using the 'overwrite' option. There is a loop around<br />
line 1037 that doesn't work correctly in handling content with nested DIVs.<br />
Easy enough to fix one way or another.</p>
<p>Also, for my purposes I wanted cloned cells that themselves could be recloned.<br />
Your code allows only for "sterile" offspring so-to-speak, but it would be easy<br />
enough to allow users to choose whether they want the offspring to be sterile or fertile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beta</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-3/#comment-4491</link>
		<dc:creator>beta</dc:creator>
		<pubDate>Tue, 27 Sep 2011 01:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4491</guid>
		<description>thanks a million</description>
		<content:encoded><![CDATA[<p>thanks a million</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-3/#comment-4485</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Mon, 26 Sep 2011 07:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4485</guid>
		<description>@beta - Here is example of how to display a message on DIV element dblclick:
&lt;pre class=&quot;brush:js&quot;&gt;
// dblclick event handler
rd.myhandler_dblclicked = function () {
    // define text of clicked element
    // (rd.obj is reference of clicked DIV element)
    var text = rd.obj.innerText;
    // display a message
    alert(&#039;You click the &#039; + text + &#039; clone object&#039;);
};
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@beta - Here is example of how to display a message on DIV element dblclick:</p>
<pre class="brush:js">
// dblclick event handler
rd.myhandler_dblclicked = function () {
    // define text of clicked element
    // (rd.obj is reference of clicked DIV element)
    var text = rd.obj.innerText;
    // display a message
    alert('You click the ' + text + ' clone object');
};
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: beta</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-3/#comment-4482</link>
		<dc:creator>beta</dc:creator>
		<pubDate>Mon, 26 Sep 2011 03:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4482</guid>
		<description>Hello,  How can I realize such an effect:
After I put the clone object to the right-hand-side table, I want to double click one of them  and perform some actions. So how can I perform the double click action, learn which object are clicked and do other action( such as alert(&quot;you click the IT clone object&quot;);) 

Thanks

beta (a newer in JS)</description>
		<content:encoded><![CDATA[<p>Hello,  How can I realize such an effect:<br />
After I put the clone object to the right-hand-side table, I want to double click one of them  and perform some actions. So how can I perform the double click action, learn which object are clicked and do other action( such as alert("you click the IT clone object");) </p>
<p>Thanks</p>
<p>beta (a newer in JS)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-3/comment-page-3/#comment-4375</link>
		<dc:creator>Saurabh</dc:creator>
		<pubDate>Mon, 22 Aug 2011 18:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=279#comment-4375</guid>
		<description>Hi Darko,

Thanks for this information, I&#039;ll give it a try.....

Regards,
Saurabh</description>
		<content:encoded><![CDATA[<p>Hi Darko,</p>
<p>Thanks for this information, I'll give it a try.....</p>
<p>Regards,<br />
Saurabh</p>
]]></content:encoded>
	</item>
</channel>
</rss>

