TEXTAREA issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ph0ngwh0ng

    TEXTAREA issues

    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="Modificat ion" method="get" action="/test/do_modif.php">

    <p>
    <textarea name="texte1" rows="10" maxlength="3200 0" wrap=virtual
    cols="70">Inser t long text here</textarea><BR>

    <input type="button" name="submit" value="Soumettr e les changements"
    ONCLICK="this.f orm.submit()">
    </p>

    </form>

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

    Thanks

    Alexandre Brizard
  • Grant Wagner

    #2
    Re: TEXTAREA issues

    ph0ngwh0ng wrote:
    [color=blue]
    > 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="Modificat ion" method="get" action="/test/do_modif.php">
    >
    > <p>
    > <textarea name="texte1" rows="10" maxlength="3200 0" wrap=virtual
    > cols="70">Inser t long text here</textarea><BR>
    >
    > <input type="button" name="submit" value="Soumettr e les changements"
    > ONCLICK="this.f orm.submit()">
    > </p>
    >
    > </form>
    >
    > A regular input type="submit" doesnt work either.
    >
    > Thanks
    >
    > Alexandre Brizard[/color]

    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 <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq


    Comment

    • Richard Cornford

      #3
      Re: TEXTAREA issues

      ph0ngwh0ng wrote:
      <snip>[color=blue]
      > Here is my form declaration:[/color]
      <snip>[color=blue]
      > <input type="button" name="submit"
      > value="Soumettr e les changements"
      > ONCLICK="this.f orm.submit()">[/color]
      <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.


      Comment

      Working...