WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Firefox trouble

Version: 4.1.50
printPrint


Firefox trouble
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/30/08 - 02:29 PM:
quote post
#1
Simple HTML here. Maybe one of you can tell me why firefox is breaking everything.

Somehow, it seems that Firefox handles <select multiple> in a different and unknown way from what Opera and Konqueror do, and different from the W3C standard. This simplified test page validates, and works in Opera and Konqueror (presumably IE too), but in Firefox it doesn't pre-select the selected options and when you make a selection in one of the boxes it undoes your selection in the other box:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Test</title></head>
<body>
<form action="http://www.webmastersite.net/forums/">

Box 1:<br>
<select multiple size="5" name="parsecodelinks[]">
<option value="title">title</option>
<option value="url">url</option>
<option value="description" selected>description</option>
<option value="email">email</option>
</select>

<br>Box 2:<br>
<select multiple size="5" name="parsecodecategories[]">
<option value="name">name</option>
<option value="description" selected>description</option>
<option value="custom">custom</option>
<option value="moderators">moderators</option>
</select>

</form>
</body>
</html>


Any ideas? Couldn't find anything relevant in google. Using Firefox 3 here. Do you get the same bad behavior in Firefox 2?

The result of this problem is that if you edit your settings in Firefox you lose all your code, smilie, required field etc selections.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 68
Total Posts: 268
Posted 06/30/08 - 04:49 PM:
quote post
#2
Just tried the code for you with Homesite, Avant, IE7, Firefox 2 & Firefox3 - I also tried it in AOL for good measure. They all behave the same. Description is preselected in both boxes when viewing the page and changing a selection in one box doesn't affect the other. I've also tried the code locally - I'm running WinXP if that even matters - as well as remotely on one of my hosted sites which are on unix boxes.

I know you don't show it in this simplified code, but could you be using any styles that might be affecting firefox? Shot in the dark, but it's a thought.

High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/30/08 - 08:51 PM:
quote post
#3
I tested the exact HTML above saved as "test.html" on my desktop, so no styles in the page, and I don't think Firefox offers user styles.

Anyhow that's good to hear, my Firefox version must just be broken (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0). Though how a version where common HTML doesn't work could ship or break after shipping I don't know.

Edited by Paul on 06/30/08 - 08:59 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 312
Total Posts: 1032
Posted 06/30/08 - 10:07 PM:
quote post
#4
Just to confirm it worked ok for me too in Firefox 2

Items were pre-selected, on changing it did not affect the other
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.