TEXTAREA issues

Discussion in 'Javascript' started by ph0ngwh0ng, Jul 14, 2004.

  1. ph0ngwh0ng

    ph0ngwh0ng Guest

    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
    ph0ngwh0ng, Jul 14, 2004
    #1
    1. Advertising

  2. ph0ngwh0ng

    Grant Wagner Guest

    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
    Grant Wagner, Jul 14, 2004
    #2
    1. Advertising

  3. 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.
    Richard Cornford, Jul 15, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bei

    msword-like textarea?

    Bei, Jun 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,231
    mike C.
    Jul 2, 2003
  2. Replies:
    3
    Views:
    774
    Justin Lovell
    Oct 5, 2003
  3. Augustus
    Replies:
    1
    Views:
    340
    Ken Schaefer
    Sep 10, 2003
  4. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    318
    Anthony Jones
    Feb 5, 2006
  5. Replies:
    1
    Views:
    297
    Bart Van der Donck
    Jul 4, 2007
Loading...

Share This Page