Hi,
I just started programming in javascript, and I'm having a problem passing variables between javascript and asp code in .asp page. Can you please help?
I've given the sample code below.
----------------------------------------------------------------------------------
<script src="http://www.aurumtech.com/domain_str.js"
type="text/javascript"></script> <script type="text/javascript">
var email_str = "joe@example.com"
var domain_str;
domain_str = stripEmail(email_str);
</script>
<script type="text/javascript">
var curdate = new Date()
var time_stmp = curdate.getTime()
</script>
<p>The domain is {display domain_str here}</p>
<p>The time stamp is {display time_stmp here}</p>
---- display above in html, not using javascript document.write, is that possible? ----
<%
DIM email_domain_str, time_stmp_str
email_domain_str = {domain_str value from the above javacsript}
time_stmp_str = {time_stmp value from the above javacsript}
%>
-------------------------------------------------------------------------
Thanks very much.