i get the above error message with the following code can anyone help as i am a beginner chucked in at the deep end and i am struggling! (greatly)?
function addemployee(targ, selObj){
eval(targ+".location='AssignLMStatus.asp?EmployeeNo=" + selObj.options[selObj.selectedIndex].value + "&update=true&assign=true + <%=RS2("LineManager"%>'"
}
***the above code is used to refresh the page and pass items on the querystring***
<input type ="button" value=">>" ALIGN="TOP" onclick="addemployee('this' , 'Employees4Team')">
*** the above code is the input button that i click to make the function work*******
LineNo=request.querystring("LineManager"
update=request.querystring("Update"
If Update="true" then
strSQL1 ="Update employee set "
strSQL1 = strSQL1 & "LineManager=" & LineNo
strSQL1 = strSQL1 & " Where EmployeeNo=" & EmpNo
set RS7 = MyConn.Execute(strSQL1)
End if
****the above code is what i use to update the database****
<Select name ="Employees4Team" SIZE=10 MULTIPLE
<OPTION VALUE=""SELECTED></OPTION>
<% ON ERROR RESUME NEXT
RS4.MOVEFIRST
DO WHILE NOT (RS4.EOF)
%>
<OPTION VALUE="<%=RS4("employeeno"%>" Name="<%=RS4("employeeno"%>"><%=RS4("firstname"%> <%=RS4("surname"%></OPTION>
<%
RS4.MOVENEXT
LOOP
RS4.CLOSE
%>
</select>
****the above code is the dropdown list with names******
************************************************************
what i am trying to do is select a name out of the dropdown box click on the add button refresh the page so that the name will be put into a second box. when i click on the add button the error message 'options' is not an object is displayed in the javascript part. please help if you can. it's driving me crazy.
thanks.
function addemployee(targ, selObj){
eval(targ+".location='AssignLMStatus.asp?EmployeeNo=" + selObj.options[selObj.selectedIndex].value + "&update=true&assign=true + <%=RS2("LineManager"%>'"
}
***the above code is used to refresh the page and pass items on the querystring***
<input type ="button" value=">>" ALIGN="TOP" onclick="addemployee('this' , 'Employees4Team')">
*** the above code is the input button that i click to make the function work*******
LineNo=request.querystring("LineManager"
update=request.querystring("Update"
If Update="true" then
strSQL1 ="Update employee set "
strSQL1 = strSQL1 & "LineManager=" & LineNo
strSQL1 = strSQL1 & " Where EmployeeNo=" & EmpNo
set RS7 = MyConn.Execute(strSQL1)
End if
****the above code is what i use to update the database****
<Select name ="Employees4Team" SIZE=10 MULTIPLE
<OPTION VALUE=""SELECTED></OPTION>
<% ON ERROR RESUME NEXT
RS4.MOVEFIRST
DO WHILE NOT (RS4.EOF)
%>
<OPTION VALUE="<%=RS4("employeeno"%>" Name="<%=RS4("employeeno"%>"><%=RS4("firstname"%> <%=RS4("surname"%></OPTION>
<%
RS4.MOVENEXT
LOOP
RS4.CLOSE
%>
</select>
****the above code is the dropdown list with names******
************************************************************
what i am trying to do is select a name out of the dropdown box click on the add button refresh the page so that the name will be put into a second box. when i click on the add button the error message 'options' is not an object is displayed in the javascript part. please help if you can. it's driving me crazy.
thanks.