
Originally Posted by
me
If it is only one drop box named 'category' you are hiding, this method will work well
You've got 3 input items named 'category' (I know the others are hidden and not actual select boxes but, it still messes things up), so we will have to do something else. Also, you have no beginning <html> tag on your page. It belongs right after the doctype. OK, change:
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='hidden'};
to:
Code:
if (document.all&&!window.opera){document.all('boxOne').style.visibility='hidden';document.all('boxTwo').style.visibility='hidden'};
and change the other line we added:
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='visible'};
to:
Code:
if (document.all&&!window.opera){document.all('boxOne').style.visibility='visible';document.all('boxTwo').style.visibility='visible'};
Now, in the HTML part of the document, change this:
HTML Code:
<select name="category" size="1" onChange="document.change_cat.submit();">
to:
HTML Code:
<select id="boxOne" name="category" size="1" onChange="document.change_cat.submit();">
Then change this one:
HTML Code:
<tr><td><b>Sub Category:</b> </td><td><select name="subcategory" size="1" onChange="document.change_scat.submit();">
to:
HTML Code:
<tr><td><b>Sub Category:</b> </td><td><select id="boxTwo" name="subcategory" size="1" onChange="document.change_scat.submit();">
I chose those two because they seem to be the only two that conflict with the drop downs. I would have further limited it to only the first drop down but, at narrower screen or window widths, other drop downs come into play. I'm not real happy with the look though but, it does eliminate the original problem. A better solution for this layout would be to arrange things so that the form is farther down the page so that the problem never comes up. Perhaps a graphic, representative of what the form is about, could fill the space or just reformatting the intro text to require three double spaced lines:
HTML Code:
<small>Please fill in the following form.<br> <br>Only the Description field is optional.<br> <br>All others are required to successfully add your item to the database.</small>
The word 'successfully' was misspelled, I changed the language slightly as well.
Bookmarks