<?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 2</title>
	<atom:link href="http://www.redips.net/javascript/drag-and-drop-example-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/javascript/drag-and-drop-example-2/</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-2/comment-page-1/#comment-4437</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Wed, 07 Sep 2011 12:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-4437</guid>
		<description>@Steve - In a moment when element is dropped to the &lt;strong&gt;Trash&lt;/strong&gt; cell, DIV element is deleted from DOM. Please find the following lines in redips-drag.js file (line 975):
&lt;pre class=&quot;brush:js&quot;&gt;
// remove child from DOM (node still exists in memory)
obj.parentNode.removeChild(obj);
&lt;/pre&gt;
Browser will delete DIV element but element will still exist in memory. It is only important to remeber reference to the delete element. If user decides to cancel element deletion, element can be appended to the previous table cell (or any other element in DOM). Here is how:
&lt;pre class=&quot;brush:js&quot;&gt;
// append removed object to the source table cell
tables[table_source].rows[row_source].cells[cell_source].appendChild(obj);
&lt;/pre&gt;
Hope this short info will be helpful to you.
Cheers!</description>
		<content:encoded><![CDATA[<p>@Steve - In a moment when element is dropped to the <strong>Trash</strong> cell, DIV element is deleted from DOM. Please find the following lines in redips-drag.js file (line 975):</p>
<pre class="brush:js">
// remove child from DOM (node still exists in memory)
obj.parentNode.removeChild(obj);
</pre>
<p>Browser will delete DIV element but element will still exist in memory. It is only important to remeber reference to the delete element. If user decides to cancel element deletion, element can be appended to the previous table cell (or any other element in DOM). Here is how:</p>
<pre class="brush:js">
// append removed object to the source table cell
tables[table_source].rows[row_source].cells[cell_source].appendChild(obj);
</pre>
<p>Hope this short info will be helpful to you.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-4434</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 06 Sep 2011 20:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-4434</guid>
		<description>First, I have to say that this is wonderful tool.  It is very robust and so far ease to work with.

However, I am just not sure how to get the delete/undelete to work.  Or more specifically the undelete.  I just am not seeing how your example code is restoring the item back to its original cell when cancel is selected on the trash_ask pop up.  Any help would be greatly appreciated.

Thanks,
Steve</description>
		<content:encoded><![CDATA[<p>First, I have to say that this is wonderful tool.  It is very robust and so far ease to work with.</p>
<p>However, I am just not sure how to get the delete/undelete to work.  Or more specifically the undelete.  I just am not seeing how your example code is restoring the item back to its original cell when cancel is selected on the trash_ask pop up.  Any help would be greatly appreciated.</p>
<p>Thanks,<br />
Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-4408</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Thu, 01 Sep 2011 15:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-4408</guid>
		<description>@bk - Yes it is possible. Table layout (I mean page layout) can be saved in database. When user selects certain type of page layout, table within drag container will be generated (I suppose) with PHP. After table and elements on the right are displayed, user can drag elements to the table cells. You can save table content on button or on element drop. Something similar to the &quot;School timetable&quot; in example03 directory. If you will need further assistance,  please feel free to contact me.</description>
		<content:encoded><![CDATA[<p>@bk - Yes it is possible. Table layout (I mean page layout) can be saved in database. When user selects certain type of page layout, table within drag container will be generated (I suppose) with PHP. After table and elements on the right are displayed, user can drag elements to the table cells. You can save table content on button or on element drop. Something similar to the "School timetable" in example03 directory. If you will need further assistance,  please feel free to contact me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bk</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-4405</link>
		<dc:creator>bk</dc:creator>
		<pubDate>Wed, 31 Aug 2011 15:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-4405</guid>
		<description>Hi!
I found these examples through Google... I am building my own CMS system and I think I could use your drag&#039;n&#039;drop scripts. I would need them for my content designer. The idea is that the user separately creates web-parts, and them combine multiple web-parts into web-page. 
I would have predefined HTML table layouts stored is MySQL database - it cells would be my target area. Somewhere on the right would be a list of possible web-parts (also stored in MySQL database). User would then drag&#039;n&#039;drop these web-parts to some cell and press save button. I could then store this page layout (with content) in the database in the following format:


  
    web-part 1
  
  
    web-part 2
    web-part 3
  
  
    web-part 4
  


Do you think this is possible with your script?
Thanks&amp;KR, bk</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I found these examples through Google... I am building my own CMS system and I think I could use your drag'n'drop scripts. I would need them for my content designer. The idea is that the user separately creates web-parts, and them combine multiple web-parts into web-page.<br />
I would have predefined HTML table layouts stored is MySQL database - it cells would be my target area. Somewhere on the right would be a list of possible web-parts (also stored in MySQL database). User would then drag'n'drop these web-parts to some cell and press save button. I could then store this page layout (with content) in the database in the following format:</p>
<p>    web-part 1</p>
<p>    web-part 2<br />
    web-part 3</p>
<p>    web-part 4</p>
<p>Do you think this is possible with your script?<br />
Thanks&amp;KR, bk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-3712</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sun, 27 Mar 2011 09:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-3712</guid>
		<description>@arzozeus - In a moment when element is dropped to the table cell, you can write a code in &lt;em&gt;myhandler_dropped()&lt;/em&gt; to change background color of target table cell. &lt;strong&gt;target_cell&lt;/strong&gt; reference is defined in onmouseup and visible in &lt;em&gt;myhandler_dropped()&lt;/em&gt; event handler.

@shashi - Can you give me a little more details about color example you need. Alpha component of DIV elements in this example is defined in CSS:

&lt;em&gt;opacity: 0.7;
filter: alpha(opacity=70);&lt;/em&gt;

If this is what you&#039;re looking for ...</description>
		<content:encoded><![CDATA[<p>@arzozeus - In a moment when element is dropped to the table cell, you can write a code in <em>myhandler_dropped()</em> to change background color of target table cell. <strong>target_cell</strong> reference is defined in onmouseup and visible in <em>myhandler_dropped()</em> event handler.</p>
<p>@shashi - Can you give me a little more details about color example you need. Alpha component of DIV elements in this example is defined in CSS:</p>
<p><em>opacity: 0.7;<br />
filter: alpha(opacity=70);</em></p>
<p>If this is what you're looking for ...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shashi</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-3699</link>
		<dc:creator>shashi</dc:creator>
		<pubDate>Wed, 23 Mar 2011 07:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-3699</guid>
		<description>hi, i need the simple example of drag and drop the colors or arranging the alpha</description>
		<content:encoded><![CDATA[<p>hi, i need the simple example of drag and drop the colors or arranging the alpha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arzozeus</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-3458</link>
		<dc:creator>arzozeus</dc:creator>
		<pubDate>Mon, 28 Feb 2011 08:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-3458</guid>
		<description>Hi, if I want to change background color to another color like red or green, when I drag to the green cell or orange cell?</description>
		<content:encoded><![CDATA[<p>Hi, if I want to change background color to another color like red or green, when I drag to the green cell or orange cell?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-2591</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sun, 07 Nov 2010 11:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-2591</guid>
		<description>If I understood your question you want to know how script finds (highlights) current table cell position. Well, position of dragged element is compared with stored informations of table cell bounds. In the initialization phase, script scans tables and creates array with row positions. It wasn&#039;t possible to attach onmouseover event handler to the table calls because events weren&#039;t never activated. Dragged element took onmouseover event for himself. Anyway, after applying &quot;array&quot; logic, REDIPS.drag library works pretty good.
;)</description>
		<content:encoded><![CDATA[<p>If I understood your question you want to know how script finds (highlights) current table cell position. Well, position of dragged element is compared with stored informations of table cell bounds. In the initialization phase, script scans tables and creates array with row positions. It wasn't possible to attach onmouseover event handler to the table calls because events weren't never activated. Dragged element took onmouseover event for himself. Anyway, after applying "array" logic, REDIPS.drag library works pretty good.<br />
 <img src='http://www.redips.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: douliu</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-2588</link>
		<dc:creator>douliu</dc:creator>
		<pubDate>Sun, 07 Nov 2010 08:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-2588</guid>
		<description>How data is automatically down to the right grid</description>
		<content:encoded><![CDATA[<p>How data is automatically down to the right grid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sagar varule</title>
		<link>http://www.redips.net/javascript/drag-and-drop-example-2/comment-page-1/#comment-1896</link>
		<dc:creator>sagar varule</dc:creator>
		<pubDate>Fri, 09 Apr 2010 07:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=229#comment-1896</guid>
		<description>Hi...I have use your Example work very Well....But only one feature reuired is tht the controls of the two adjacent should be swapped ...

Suppose i have table with column 2 and i drag coloumn2 element to column1 thn both should swapp there position..

Plzzz Help me out with this .....</description>
		<content:encoded><![CDATA[<p>Hi...I have use your Example work very Well....But only one feature reuired is tht the controls of the two adjacent should be swapped ...</p>
<p>Suppose i have table with column 2 and i drag coloumn2 element to column1 thn both should swapp there position..</p>
<p>Plzzz Help me out with this .....</p>
]]></content:encoded>
	</item>
</channel>
</rss>

