Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Cursor Position in TextArea

Status
Not open for further replies.

Cranger

Programmer
Apr 4, 2001
54
US
I have a form with 2 TEXTAREA boxes defined.
When I initially enter the TEXT AREA, the Cursor does not start in the TOP LEFT but rather 9 spaces from the top left.

To make matters worse, When a specified selection box is chosen i do an ONChange event and submit the form. Now when I tab to the TEXTAREA box, the Cursor starts about 9 spaces over and on the next line.

What could I be doing wrong and how do I get the cursor to start at the beginning of the TEXTAREA? HELP!!!!!!!!!!!
 
Oh, My statement looks like this


<TR><TD width=150>
<P align=right><font face=Arial size=2>
Problem:&nbsp;</FONT></p>

<TD width=450><TEXTAREA wrap=true id=taProblem name=taProblem style='HEIGHT: 120Px; Width: 450px' >
<%=(session(&quot;sinttaProblem&quot;))%>
</TEXTAREA>
</td></td></tr>
 
There must be some spaces in the session variable that you assigning to the value of the textarea --

I don't see what else it could be.
penny.gif
penny.gif
 
When the page first starts up, I assign
session(&quot;sinttaProblem&quot;) = &quot;&quot;

When I resubmit form

session(&quot;sinttaProblem&quot;)=trim(request.form(&quot;taPrbolem&quot;))

 
I fixed it, but I don't know what happened.

I copied a chunk of code from another .asp that had a textarea in it. Now there are no spaces. This is whack!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top