seventheyejosh Posted March 17, 2009 Share Posted March 17, 2009 Hello all. I have a strange javascript problem. I have a zapatec calender: <input type="text" id="calendar" name="calendar" value="<?=date("Y/m/d");?>" size=14/> <button id="trigger">Choose Date</button> <script type="text/javascript">//<![CDATA[ Zapatec.Calendar.setup({ electric : false, inputField : "calendar", button : "trigger", ifFormat : "%Y/%m/%d", daFormat : "%Y/%m/%d" }); //]]></script> which works fine, but if any of my onmouseup events : echo "<table border=0 width=100% cellpadding=0 cellspacing=0>\n"; echo "<tr>\n"; echo "<td align=center class=headercell><b>Select a Chart:</td>\n"; echo "<td align=center class=headercell><input type=radio name=chart id=chart value=steps $step_c onmouseup=\"UpdateChart('steps')\">Step Comparison</td>\n"; echo "<td align=center class=headercell><input type=radio name=chart id=chart value=thismonth $thismonth_c onmouseup=\"UpdateChart('thismonth')\">Current Month</td>\n"; echo "<td align=center class=headercell><input type=radio name=chart id=chart value=lastmonth $lastmonth_c onmouseup=\"UpdateChart('lastmonth')\">Last Month</td>\n"; echo "<td align=center class=headercell><input type=radio name=chart id=chart value=alltime $alltime_c onmouseup=\"UpdateChart('alltime')\">All-Time Monthly</td>\n"; echo "</tr>\n"; echo "</table>\n"; get triggered, it updates my chart via ajax like its supposed to. however once i click on my trigger button after i've selected a chart, the page simply reloads! i cannot seem to figure this out. thanks very much in advance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.