|
 |
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

January 23rd, 2005, 08:05 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , NY, USA.
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|

January 24th, 2005, 12:06 AM
|
Friend of Wrox
|
|
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is a Classic ASP forum. Repost your query in appropriate forum to get some response.
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com
|

January 24th, 2005, 11:24 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , NY, USA.
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Hi Vadivel,
I am using classic ASP. This is only a small test page.
I am trying to access server-side script variable from "JavaScript" to use it in client-side script of "VBScript".
Thanks for your reply,
MCinar
Love all the creatures because of the creator.
|

January 24th, 2005, 06:06 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
mcinar
It can be wise to search the forum before posting 'sharing a server-side variable with client-side'. Check out this thread, exactly what youre looking for in great detail:
http://p2p.wrox.com/topic.asp?TOPIC_ID=11765
Wind is your friend
Matt
|

January 24th, 2005, 10:34 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , NY, USA.
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thank you, Matt. It will be very helpful.
MCinar
Love all the creatures because of the creator.
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |