Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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.


Reply With Quote
  #4 (permalink)  
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
Reply With Quote
  #5 (permalink)  
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.





Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.