Jump to content

Strange reload issues


seventheyejosh

Recommended Posts

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 ;)

Link to comment
https://forums.phpfreaks.com/topic/149885-strange-reload-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.