The following is I have taken the templete calendarjump from and used with the calendar.php and i modifyed the templete so that I could use a function to process the selected calandar in the dropdown menu.
First i need to ask is does the java script can be in the templete its self or does it have to reside out side the templete.
Second is the following templete i am playing with I have added java script to the templete as you will see but my linking bettween the templete the form and the java script is not seem to working for me.
Do i have to register something for it to work?
When i press the "Go" button nothing happens can someone take a quick look and tell what i am going worng here THANKS
PHP Code:
<script type="text/javascript"> process_selected(form) {
this.form.submit();
}
</script>
<form action="calendar.php" method="get">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="month" value="$month" />
<input type="hidden" name="year" value="$year" />
<input type="hidden" name="do" value="$docalendar" />
<strong>$vbphrase[Lodge_Calendar]</strong><br />
<select name="c" >
<optgroup label="$vbphrase[please_select_one]">
$jumpcalendarbitsl
</optgroup>
<input type="hidden" name="me" value='2'" />
</select>
<input type="button" value="Go" onclick="process_selected(this.form)" <br />
</div>
</form>
THANKS
Frank H. Shaw
PS A example of would help me THANKS