Forum Moderators: open

Message Too Old, No Replies

IE7 problem with input text maxlength

         

JaneneMc

5:30 pm on Jan 29, 2008 (gmt 0)

10+ Year Member



I'm having an issue with IE7 truncating text in an input text field where I've used a default maxlength. IE7 seems to be limiting the length and the form simply doesn't work at all. I've also tried using a large # for maxlength and IE7 is still truncating. The form works fabulously in FF, but management has mandated support for IE7. Any ideas or workarounds?

Janene

Fotiman

6:08 pm on Jan 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What do you mean by "a default maxlength"? Have you assigned a maxlength attribute to your input? Can you post an example?

JaneneMc

6:30 pm on Jan 29, 2008 (gmt 0)

10+ Year Member



By "default" I meant that I had not explicitly set the maxlength, which is supposed to allow an unlimited # of characters, according to the HTML standards.

An example... very basic stuff, which is part of why I'm baffled:

<input type="TEXT" name="nameSpec" size="45">

This should allow the user to put as much text into the input field as she wants, I thought(?)

Janene

Fotiman

7:23 pm on Jan 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Correct. It should (and does as far as I can tell) allow an unlimited number of characters. Do you have some sample text that is getting truncated? And are you sure there is no JavaScript applied to the input that is causing it to truncate?

JaneneMc

8:09 pm on Jan 29, 2008 (gmt 0)

10+ Year Member



I've checked the scripts that are running and none of them appear to modify the text the user put into the field. It simply does some content checking (no modification) then submits the form. It is submitting it via a "get" - could that be truncating the field?

Janene

JaneneMc

8:16 pm on Jan 29, 2008 (gmt 0)

10+ Year Member



Aha, that's what it is, IE restricts the length of a URL to 2083.

Thanks for the help in pointing me to this issue.

Here's the article I found, if anyone else is interested:

[boutell.com...]