Note excerpt from "Dynamic HTML: The Definitive Reference"

The WRAP attribute tells the browser whether it should wrap text in a TEXTAREA
element and whether wrapped text should be submitted to the server with soft
returns converted to hard carriage returns. Navigator and Internet Explorer
don't agree fully on the possible values, and the HTML specification is silent
on the subject. Even so, there are cross-browser solutions.

If WRAP is turned off (the default), the TEXTAREA element activates the
horizontal scrollbar as characters exceed the original column width. A press of
the return/enter key causes the cursor to advance to the next line back at the
left margin. To submit the content without the word-wrapped soft returns
converted to hard carriage returns (in other words, submitted as typed), set the
WRAP attribute by including the attribute like a boolean value. To convert the
soft returns to hard carriage returns (and thus preserving the word-wrapped
formatting in the submitted content), set the value of WRAP to "hard". Both
Navigator and Internet Explorer recognize this setting, whereas Navigator 
does not recognize IE's value of "physical"

Example <TEXTAREA NAME="comments" WRAP></TEXTAREA>

Value:

The presence of the WRAP attribute (without any assigned value) engages word
wrapping (and filters soft returns before being submitted). A value of "hard"
also engages word wrapping and converts soft returns to CR-LF characters in the
value submitted to the server. A value of "off" or no attribute turns word
wrapping off. Recognized values are as follows:

Value       NN      IE
-----      ---     ----
 hard       Y        Y
 off        Y        Y
 physical   N        Y
 soft       Y        N
 virtual    N        Y

Object Model Reference:
IE  [window.]document.formname.elementName.wrap
...


Dave Schorsch
RTSC Inc.




____________________________________________________________________

From: [EMAIL PROTECTED]�| Block address
To: [EMAIL PROTECTED]
Date: Thu, 17 Jun 1999 13:28:47 -0400
Subject: Re: [ND] Wrap



syntax: WRAP=VIRTUAL

at runtime it looks like this:

<TEXTAREA NAME="TbBenefits" ROWS=4 COLS=40 WRAP=VIRTUAL></TEXTAREA>

Hard to believe WRAP isn't the default!

Janet


                                                                 
 (Embedded                                                       
 image moved   "Grace Frederick" <[EMAIL PROTECTED]>             
 to file:      06/17/99 10:26 AM                                 
 pic10468.pcx)                                                   
                                                                 



To:   "Amit Sharma" <[EMAIL PROTECTED]>,
      [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED] (bcc: Janet Traub/IS/SSC/THD)
Subject:  Re: [ND] Wrap




Set the ExtraHtmlText property for the object to WRAP


----- Original Message -----
From: Amit Sharma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 1999 8:50 AM
Subject: [ND] Wrap


> Hi All,
> Is there a way to introduce wrap in a text area? I have a text area
> where I need to wrap the text as soon as the user types in more
> characters on the screen than he can actually see.
> Thanks.
> Amit.
>
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to