File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Textarea not being passed OK through form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Textarea not being passed OK through form

Adrian Peyton

Joined: Jun 04, 2004
Posts: 3
I have a situation where I have a textarea in a form. This form is passing the textarea to a new page (actually I needed it to be shown in a entirely new window so I have a bit of javascript that loads a new window and passes the textarea value in the URL)

So when the javascript encounters the textarea with values

it produces "newwindow.php?value1=abc"

and shows on page 2 as "abc"

I need to output the data entered into the textarea on page 1 on page 2, exactly as it has been typed.

It is essential that I get the form value shown on a new window, if it were to direct to the same window there is no problem as it doesn't have to be passed through the URL.

Below is my code, including the javascript.

If anyone can help, then I'd be most grateful,

Below is my form with the javascript to open the new window with form values passed to it.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
cross posted...answer here:
I agree. Here's the link:
subject: Textarea not being passed OK through form
It's not a secret anymore!