<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014616" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014616</link>
    <description></description>
    <language>en</language>
          <item>
    <title>That sounds much better than what I was doing!</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-get-cursor-focuss-certain-point-text-area#comment-1084472</link>
    <description> &lt;p&gt;Let me see if I have this right. &lt;/p&gt;
&lt;p&gt;I give the client a text area and a set of radio buttons; first heading, second heading, paragraph, quote. He pastes a lengthy text string into the text box, selects his heading, then clicks the heading button. I use the onfucus event on the radio button to trigger a function that adds the appropriate tages to the selected text and then returns the appended string to its place inside the text area.  When he finishes formating the entire article, he clicks the submit button which sends the value of the entire stirng of the text area to the server with all the html tags. &lt;/p&gt;
&lt;p&gt;Just two questions;&lt;br /&gt;
1)&lt;br /&gt;
What would the property be of the selected segment of text? textarea1.selectedText.value or what?&lt;/p&gt;
&lt;p&gt;2)&lt;br /&gt;
What did you mean by a text placeholder? Some never used characters that will be replaced by html tags? Is there an  advantage to this over inserting the html tags directly?&lt;/p&gt;
&lt;p&gt;Please don&#039;t write the function for me. That would take away most of the fun. But I woundn&#039;t mind some help on finding the property(ies) I need and any other comments you might have.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Jul 2001 11:32:16 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1084472 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-get-cursor-focuss-certain-point-text-area#comment-1084356</link>
    <description> &lt;p&gt;My thinking is you can easily set this up to write after the input is taken. Have radio buttons or some input to get which tag they want, then set the input text as a variable. Then write a little sub or function that takes the tag selection, and writes the tags around the text.&lt;/p&gt;
&lt;p&gt;I could put together a little demo in no time if you want.&lt;/p&gt;
&lt;p&gt;that is for asp, but you could easily do this even just with Javascript. I don&#039;t know about PHP. You might want to ask in server side scripting.&lt;/p&gt;
&lt;p&gt;let me know...&lt;/p&gt;
&lt;p&gt;PLUS: if you want to give them tag choices mid stream,ie bold some text midway through a paragraph. Simply have a button that upon selection inserts a text placeholer around the selected text, and than have a replace function which then writes the alternate tags to the text upon submission.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Jun 2001 01:46:42 +0000</pubDate>
 <dc:creator>detox</dc:creator>
 <guid isPermaLink="false">comment 1084356 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>thanks</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-get-cursor-focuss-certain-point-text-area#comment-1084335</link>
    <description> &lt;p&gt;Thanks for checking it out. &lt;/p&gt;
&lt;p&gt;Basically, I just want to make it easy for the user to write html code for new articles which are to be written to a database field or a text file and then included in a new page displayed on his site. Just click paragraph and start typing one. Just click quotation and start typing. If he has to place the cursor correctly, I may as well have him write the tags as well. So thats basically the idea.&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Jun 2001 19:40:42 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1084335 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-get-cursor-focuss-certain-point-text-area#comment-1084319</link>
    <description> &lt;p&gt;Why don&#039;t you simply write the html to the screen after you have the users input? As far as I know you can&#039;t focus to a specified area within an input area. But I&#039;ll check it out for you..&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Jun 2001 13:35:59 +0000</pubDate>
 <dc:creator>detox</dc:creator>
 <guid isPermaLink="false">comment 1084319 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>No Replies?</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-get-cursor-focuss-certain-point-text-area#comment-1084311</link>
    <description> &lt;p&gt;Does that mean it can&#039;t be done?&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Jun 2001 10:05:19 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1084311 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
