Thanks - writing ASPX in VB and switching to JS always screws up my cases and brackets!
Thanks for the reference to reisizing - I've taken a differet route
Main Topics
Browse All TopicsI have a page that works in Internet Explorer (various versions) but does not work in Firefox or Safari.
There are two problems (so far)..
1) My code contains input boxes that are defined as
<input type="file" name="xx" style="display:inline-bloc
in IE, I get a 645px text box and a browse button.
in Safari I get just a Browse button (zero length text )
in Firefox I get a short box (about 100px) and a browse button
2. I need to remove a span. I use
var spans=elem.getElementsByTa
var p = spans(0).parentNode
p.removeChild(spans(0));
This works in IE but hangs in Firefox and Safari
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Hube02Posted on 2009-09-05 at 11:29:55ID: 25267231
1) Styling of an <input type="file"> is an extremely complex procedure. Browsers do not allow you to do much with them as security precautions. However, there is a way if you want to take the time an expend the effort to do so. I generally try to avoid it: http://www.quirksmode.org/ dom/inputf ile.html
2) You have a combination of errors here. First "span" should be lower case, I believe, at least I always to this in lower case and it works. Second it should be "spans[0]" as you are accessing an element of an array. Why your code works in IE and not FF I cannot say, but the attached example works in both FF and IE. I cannot test in Safari here, but if it works in both of the others is should??? work in Safari.
Select allOpen in new window