tpaulson@nsc-inc.com wrote:[color=blue]
> I have a couple of DIV's that I hide/display based on radio buttons.
> On the DIV's, I have multiple drop down boxes. The source shows that
> they are populated, but I can't make them drop down. Only click on the
> Unplatted Radio button, the rest isn't functional, yet. Any ideas how
> to make these drop down in FF. This works in IE.[/color]
Use valid HTML and don't depend on error correction (see below).
Please indent code using 2 or 4 spaces and manually wrap lines at
about 70 characters. That will prevent auto-wrapping which nearly
always introduces more errors that not only make helping you more
difficult, buy may mask your problem.
[color=blue]
>
> <HTML>
> <HEAD>
> <TITLE>Door County Register of Deeds - Tract Inquiry</TITLE>
>
> <script>[/color]
The type attribute is required.
[color=blue]
> var ifsdir='/rerv10f';
>
> function goList(btnName,hdnName,hdnValue)
> {
> if (hdnName!='') {
> var hdnVar=eval('document.forms[0].'+hdnName);
> hdnVar.value=hdnValue;
> }
> document.forms[0].BUTTON.value=btnName;
> document.forms[0].submit();
> }
> </script>
>
> <script type="text/javascript">
> <!--[/color]
Using comment delimiters inside script elements is pointless and
potentially harmful.
[color=blue]
>
> // function switchDiv()
> // this function takes the id of a div
> // and calls the other functions required
> // to show that div
> //
> function switchDiv(div_id)
> {
> var style_sheet = getStyleObject(div_id);
> if (style_sheet)
> {
> hideAll();
> changeObjectDisplay(div_id,"inline");
> }
> else
> {
> alert("sorry, this only works in browsers that do Dynamic HTML");[/color]
Whether or not a browser supports your 'getStyleObject' function is
not a sufficient test to determine whether it supports 'Dynamic HTML'
A better statement would be;
'Sorry, my script does not support your browser'.
[color=blue]
> }
> }
>[/color]
[...]
[color=blue]
>
> document.write('<table border="0" cellpadding="0" cellspacing="0"
> width="100%" height="85" bordercolor="white">');
> document.write('<tr>');
> document.write('<td width="15%"> </td>');
> document.write('<td align="center" width="70%">');
> document.write('<img src="/rerv10f/images/header.jpg" border="0">');
> document.write('</td>');
> document.write('<td width="15%" valign="top" align="right"><a href="#"
> Onclick="window.open(\'/RERV10O/rer001?form=admin&encusr=7A7BF76DA6CB6728E0C242458 0A7491C&time=13411812152005\',\'ADMIN\');">Adminis tration</a></td>');
> document.write('</tr>');
> document.write('<TR><TD COLSPAN="3" BGCOLOR="#FFFFFF"');
> document.write('VALIGN="TOP" HEIGHT="20"><div id="MenuPos"
> style="position:relative;width:80;height:20;"></DIV></TD>');
> document.write('</TR>');
> document.write('</TABLE>');[/color]
A single call to document.write would be far more efficient,
particularly when you are writing bits of a table in different statements:
document.write(
'<table border="0" cellpadding="0" cellspacing="0"',
' width="100%" height="85" bordercolor="white">',
'<tr><td width="15%"> </td>',
...
'</TR></TABLE>'
);
[...]
[color=blue]
> <!-- Start Unplatted -->
> <div id="unplat" style="position:relative;display:none;">
> <table width="100%" border="0">[/color]
[...]
[color=blue]
> <option value="36">36</option>
> </select></td>
> <td width="30%"></td>
> <tr>[/color]
Missing closing tag on TR.
As always, start by validating your HTML. There may be other errors.
[...]
--
Rob