D
Dave A
I have two events in a form that I am passing. One is to a javascript
function, the other is to the same .asp page only with another action
to show different data.
Onchange is calls the function updateclasses, which in turn reloads
another drop-down list. It also reloads the .asp page, which
refreshes the data. My problem is that it refreshes the second
drop-down briefly, until the page reloads, but then resets the form.
How do i pass this data to the .asp?
I thought in the .asp, I could just do something simple like the
following, but wasn't sure of the correct syntax. is there a better
way?
view = request.querystring("view")
if view = "" then
view = "SciLink"
else
%>
<script language="JavaScript">
updateclasses(form1, 0, Student)
</script>
<%
end if
<form name=form1 method=post>
<td><span class=middleColContentBold>SORT BY:</span><br>
<select multiple class="rubricContent"
onchange="gotosite(this.options
[this.selectedIndex].value);updateclasses(this.form, 0,
this.selectedIndex)" style="background-color:FFFFFF; border:1 solid
black; width:110;">
<option value="gradebook3.asp?view=SciLink" <% if view = "SciLink"
then response.write "selected" end if %>>SCILINKS</option>
<option value="gradebook3.asp?view=Student" <% if view = "Student"
then response.write "selected" end if %>>CLASSES</option>
</select>
</td>
</form>
function, the other is to the same .asp page only with another action
to show different data.
Onchange is calls the function updateclasses, which in turn reloads
another drop-down list. It also reloads the .asp page, which
refreshes the data. My problem is that it refreshes the second
drop-down briefly, until the page reloads, but then resets the form.
How do i pass this data to the .asp?
I thought in the .asp, I could just do something simple like the
following, but wasn't sure of the correct syntax. is there a better
way?
view = request.querystring("view")
if view = "" then
view = "SciLink"
else
%>
<script language="JavaScript">
updateclasses(form1, 0, Student)
</script>
<%
end if
<form name=form1 method=post>
<td><span class=middleColContentBold>SORT BY:</span><br>
<select multiple class="rubricContent"
onchange="gotosite(this.options
[this.selectedIndex].value);updateclasses(this.form, 0,
this.selectedIndex)" style="background-color:FFFFFF; border:1 solid
black; width:110;">
<option value="gradebook3.asp?view=SciLink" <% if view = "SciLink"
then response.write "selected" end if %>>SCILINKS</option>
<option value="gradebook3.asp?view=Student" <% if view = "Student"
then response.write "selected" end if %>>CLASSES</option>
</select>
</td>
</form>