This is a total newbie question...
<textarea rows="30" cols="50" name="MyText" title="Title"></textarea>
How do I read the contents of the textbox?
Hal Rosser - 28 Apr 2006 04:57 GMT
> This is a total newbie question...
> <textarea rows="30" cols="50" name="MyText" title="Title"></textarea>
>
> How do I read the contents of the textbox?
You may have java confused with javascript.
In javascript you could refer to the value property of the textarea.
You did not say what the name of the form is - where the textarea lives.
Assuming only one form:
alert (document.forms[0].elements['Title'].value);
=== (Or are you talking about server-side programs)===
if you're talking about java servlets look at doGet of HttpServlet class
and request.getParameter("Title")
Venkatesh - 28 Apr 2006 05:05 GMT
The tag u have put, I'm assuming is in some html page. Given that,
where do u want to read the contents of textarea ???? Do u want to read
inside a java program running on webserver? or just read within the
browser, when some event happens?
-Venkatesh