<?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: Inserting at the cursor using JavaScript</title>
	<atom:link href="http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript</link>
	<description>Alex King, Denver Web Developer</description>
	<lastBuildDate>Tue, 22 May 2012 21:22:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Viorel</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-173256</link>
		<dc:creator>Viorel</dc:creator>
		<pubDate>Sun, 11 Dec 2011 13:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-173256</guid>
		<description>Thanks man! A thousand times thanks! Simple and efficient.</description>
		<content:encoded><![CDATA[<p>Thanks man! A thousand times thanks! Simple and efficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: parviz</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-163807</link>
		<dc:creator>parviz</dc:creator>
		<pubDate>Wed, 05 Oct 2011 15:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-163807</guid>
		<description>thanks man.</description>
		<content:encoded><![CDATA[<p>thanks man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fresh//comments &#124; //beconfused</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-156906</link>
		<dc:creator>fresh//comments &#124; //beconfused</dc:creator>
		<pubDate>Thu, 07 Jul 2011 07:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-156906</guid>
		<description>[...] Fresh Comment widget in your sidebar.)Final wordsI used what Alex King has found in phpMyAdmin&#8216;s source codes to insert the tags to the textarea via JavaScript.I [...]</description>
		<content:encoded><![CDATA[<p>[...] Fresh Comment widget in your sidebar.)Final wordsI used what Alex King has found in phpMyAdmin&#8216;s source codes to insert the tags to the textarea via JavaScript.I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohan Seripalli</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-142338</link>
		<dc:creator>Mohan Seripalli</dc:creator>
		<pubDate>Wed, 29 Sep 2010 15:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-142338</guid>
		<description>Thank you very much for this code. It works great.</description>
		<content:encoded><![CDATA[<p>Thank you very much for this code. It works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-134057</link>
		<dc:creator>Gabe</dc:creator>
		<pubDate>Fri, 16 Apr 2010 17:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-134057</guid>
		<description>Great snippet :D!
It works beautifully :D!
Thank you very much for sharing this here.

Another handy method for Mozilla/Netscape browsers is element.setSelectionRange(pos, pos) , which sets the position of the cursor :D!</description>
		<content:encoded><![CDATA[<p>Great snippet <img src='http://alexking.org/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> !<br />
It works beautifully <img src='http://alexking.org/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> !<br />
Thank you very much for sharing this here.</p>
<p>Another handy method for Mozilla/Netscape browsers is element.setSelectionRange(pos, pos) , which sets the position of the cursor <img src='http://alexking.org/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tdawg</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-132949</link>
		<dc:creator>tdawg</dc:creator>
		<pubDate>Tue, 30 Mar 2010 18:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-132949</guid>
		<description>It works great in safari, firefox,  and chrome!!
Thanks I looked forever for this code... so many versions out there that are so complicated... good job on simplicity!</description>
		<content:encoded><![CDATA[<p>It works great in safari, firefox,  and chrome!!<br />
Thanks I looked forever for this code&#8230; so many versions out there that are so complicated&#8230; good job on simplicity!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dermot</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-117864</link>
		<dc:creator>Dermot</dc:creator>
		<pubDate>Fri, 18 Dec 2009 09:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-117864</guid>
		<description>Thank you - am using this code snippet</description>
		<content:encoded><![CDATA[<p>Thank you &#8211; am using this code snippet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: user</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-115307</link>
		<dc:creator>user</dc:creator>
		<pubDate>Sun, 15 Nov 2009 21:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-115307</guid>
		<description>thank you guys all participated in the discussion</description>
		<content:encoded><![CDATA[<p>thank you guys all participated in the discussion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chako</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-103448</link>
		<dc:creator>chako</dc:creator>
		<pubDate>Mon, 21 Sep 2009 13:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-103448</guid>
		<description>Works like a charm, I was looking for a small text editor, with your code I am writing my own ... thanks alot</description>
		<content:encoded><![CDATA[<p>Works like a charm, I was looking for a small text editor, with your code I am writing my own &#8230; thanks alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saÄŸlÄ±k</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-68703</link>
		<dc:creator>saÄŸlÄ±k</dc:creator>
		<pubDate>Sun, 14 Jun 2009 20:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-68703</guid>
		<description>thanks.Ä± use this function.</description>
		<content:encoded><![CDATA[<p>thanks.Ä± use this function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dilip</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-66867</link>
		<dc:creator>dilip</dc:creator>
		<pubDate>Tue, 24 Mar 2009 12:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-66867</guid>
		<description>thanks a lot for that. its working fine.

it worked for me with a little changes:

function doPaste(myField)
{
    
    if (document.selection)
      {
      myField.focus();
      sel = document.selection.createRange();
      sel.execCommand(&quot;Paste&quot;);
     }
}

Html link: doPaste(document.b3.txt1);</description>
		<content:encoded><![CDATA[<p>thanks a lot for that. its working fine.</p>
<p>it worked for me with a little changes:</p>
<p>function doPaste(myField)<br />
{</p>
<p>    if (document.selection)<br />
      {<br />
      myField.focus();<br />
      sel = document.selection.createRange();<br />
      sel.execCommand(&#8220;Paste&#8221;);<br />
     }<br />
}</p>
<p>Html link: doPaste(document.b3.txt1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Howto: Add lines of text from a specific point in a text file.. &#124; keyongtech</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-66057</link>
		<dc:creator>Howto: Add lines of text from a specific point in a text file.. &#124; keyongtech</dc:creator>
		<pubDate>Sun, 18 Jan 2009 17:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-66057</guid>
		<description>[...] = sOPT End Sub  Sub File_Position() &#039;**** &#039;* Inserting at the cursor using JavaScript &#039;* http://alexking.org/blog/2003/06/02/...ing-javascript / &#039;**** sTMP = document.getElementById(&quot;Entry&quot;).Value If sTMP = &quot;&quot; Then Exit [...]</description>
		<content:encoded><![CDATA[<p>[...] = sOPT End Sub  Sub File_Position() &#8216;**** &#8216;* Inserting at the cursor using JavaScript &#8216;* <a href="http://alexking.org/blog/2003/06/02/" rel="nofollow">http://alexking.org/[...]/2003/06/02/</a>&#8230;ing-javascript / &#8216;**** sTMP = document.getElementById(&quot;Entry&quot;).Value If sTMP = &quot;&quot; Then Exit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting the cursor position inside a text-field and smart ways to build form validators : Lifescaler</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-65749</link>
		<dc:creator>Getting the cursor position inside a text-field and smart ways to build form validators : Lifescaler</dc:creator>
		<pubDate>Thu, 18 Dec 2008 09:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-65749</guid>
		<description>[...] but what about IE? The challenge was weird, but I finally got a way around, starting an idea here. What I&#8217;ve done is I used Prototype to extend the Form Element Methods and simply add a [...]</description>
		<content:encoded><![CDATA[<p>[...] but what about IE? The challenge was weird, but I finally got a way around, starting an idea here. What I&#8217;ve done is I used Prototype to extend the Form Element Methods and simply add a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proee</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-65669</link>
		<dc:creator>proee</dc:creator>
		<pubDate>Wed, 10 Dec 2008 23:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-65669</guid>
		<description>Alex,

Iâ€™ve only been able to get this script to work if the function is called from an â€œinputâ€ style button element. If itâ€™s called from say a &quot;div&quot; or &quot;ul&quot; element it does not work in IE.  The cursor returns to the front of the input.  I&#039;ve tried changing every event handler sequence I can drum up but it still does not hold the cursor position.  Any thoughts on why?</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>Iâ€™ve only been able to get this script to work if the function is called from an â€œinputâ€ style button element. If itâ€™s called from say a &#8220;div&#8221; or &#8220;ul&#8221; element it does not work in IE.  The cursor returns to the front of the input.  I&#8217;ve tried changing every event handler sequence I can drum up but it still does not hold the cursor position.  Any thoughts on why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nagendran</title>
		<link>http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript#comment-65639</link>
		<dc:creator>nagendran</dc:creator>
		<pubDate>Sat, 06 Dec 2008 08:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/#comment-65639</guid>
		<description>your is very useful  form  me, can u help me how to  inerst  content  in div  element texts  instead  of  textarea</description>
		<content:encoded><![CDATA[<p>your is very useful  form  me, can u help me how to  inerst  content  in div  element texts  instead  of  textarea</p>
]]></content:encoded>
	</item>
</channel>
</rss>

