Navigator 2.0, Internet Explorer 3.0
textarea.value
value is a read/write string property of the Textarea object. The initial value of value is the same as the defaultValue property--the plain text (i.e., without any HTML tags) that appears between the <TEXTAREA> and </TEXTAREA> tags. When the user types characters into the Textarea object, the value property is updated to match the user's input. If you set the value property explicitly, the string you specify will be displayed in the Textarea object. This value property contains the string that is sent to the server when the form is submitted.
In Navigator 2.0, the Textarea object required the use of platform-specific newline characters or newline sequences. Thus, appending the "\n" character (newline character for Unix) to the value property of a Textarea object would not actually start a new line on Windows platforms (which use a sequence of "\r\n" to delimit lines), for example. In Navigator 3.0, this problem has been resolved--any newline character or sequence is automatically mapped to the correct platform-specific sequence.
To workaround the bug on Navigator 2.0 platforms, you'll need a variable that contains the platform-specific newline sequence. One easy way to obtain such a "newline" variable is to create your Textarea element with a default value which consists of a single blank line. Then you can copy the value property of this element; it will contain the newline sequence required on the current platform.
file: /Techref/language/JAVA/SCRIPT/definitive/refp_413.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/19 04:46,
3.145.9.174:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/language/JAVA/SCRIPT/definitive/refp_413.htm"> [Chapter 21] Reference: Textarea.value</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.