problem in passing java script variable to asp page
When i use the following code thre are many problems with that.For the first time when i select something from the dropdown box, nothing is getting displyed and from the second time,data is being displayed in the textbox....but
immediately the web page is getting reloaded again and all the data is lost.
Please help me in this....
<%@ LANGUAGE="VBSCRIPT" %>
<TITLE>SVR StartDate Selection</TITLE>
<FORM method=post name=f1 ID="Form1">
window.location = 'svr_temp.asp?Campus=' + Campus;
if request.querystring("Campus") <> "" then
MYSQL2="Select distinct substring(collector_name,13,5) AS Code from svr_compare where substring(collector_name,1,4)= (select Collector_Code from CampCollCode where Division='"& request.QueryString("Campus")& "')"
Do While NOT MyRS2.EOF
str=str & "," & MyRS2("Code")
<TR id="hidden_Team_Auto" style="display:none;">
<TD align=left height="48">
<INPUT type=text name=TeamNumAuto maxlength=25 size=15 value= "<% =str %>" ID="Text1">
did you mean to post more than just this bit of code?
i am sorry i didn't get u.....what's your question?
Also, you haven't exactly explained what you are trying to do, and the form code (select, option html tags) are missing from your request, so we can't tell what you are doing.
Perhaps you can use AJAX or something?
code u have posted doesn't allow us to help u
i think it is copying error, because there are errors in the code (the page won't run with these errors) for example: the script tags are out of place etc
i have brains but sold it on ebay
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)