Candy
11-02-2001, 03:32 PM
Hi,
I am using ASP in my javascript and the page complains about the asp line
in my javascript.
<%
dim tempstring
tempstring = "hello everyone"
%>
It is:<SCRIPT language="javascript">
document.metadataform.metadatatext.value = "<?xml version='1.0'?>\r\n"
+ <%=tempstring%> ;
</SCRIPT>
It says its expecting a semicolon. I really thought that I have the syntax
correct...but it won't accept that ASP line.
Any Suggestion would be greatly appreciated.
Thanks,
CAndy
I am using ASP in my javascript and the page complains about the asp line
in my javascript.
<%
dim tempstring
tempstring = "hello everyone"
%>
It is:<SCRIPT language="javascript">
document.metadataform.metadatatext.value = "<?xml version='1.0'?>\r\n"
+ <%=tempstring%> ;
</SCRIPT>
It says its expecting a semicolon. I really thought that I have the syntax
correct...but it won't accept that ASP line.
Any Suggestion would be greatly appreciated.
Thanks,
CAndy