<?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: Evening Tip: Create A &#8220;Click And Drag&#8221; Function With Javascript</title>
	<atom:link href="http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/</link>
	<description>Web Development &#38; Design Tutorials</description>
	<lastBuildDate>Sat, 21 Nov 2009 18:53:09 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mahesh Kumar Chintawar</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-92772</link>
		<dc:creator>Mahesh Kumar Chintawar</dc:creator>
		<pubDate>Mon, 17 Aug 2009 14:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-92772</guid>
		<description>wow..... it&#039;s a gr8 source code.... I really need this for my project.
Thank you very much..  it&#039;s worth 1200$..</description>
		<content:encoded><![CDATA[<p>wow&#8230;.. it&#8217;s a gr8 source code&#8230;. I really need this for my project.<br />
Thank you very much..  it&#8217;s worth 1200$..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-72723</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 18 Jun 2009 21:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-72723</guid>
		<description>Anyway of taking the selected areas and say upon clicking submit it sends an email with the data?</description>
		<content:encoded><![CDATA[<p>Anyway of taking the selected areas and say upon clicking submit it sends an email with the data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bj</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-44114</link>
		<dc:creator>bj</dc:creator>
		<pubDate>Thu, 12 Mar 2009 01:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-44114</guid>
		<description>this doesn&#039;t work with a table of text... since clicking and dragging will actually select the text... nasty.</description>
		<content:encoded><![CDATA[<p>this doesn&#8217;t work with a table of text&#8230; since clicking and dragging will actually select the text&#8230; nasty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marti</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-35736</link>
		<dc:creator>Marti</dc:creator>
		<pubDate>Fri, 13 Feb 2009 21:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-35736</guid>
		<description>Double-clicking on a cell seems to break the functionality. :/</description>
		<content:encoded><![CDATA[<p>Double-clicking on a cell seems to break the functionality. :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kareem</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-20186</link>
		<dc:creator>kareem</dc:creator>
		<pubDate>Mon, 24 Nov 2008 12:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-20186</guid>
		<description>this is wonderful tutorial  i will put acopy of this lesson on
my site here
http://www.as7ap4you.com</description>
		<content:encoded><![CDATA[<p>this is wonderful tutorial  i will put acopy of this lesson on<br />
my site here<br />
<a href="http://www.as7ap4you.com" rel="nofollow">http://www.as7ap4you.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thejart</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-16495</link>
		<dc:creator>thejart</dc:creator>
		<pubDate>Fri, 31 Oct 2008 14:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-16495</guid>
		<description>wow, tables and inline js sure got a beating.  here&#039;s something a little more constructive...

to keep the selected divs from toggling while dragging change the js like so:


selectNum = 0;
var originalbutton = true;
var orignalstate = &quot;&quot;;

function StartDragSelect(obj) {
  if (originalbutton) {
  originalstate = obj.className;
  originalbutton = false;
  }

  if (obj.className == &quot;selected&quot; &amp;&amp; originalstate == &quot;selected&quot;) {
    obj.className = &quot;&quot;;
    selectNum--;
  }
  else if (obj.className == &quot;&quot; &amp;&amp; originalstate == &quot;&quot;) {
    obj.className = &quot;selected&quot;;
    selectNum++;
  }
  document.getElementById(&quot;selectCount&quot;).innerHTML = selectNum;
  
  for(i=1;i&lt;11;i++) {
  document.getElementById(i+&#039;d&#039;).onmouseover = document.getElementById(i+&#039;d&#039;).onmousedown
  }
  
  obj.onmouseup = function() {
    for(i=1;i&lt;11;i++)
    {
      document.getElementById(i+&#039;d&#039;).onmousedown = document.getElementById(i+&#039;d&#039;).onmouseover;
      document.getElementById(i+&#039;d&#039;).onmouseover = null;
    }
    originalbutton = true;
  }
}
</description>
		<content:encoded><![CDATA[<p>wow, tables and inline js sure got a beating.  here&#8217;s something a little more constructive&#8230;</p>
<p>to keep the selected divs from toggling while dragging change the js like so:</p>
<p>selectNum = 0;<br />
var originalbutton = true;<br />
var orignalstate = &#8220;&#8221;;</p>
<p>function StartDragSelect(obj) {<br />
  if (originalbutton) {<br />
  originalstate = obj.className;<br />
  originalbutton = false;<br />
  }</p>
<p>  if (obj.className == &#8220;selected&#8221; &amp;&amp; originalstate == &#8220;selected&#8221;) {<br />
    obj.className = &#8220;&#8221;;<br />
    selectNum&#8211;;<br />
  }<br />
  else if (obj.className == &#8220;&#8221; &amp;&amp; originalstate == &#8220;&#8221;) {<br />
    obj.className = &#8220;selected&#8221;;<br />
    selectNum++;<br />
  }<br />
  document.getElementById(&#8221;selectCount&#8221;).innerHTML = selectNum;</p>
<p>  for(i=1;i&lt;11;i++) {<br />
  document.getElementById(i+&#8217;d').onmouseover = document.getElementById(i+&#8217;d').onmousedown<br />
  }</p>
<p>  obj.onmouseup = function() {<br />
    for(i=1;i&lt;11;i++)<br />
    {<br />
      document.getElementById(i+&#8217;d').onmousedown = document.getElementById(i+&#8217;d').onmouseover;<br />
      document.getElementById(i+&#8217;d').onmouseover = null;<br />
    }<br />
    originalbutton = true;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stevo</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-15507</link>
		<dc:creator>Stevo</dc:creator>
		<pubDate>Thu, 23 Oct 2008 22:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-15507</guid>
		<description>Great facility.  How do I send the results of the div cells back via a form?</description>
		<content:encoded><![CDATA[<p>Great facility.  How do I send the results of the div cells back via a form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranganathan</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-14873</link>
		<dc:creator>Ranganathan</dc:creator>
		<pubDate>Mon, 20 Oct 2008 07:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-14873</guid>
		<description>This is really nice example for Drag selection. And explanation is very useful and simple.
Nice!!</description>
		<content:encoded><![CDATA[<p>This is really nice example for Drag selection. And explanation is very useful and simple.<br />
Nice!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waqaszahoor</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-11287</link>
		<dc:creator>waqaszahoor</dc:creator>
		<pubDate>Tue, 16 Sep 2008 20:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-11287</guid>
		<description>Awesome Demo</description>
		<content:encoded><![CDATA[<p>Awesome Demo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonaut.com</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/evening-tip-create-a-click-and-drag-function-with-javascript/#comment-9447</link>
		<dc:creator>Leonaut.com</dc:creator>
		<pubDate>Tue, 02 Sep 2008 00:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=493#comment-9447</guid>
		<description>&lt;strong&gt;Create A “Click And Drag” Function With Javascript...&lt;/strong&gt;

This will teach you how, by using Javascript, you can create a &quot;click and drag&quot; effect for your objects....</description>
		<content:encoded><![CDATA[<p><strong>Create A “Click And Drag” Function With Javascript&#8230;</strong></p>
<p>This will teach you how, by using Javascript, you can create a &#8220;click and drag&#8221; effect for your objects&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/7 queries in 0.007 seconds using memcached
Content Delivery Network via 

Served from: psdtutsplus.com @ 2009-11-21 11:22:34 -->