I'm working on a script and it works fine in IE and Chrome, but the links do not work in Firefox.
Basically I am using php to query a database and generate some links inside the page.
Example of the relevant link code:
<TD class="bodycopyblue"
onmouseover="this.style.background='#FFFF80';this.style.cursor='pointer'"
onmouseout="this.style.background='#FFFFFF'"
onclick="getAccountDetails(<?php print $accountinfo['audio_account_id']; ?>)"
>view CDRs</TD>
The onmouseover/out code works fine. The onclick doesn't seem to be.
The function the link calls:
function getAccountDetails(account_id) {
accountform.aid.value=account_id;
accountform.submit();
}
Which is submitting a form:
<FORM id="accountform"
action="accountdetails.php?month=<?php print $cdate['mon']; ?>&year=<?php print $cdate['year']; ?>"
method="post">
<INPUT id="aid" name="aid" type="hidden" value=0>
</FORM>
The Form doesn't seem to be showing up correctly... but it's a simple form with a single hidden field. Posted using a link generated by some php. I installed firebug, but either from my ignorance of its operation or nothing being wrong, it reports no errors.