Why don't you use location.href from javascript itself. If URL its constant, just use it from javascript and keep only data value in value os of option
<option value="<%=objRS("ProductNa
and in javascript
function doSel(obj)
{
for (i = 0; i < obj.length; i++)
if (obj[i].selected == true)
eval(obj[i].value);
}
location.href='existingRec
</script>
P.S. <%=%> asp tag will work in javascript
Main Topics
Browse All Topics





by: hongjunPosted on 2003-01-30 at 08:29:16ID: 7846842
Do this then me")%>' <%if request.querystring("str") =objRS("Pr oductName" ) then response.write "selected" end if%>><%=objRS("ProductName ")%></opti on>
<option value='<%=objRS("ProductNa
hongjun