[thelist] Include JavaScript variables into ASP script
Latika Anand
latika.anand at HCT.AC.AE
Sat Jun 1 07:17:01 CDT 2002
--
--
[ Picked text/plain from multipart/alternative ]
Clear DayHi
I want to include JavaScript variables into ASP script.
The example is explained below:
<script language="JavaScript">
var arr = new Array();
arr[1]=navigator.userAgent;
arr[2]=navigator.appName;
arr[3]=navigator.appVersion;
</script>
Can we get the data from this array into the vbscript for inserting a
record?
<%'****Add tracking record
sql="insert into XXX values "
sql=sql & "('" & uagent & "','" & uapp & "','" & uappver & "')"
%>
where uagent is the value in arr[1], uapp is the value in arr[2] and uappver
is the value in arr[3].
Could somebody help me on this?
Thanks
Latika Anand
Student Services
Higher Colleges of Technology
Email: latika.anand at hct.ac.ae
--
[ Clear Day Bkgrd.JPG was deleted, please don't send attachments with your message. ]
--
More information about the thelist
mailing list