Re: putting selected text in textarea i a string
| From: | Richard Davey | Date: | Thu, 18 Mar 2004 17:51:16 +0000 |
| Subject: | Re: putting selected text in textarea i a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180868@lists.php.net to get a copy of this message | ||
Hello R.G.,
Wednesday, March 17, 2004, 9:18:53 PM, you wrote:
RGV> Is it possible to change selected text in a textarea without using java and
RGV> only php or html.
RGV> There are lots of solutions in a javascript but i would like to try it
RGV> without. If it is possible to place the in a textarea selected text in the
RGV> return of a function i like to believe is can be done. So how kan i put
RGV> selected text in a string.
Erm, your post doesn't make a great deal of sense - but just to
clarify, no you cannot modify the contents of a live textarea from a
PHP function for the simple reason that what you want is a CLIENT-SIDE
change and PHP is 100% SERVER-SIDE. Try using a JavaScript function to
modify a live textarea field.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html