Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old 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
Default 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.
 
Old 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
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

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
 
Old 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
Default

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.


 
Old January 24th, 2005, 06:06 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old 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
Default

Thank you, Matt. It will be very helpful.

MCinar

Love all the creatures because of the creator.









Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX without server side script possible? suersh79 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 4 November 17th, 2006 01:55 AM
Server Side Data Passing AgentSmith ASP.NET 1.0 and 1.1 Professional 1 July 11th, 2006 05:03 PM
passing information from server-side script mcinar HTML Code Clinic 2 January 24th, 2005 04:42 PM
Passing proxy server information ActiveX control katsarosj VB.NET 2002/2003 Basics 1 May 13th, 2004 05:07 PM
The server side script is not send to the browser jaideepc ASP.NET 1.0 and 1.1 Basics 3 February 28th, 2004 12:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.