javascript rollover submit issue in M$IE
Posted: Sun Jul 04, 2004 11:49 am
problem is that while mozilla, netscape and such have it work fine,
Microsoft Internet Error has a little issue that's causing a massive headache. asking about it on the msdn got nothing.
thread with operating system/browser failures during some testing this weekend:
http://www.findyourdesire.com/forums.php?tid=225
code for the submit:
there's two variations that seem to work in M$IE no matter where they are. that one only works for hte navigation bar.
example of variation:
forms not working:
M$internet error brings you to the page you're on with a #
everything else submits to login.php
the second gets the page via the php variable $_SERVER['PHP_SELF']
it seems like M$IE will only let one thing call the function.
anyone have any clues how this issue can be remedied?
Microsoft Internet Error has a little issue that's causing a massive headache. asking about it on the msdn got nothing.
thread with operating system/browser failures during some testing this weekend:
http://www.findyourdesire.com/forums.php?tid=225
code for the submit:
Code: Select all
function subfrm(choice){ document.getElementById(choice).submit(); return true; } // submit a formexample of variation:
Code: Select all
function subsel(form,hfld,hval,hfld2,hval2){ // submit a form and set a hidden variable
document.getElementById(hfld).value=hval;
document.getElementById(hfld2).value=hval2;
document.getElementById(form).submit();
return true;
}Code: Select all
<form action="login.php" id="verify" name="verify" method="POST">
<span id="vtp">Member Name: <input id="mem" name="mem" maxlength="15" size="15" type="text" /> Password: <input id="pass" name="pass" maxlength="15" size="15" type="password" /></span> <a href="#" onclick="subfrm('verify');" onmouseout="deselopt('lgn',usr);" onmouseover="selopt('lgn',usr);" target="_top"><img alt="Login Now!" id="lgn" name="lgn" src="sitepics/lgnoff.png" title="Login Now!" /></a><span id="vtp"> or <a href="http://www.findyourdesire.com/join.php" target="_top">Join</a> now to Rate others!</span>
</form>Code: Select all
<form action="/login.php" id="vrfy" name="vrfy" method="POST">
<table cellspacing="0" class="regnw">
<tbody>
<tr><td>Your Member Name</td><td><input id="mem" name="mem" maxlength="15" size="15" type="text" value="" /></td></tr>
<tr><td>Your Password</td><td><input id="pass" name="pass" maxlength="15" size="15" type="password" /></td></tr>
<tr><td><a href="http://www.findyourdesire.com/pass.php">Lost Your PW?</a></td><td><a href="#" onclick="subfrm('vrfy');" onmouseout="deselopt('lgn',usr);" onmouseover="selopt('lgn',usr);" target="_top"><img alt="Login Now!" id="lgn" name="lgn" src="sitepics/lgnoff.png" title="Login Now!" /></a></td></tr>
</tbody>
</table>
</form>everything else submits to login.php
the second gets the page via the php variable $_SERVER['PHP_SELF']
it seems like M$IE will only let one thing call the function.
anyone have any clues how this issue can be remedied?