24 April 2009

From Dan’s keyboard:

On my asp.NET page I had this:

<asp:TextBox ID="txtZip" runat="server" Text="Zip Code" Name="txtZip" onclick="javascript: zipClick();" MaxLength="5" Width="55"></asp:TextBox>

If you notice, the Text=”Zip Code” has more characters than is allowed in the MaxLength property. Firefox and IE 6,7 ignore this and pass “Zip Code” onto the server during postback.

Safari on a Mac, however, does NOT ignore this, and truncates the text to “Zip C”

An interesting tidbit!!!

Thank you Dan.



Post a Comment

Note: Only a member of this blog may post a comment.