Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > TEXTAREA issues

Reply
Thread Tools

TEXTAREA issues

 
 
ph0ngwh0ng
Guest
Posts: n/a
 
      07-14-2004
Hi,

I am building a simple form with a textarea and a submit button. The
problem is that when there is more than about 1700-1800 characters in
the textarea, the form won't submit(you can click the button but
nothing happens). The problem appears on Windows 2000 SP4 with the
latest fixes for IE. Problem is not happening on XP machines.

Here is my form declaration:

<form name="Modification" method="get" action="/test/do_modif.php">

<p>
<textarea name="texte1" rows="10" maxlength="32000" wrap=virtual
cols="70">Insert long text here</textarea><BR>

<input type="button" name="submit" value="Soumettre les changements"
ONCLICK="this.form.submit()">
</p>

</form>

A regular input type="submit" doesnt work either.

Thanks

Alexandre Brizard
 
Reply With Quote
 
 
 
 
Grant Wagner
Guest
Posts: n/a
 
      07-14-2004
ph0ngwh0ng wrote:

> Hi,
>
> I am building a simple form with a textarea and a submit button. The
> problem is that when there is more than about 1700-1800 characters in
> the textarea, the form won't submit(you can click the button but
> nothing happens). The problem appears on Windows 2000 SP4 with the
> latest fixes for IE. Problem is not happening on XP machines.
>
> Here is my form declaration:
>
> <form name="Modification" method="get" action="/test/do_modif.php">
>
> <p>
> <textarea name="texte1" rows="10" maxlength="32000" wrap=virtual
> cols="70">Insert long text here</textarea><BR>
>
> <input type="button" name="submit" value="Soumettre les changements"
> ONCLICK="this.form.submit()">
> </p>
>
> </form>
>
> A regular input type="submit" doesnt work either.
>
> Thanks
>
> Alexandre Brizard


You are using METHOD="GET", which attempts to send the contents of the
form on the URL. The maximum length of a URL in IE is somewhere around
2000 characters. Although the server _might_ be able to handle it, IE has
taken the approach to not submit the form when the URL length exceeds
some internal limit.

Use METHOD="POST" and you won't have this problem.

--
Grant Wagner <>
comp.lang.javascript FAQ - http://jibbering.com/faq


 
Reply With Quote
 
 
 
 
Richard Cornford
Guest
Posts: n/a
 
      07-15-2004
ph0ngwh0ng wrote:
<snip>
> Here is my form declaration:

<snip>
> <input type="button" name="submit"
> value="Soumettre les changements"
> ONCLICK="this.form.submit()">

<snip>

One of the consequences of naming a form control "submit" is that the
browser will replace the reference to form's submit method with a
reference to that coincidentally named form control. Therefor the code
that you have posted cannot function at all (it would error and never
attempt to submit the form). Generally it is a bad idea to post code
that you have not verified as actually exhibiting the problem being
described.

Richard.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add </textarea> within <textarea> tags? frank.moens@gmail.com Javascript 1 07-04-2007 04:00 PM
Textarea Inside of a textarea wperry1@gmail.com ASP General 6 02-05-2006 08:00 AM
Re: Windows XP Pro clean install issues, SP2 issues too... pcbutts1 Computer Support 0 07-06-2005 04:52 PM
SNMP Issues in Cisco Routers; Vulnerability Issues in TCP =?iso-8859-1?Q?Frisbee=AE?= MCSE 0 04-21-2004 03:00 PM
Removing carriage returns from <textarea></textarea> input Augustus ASP General 1 09-10-2003 04:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57