<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Working with the Cursor Position</title>
	<link>http://parentnode.org/javascript/working-with-the-cursor-position/</link>
	<description>The building blocks of a solid frontend.</description>
	<pubDate>Thu, 11 Mar 2010 06:07:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: BA</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-23281</link>
		<author>BA</author>
		<pubDate>Wed, 07 Oct 2009 17:23:11 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-23281</guid>
		<description>An easy way to get the row count is to count the number of newline characters (assuming wordwrap is off - ).</description>
		<content:encoded><![CDATA[<p>An easy way to get the row count is to count the number of newline characters (assuming wordwrap is off - ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Rehman</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-22409</link>
		<author>Abdul Rehman</author>
		<pubDate>Sat, 05 Sep 2009 04:49:24 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-22409</guid>
		<description>SIMPLY GREAT JOB</description>
		<content:encoded><![CDATA[<p>SIMPLY GREAT JOB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abraham</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16989</link>
		<author>Abraham</author>
		<pubDate>Wed, 01 Apr 2009 20:58:19 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16989</guid>
		<description>obj.fucus() is out of place. should be the first statement of the function</description>
		<content:encoded><![CDATA[<p>obj.fucus() is out of place. should be the first statement of the function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abraham</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16987</link>
		<author>Abraham</author>
		<pubDate>Wed, 01 Apr 2009 19:05:17 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16987</guid>
		<description>a greate start for the solution a was looking for. thank  you white. i spend a day and figured how selection works in IE. Here is one elegant solution for IE.

function insertAtCaret(obj, text) {

if (document.selection.createRange) {	// Go the IE way
			
var range = document.selection.createRange();

if (range.parentElement() != obj) {
				
obj.value += text;
obj.focus();
return;
}

range.setEndPoint('StartToEnd', range);
range.text = text;
range.scrollIntoView();
}
}</description>
		<content:encoded><![CDATA[<p>a greate start for the solution a was looking for. thank  you white. i spend a day and figured how selection works in IE. Here is one elegant solution for IE.</p>
<p>function insertAtCaret(obj, text) {</p>
<p>if (document.selection.createRange) {	// Go the IE way</p>
<p>var range = document.selection.createRange();</p>
<p>if (range.parentElement() != obj) {</p>
<p>obj.value += text;<br />
obj.focus();<br />
return;<br />
}</p>
<p>range.setEndPoint(&#8217;StartToEnd&#8217;, range);<br />
range.text = text;<br />
range.scrollIntoView();<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JDub</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16733</link>
		<author>JDub</author>
		<pubDate>Sun, 22 Mar 2009 01:39:35 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-16733</guid>
		<description>Thanks man! This works perfect, and saved mo so much time!</description>
		<content:encoded><![CDATA[<p>Thanks man! This works perfect, and saved mo so much time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ted devito</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-15439</link>
		<author>ted devito</author>
		<pubDate>Sun, 11 Jan 2009 06:59:13 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-15439</guid>
		<description>hey there, 

thanks for all the code, and especially all the discussion around it. it has been enlightening and helpful. 

here's what i've come up with for handling tabs and cursor movement in a reasonably cross-browser solution (no Opera just yet. IE7 works).

the specific purpose is doing tabs in textareas, but it uses all the same principles and i have some more links to background info.

http://teddevito.com/demos/textarea.html</description>
		<content:encoded><![CDATA[<p>hey there, </p>
<p>thanks for all the code, and especially all the discussion around it. it has been enlightening and helpful. </p>
<p>here&#8217;s what i&#8217;ve come up with for handling tabs and cursor movement in a reasonably cross-browser solution (no Opera just yet. IE7 works).</p>
<p>the specific purpose is doing tabs in textareas, but it uses all the same principles and i have some more links to background info.</p>
<p><a href="http://teddevito.com/demos/textarea.html" rel="nofollow">http://teddevito.com/demos/textarea.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14947</link>
		<author>Sumit</author>
		<pubDate>Wed, 03 Dec 2008 10:33:52 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14947</guid>
		<description>Thaks due!nice Share</description>
		<content:encoded><![CDATA[<p>Thaks due!nice Share</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gloridea</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14585</link>
		<author>Gloridea</author>
		<pubDate>Mon, 20 Oct 2008 03:21:26 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14585</guid>
		<description>Dear white.
I want to use this source code for my work. Is it possible?
I want to know the license policy of this source code. Answer me please.</description>
		<content:encoded><![CDATA[<p>Dear white.<br />
I want to use this source code for my work. Is it possible?<br />
I want to know the license policy of this source code. Answer me please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JV</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14464</link>
		<author>JV</author>
		<pubDate>Sat, 11 Oct 2008 14:25:57 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-14464</guid>
		<description>Thanks for this dude, using it on yapp.me :)</description>
		<content:encoded><![CDATA[<p>Thanks for this dude, using it on yapp.me :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manoj gupta</title>
		<link>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-13669</link>
		<author>manoj gupta</author>
		<pubDate>Tue, 26 Aug 2008 08:26:47 +0000</pubDate>
		<guid>http://parentnode.org/javascript/working-with-the-cursor-position/#comment-13669</guid>
		<description>i need code in java script that select text from dropdown and click the button then this text copy in next text area of current cursor position,please give me java script code</description>
		<content:encoded><![CDATA[<p>i need code in java script that select text from dropdown and click the button then this text copy in next text area of current cursor position,please give me java script code</p>
]]></content:encoded>
	</item>
</channel>
</rss>
