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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.