Javascript remove line breaks from textarea when submitting data via AJAX

RESOLVED INCOMPLETE

Status

()

Toolkit
Form Manager
--
major
RESOLVED INCOMPLETE
12 years ago
10 years ago

People

(Reporter: Dimas Yusuf, Unassigned)

Tracking

1.8 Branch
PowerPC
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

The contents of a textarea may contain line breaks. When the contents of a textarea is placed into a Javascript variable and this variable is passed into a Perl script, all the line breaks disappear.

Reproducible: Always

Steps to Reproduce:
1. Create an AJAX-style function designed to pass the values of a textarea into a server-side script
2. Type text into the textarea, adding line breaks, and then submit it
3. Observe that the text received by the server-side script no longer contains any line breaks.

Actual Results:  
Line breaks seemed to be removed by Firefox's Javascript component.

Expected Results:  
Line breaks should be preserved. When Safari is used, the line breaks were preserved.
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 07/14
Version: unspecified → 2.0 Branch
(Assignee)

Updated

10 years ago
Product: Firefox → Toolkit

Updated

10 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INCOMPLETE
Whiteboard: CLOSEME 07/14
You need to log in before you can comment on or make changes to this bug.