Passing information from server-side script
Hi All,
I am trying to pass information from server-side script to
client-side script and back again.
I am also using both "JavaScript" and "VBScript".
I need to use both scripts.
Here is my code;
<%@language = "VBScript"%>
<% option explicit %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
' Declare local variables
dim lngCorpID
%>
<html>
<head>
<title>Advanced ComboBox Test</title>
<script language="javascript">
function company_list(strType)
{
alert(strType);
}
</script>
</head>
<body>
<script language="javascript" runat="server">
var strType = "A";
company_list(strType);
</script>
</body>
</html>
And when I run this page, I get the following error;
Error Type:
Microsoft JScript runtime (0x800A138F)
Object expected
/MC_DirectBilling/Advanced_ComboBox.asp, line 33
Thanks for your help,
MCinar
Love all the creatures because of the creator.
:)
__________________
MCinar
Love all the creatures because of the creator.
|