Peanut
10-14-2002, 11:50 AM
Hi, I'm having a problem in Netscape that I'd appreciate some help on.
I'm displaying data records as table rows and allowing the user to select with the cursor. All is fine in IE, but the Javascript button.click() does not work in NS 6...
function offwego(reggie)
{
frmmid.vehicleid.value=reggie;
frmmid.choice_submit.click();
}
---- exerpt of the data table build....
reggie = ucase(objrsvehicles.Fields("vehicle_id"))
<%if strBrowser="IE" then%>
<span title="click to edit vehicle information" onclick="offwego('<%=reggie%>')">
<tr class="InputTableText" style="CURSOR: hand">
<td><%=ucase(objrsvehicles.Fields("vrm"))%> </td>
</tr>
</span>
<%else%>
<span>
<tr class="InputTableText">
<td><a href="javascript:offwego('<%=reggie%>')"><%=ucase(objrsvehicles.Fields("vrm"))%> </a></td>
</span>
<%end if%>
---- the form with the submit button ...
<form action="../vehicle.asp" method="post" name="frmmid" id="frmmid">
<input type="submit" id="choice_submit" name="choice_submit" style="display:none">
<input type="hidden" name="vehicleid">
</form>
I have put an alert() in the javascript and it does get run in NS but does not do anything.
Any pointers would be good (I have already done an extensive search here and elsewhere ....)
Thanks all..... Peanut.
I'm displaying data records as table rows and allowing the user to select with the cursor. All is fine in IE, but the Javascript button.click() does not work in NS 6...
function offwego(reggie)
{
frmmid.vehicleid.value=reggie;
frmmid.choice_submit.click();
}
---- exerpt of the data table build....
reggie = ucase(objrsvehicles.Fields("vehicle_id"))
<%if strBrowser="IE" then%>
<span title="click to edit vehicle information" onclick="offwego('<%=reggie%>')">
<tr class="InputTableText" style="CURSOR: hand">
<td><%=ucase(objrsvehicles.Fields("vrm"))%> </td>
</tr>
</span>
<%else%>
<span>
<tr class="InputTableText">
<td><a href="javascript:offwego('<%=reggie%>')"><%=ucase(objrsvehicles.Fields("vrm"))%> </a></td>
</span>
<%end if%>
---- the form with the submit button ...
<form action="../vehicle.asp" method="post" name="frmmid" id="frmmid">
<input type="submit" id="choice_submit" name="choice_submit" style="display:none">
<input type="hidden" name="vehicleid">
</form>
I have put an alert() in the javascript and it does get run in NS but does not do anything.
Any pointers would be good (I have already done an extensive search here and elsewhere ....)
Thanks all..... Peanut.