View Single Post
Old 20th May 2013, 14:18     #1
MadMax
Stuff
 
ONCHANGE= only working in IE

Code:
<P><FORM method="GET" action="/timesheet/enter_times.php" NAME="pp"> <label for="pay_period">Select the pay period to enter hours for:</label><br> <SELECT id="pay_period" NAME="pay_period" ONCHANGE="document.pp.submit()"> <OPTION VALUE="1368360000" >May 13, 2013 -> May 19, 2013</OPTION> <OPTION VALUE="1368964800" SELECTED>May 20, 2013 -> May 26, 2013</OPTION> </SELECT> </FORM>
^ some really old code that is still in use, I'm guessing it only works in IE because it just ignores whatever coding issue there is. Toggling the week in the OPTION is supposed to change (submit) the page.
__________________
My degree of sarcasm depends on your degree of stupidity.

Last edited by MadMax : 20th May 2013 at 14:19.
  Reply With Quote