I bumped into an issue while testing one of my ColdFusion applications. The issue is how Firefox and IE render HTML. Take the following HTML input tag in test.htm for example:
<input name="field" type="text" value="1234" maxlength="3">
Now, if you view it in Firefox (1.5.0.1) you will only see 123 in the input box. However, if you view it in IE (6.0) you will see 1234. Looks like Firefox truncates the value based on the maxlength attribute, but IE does not.
However, in the example above, both browsers do not allow you to enter a value more than 3 characters in length.
2 Comments | Filed in ColdFusion, Firefox, Tips | Tags: Firefox, html, internet-explorerIf you are a ColdFusion developer, you most probably know by now that it produces lots of white space in the generated HTML file. The extraneous white space may result in a larger file size which leads to slower download speed on the client machines. So, how to get rid of this extraneous white space? First, learn how to use the following CFML tags, then use them in your code:
Comments Off | Filed in ColdFusion | Tags: html