S
scott
I have a combo in LISTING 2 that I'm trying to force a sumbit when a user
makes a change. Can anyone see why it doesn't fire LISTING 2 code?
It just doesn't do anything. What I'm really trying to do is access the
value of the combo after a user makes a change. I'm just hardcoding the
teamID querystring in this example.
LISTING 1
-------------
<script type=text/javascript>
function showTeams()
{
document.addForm.action = "./mypage.asp?teamID=5";
document.addForm.submit();
}
</script>
LISTING 2
------------
<form action="mypage.asp" method="post" name="addForm">
<select class="FormTextBox" name="cboCategory"
onchange="javascript:showTeams();">
<OPTION value="1">Work Schedule</OPTION>
<OPTION value="2">Meeting</OPTION>
<OPTION value="3">Mills</OPTION>
<OPTION value="5">Teams</OPTION>
</select>
makes a change. Can anyone see why it doesn't fire LISTING 2 code?
It just doesn't do anything. What I'm really trying to do is access the
value of the combo after a user makes a change. I'm just hardcoding the
teamID querystring in this example.
LISTING 1
-------------
<script type=text/javascript>
function showTeams()
{
document.addForm.action = "./mypage.asp?teamID=5";
document.addForm.submit();
}
</script>
LISTING 2
------------
<form action="mypage.asp" method="post" name="addForm">
<select class="FormTextBox" name="cboCategory"
onchange="javascript:showTeams();">
<OPTION value="1">Work Schedule</OPTION>
<OPTION value="2">Meeting</OPTION>
<OPTION value="3">Mills</OPTION>
<OPTION value="5">Teams</OPTION>
</select>