Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: IE bug with textarea element (max 1568 chars)

  1. #1
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation IE bug with textarea element (max 1568 chars)

    Came across this bug with textarea HTML element in IE6...

    When textarea has more that 1568 characters the HTML form stops responding to SUBMIT event 9e.g. submit does not work anymore!!!


    - Here is the sample HTML page that demonstrates the problem:
    HTML Code:
    <HTML>
     <BODY>
      <FORM name="F" action="http://google.ca">
       <TEXTAREA name="somename" cols="50" rows="20">Try to enter here text that is bigger that 1568 chars (Just copy/paste this text 12 times). 
    The form will never submit!!! This works fine in FireFox.
    Looks like it is IE bug.
    If the property "name" of the textarea is removed it starts working!
    
       </TEXTAREA>
       <br/>
       <INPUT type="submit" value="SUBMIT BUTTON SHOULD REDIRECT TO GOOGLE"><br/>
    <INPUT type="button" value="Script Submit" onClick="document.F.submit();">
      </FORM>
     </BODY>
    </HTML>

    - Remedy for the problem:
    To fix this wild behavior textarea should NOT have "name" attribute...
    After it is removed, the example above works fine...

    NOTE: This problem found so far in IE6 series of the browsers (FireFox as expected works just fine)

    MESSAGE TO MICROSOFT: Please fix your browser! Also, please do support SVG image format "out of the box" (no plugins please!)
    Last edited by Ruslan Zenin; 02-08-2007 at 06:53 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Hmm... I seriously doubt this.
    I'd have to play with it to figure it out.

    There's no script involved in this?

    Just that generally anything over that many characters causes a problem?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here is the situation with web development:
    http://img347.imageshack.us/img347/2254/cssgraph0oo.png

    Last edited by Ruslan Zenin; 02-08-2007 at 04:27 AM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd think that is a limit on the number of characters allowed in the address bar. If the form's method were post, this might also 'fix' it.

    Code:
    <FORM name="F" action="http://google.ca" method="post">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the extra work around idea...

    OK, but why IE6 fails to even submit. Try in my example JavaScript button - <INPUT type="button" value="Script Submit" onClick="document.F.submit();">
    IE generates error!!!
    This is clearly a bug.

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Why not just make it a submit button?
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by thetestingsite View Post
    Why not just make it a submit button?
    Perhaps you did not read/understand my original post - there is a BUG in IE6.... I have provided sample HTML that demonstrates the problem
    It has 2 butoons:
    1. Regular SUBMIT button - does not work
    2. Button with JS form submit - also does not work

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Ruslan Zenin View Post
    Thanks for the extra work around idea...

    OK, but why IE6 fails to even submit. Try in my example JavaScript button - <INPUT type="button" value="Script Submit" onClick="document.F.submit();">
    IE generates error!!!
    This is clearly a bug.
    Quote Originally Posted by thetestingsite View Post
    Why not just make it a submit button?
    I don't think that was the point, thetestingsite. Read over the thread. This latest observation by Ruslan Zenin was to make the point, not as a solution or as a problem.

    Anyways though, there was a time when all browsers had limitations on the length of the address in the address bar. At that time, 1568 characters was a big improvement. So, I really wouldn't call it a bug. I would say that it is outdated. Generating an error is simply the browser's way of informing the designer that his/her code needs revision.

    Also, if you think about it, it isn't such a hot idea to pass so much data in the query string. If the textarea is editable, the user could keep increasing the length until it either became truncated or caused an error and/or crashed in any browser.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Here is the situation with web development:
    http://img347.imageshack.us/img347/2254/cssgraph0oo.png
    Heh

    Does it work using method="post"? If not, that's definitely a bug.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey View Post
    Heh

    Does it work using method="post"? If not, that's definitely a bug.
    Good point. I already mentioned using post and I thought, from Ruslan Zenin's response*, that took care of it. But, I see upon rereading it that I may have jumped to that conclusion.


    *
    Quote Originally Posted by Ruslan Zenin
    Thanks for the extra work around idea...
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •