...

View Full Version : Browser detection for expanding 'width' SELECT column. IE not working right.



hrl2k
08-06-2010, 07:22 PM
Hey all,

http://www.lindesigns.us/rma/rmaonline.php

If you go to that site on Firefox, the "Return Code #" expands. But if you use IE, you'll see that it doesn't.

I could add a fix in there for the fields if they were static, but if you see my javascript, they are dynamically loading fields.


This "class":"wide" is not working:


invoiceInput.appendChild(createElement("input", {"type":"text", "name":"invoice[]", "size":"8", "class":"wide;"}));


I am using a script I found on a jQuery board (http://jsbin.com/acado/6), and it works for them, but not for me because my syntax is probably wrong. And they also are just using 1 field and not near-unlimited dynamically loading fields like I am.


How would I add in a fix to have the browser 'only' use the expansion if the user is using IE6 or IE7?

I searched on the boards but couldn't find the solution to this problem. Thanks in advance!

hrl2k
08-06-2010, 08:49 PM
Update: EDIT - all info moved to first post



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum