B
Brian
Hi All,
Can someone please point me in the right direction I am having problems
combining JS and ASP. What I am trying to do is store in a database using
ASP the referring page of my visitors. I got the ASP working great and when
I use the document.referrer in an alert it works too, but when I try to
combine the 2 languages that is when I get an error that I cannot fix. Here
is the code fragment that is not working:
rs("ReferPage") = %> document.referrer <%
I have tried this as well :
rs("ReferPage") =%> <script language="javascript"
document.referrer></script> <%
Both the code fragments are embedded in the head of the asp page hence the
%> and <%.
I am probably missing something very basic but I am at a loss to think what
it could be. I have done some searching and could not find a suitable
tutorial. The only one I found talked about using an include file. Any
help would be welcomed.
Brian
Can someone please point me in the right direction I am having problems
combining JS and ASP. What I am trying to do is store in a database using
ASP the referring page of my visitors. I got the ASP working great and when
I use the document.referrer in an alert it works too, but when I try to
combine the 2 languages that is when I get an error that I cannot fix. Here
is the code fragment that is not working:
rs("ReferPage") = %> document.referrer <%
I have tried this as well :
rs("ReferPage") =%> <script language="javascript"
document.referrer></script> <%
Both the code fragments are embedded in the head of the asp page hence the
%> and <%.
I am probably missing something very basic but I am at a loss to think what
it could be. I have done some searching and could not find a suitable
tutorial. The only one I found talked about using an include file. Any
help would be welcomed.
Brian