Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 11-02-2002, 12:47 AM ASP and VBScript
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Hi,

I have read numerous articles that mention that VBScript works well with ASP. Knowing that VBScript is a client-side scripting language that is supported only by IE, and that ASP is a server-side scripting language designed for Microsoft's IIS, I am a bit confused by what this means. Could someone please clarify how VBScript works with ASP?
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-02-2002, 12:58 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
I am not sure how to explain it, but basically ASP is not a language itself. As you probably know it stands for Active Server Pages. These pages may be written in server-side VBScript or server-side Javascript. Server-side vbScript actually came before client-side I beleive, and they are both from the same language specs I beleive except client-side is heavily restricted due to security issues. Javascript is the same way, heavily restricted on the client-side and open on the server-side.

Just did a quick search, haven't read this link but this might be more info: http://www.greenvertigo.net/greenver.../asp/asp01.php

-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 11-03-2002, 09:59 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Hi dk01,

Thanks for your response! I think I have a bit better understanding now. I just have one more question:

I have found that there are quite some objects/methods that do not look a thing like VBScript. I'm just totally confused, since I thought this was supposed to be the same thing as VBScript?

For example:

Code:
<%@ Language=VBScript %> 

<HTML> 

<HEAD> 

<TITLE>Example 1</TITLE> 

</HEAD>

<BODY bgcolor=Lime aLink=DarkTurquoise> 

<P> </P> 

<%  Response.Write("Hello, world!")  %> 

</BODY> 

</HTML>
Response.write would not be valid in VBScript. It should be Document.write. Could you please explain this? Thanks!
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 11-05-2002, 02:36 AM
Abhishek Reddy's Avatar
Average Talker

Posts: 28
Location: New Zealand
Trades: 0
Response.write XYZ sends a response from the server to the client saying "print XYZ", where XYZ can be a string, variable or return-value function argument.

If you are familiar with PHP, this is much like the echo() function.

Server-side VBS has a much wider range of objects & methods available to it, which is what makes it so much less restrictive.

__________________

Please login or register to view this content. Registration is FREE

Moderator at
Please login or register to view this content. Registration is FREE
Abhishek Reddy is offline
Reply With Quote
View Public Profile
 
Old 11-06-2002, 02:07 AM
AhmedF's Avatar
Left for Better Places

Posts: 258
Trades: 0
Consider ASP VBScript a bit more ... relaxed.

Im exploring ASP myself these days ... re-coding www.CanadaHelps.Org with a team of like 7 others
AhmedF is offline
Reply With Quote
View Public Profile
 
Old 11-06-2002, 06:42 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Quote:
Originally posted by Abhishek Reddy
Response.write XYZ sends a response from the server to the client saying "print XYZ", where XYZ can be a string, variable or return-value function argument.

If you are familiar with PHP, this is much like the echo() function.

Server-side VBS has a much wider range of objects & methods available to it, which is what makes it so much less restrictive.

Hi Abhishek,

So are you saying that a whole new set of objects and methods (including Response.write) from ASP are added to VBScript when it becomes used as a server-side language? And these new objects/methods are then converted into the client-side VBScript equivalent?
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 11-06-2002, 07:22 AM
Abhishek Reddy's Avatar
Average Talker

Posts: 28
Location: New Zealand
Trades: 0
I'm assuming you're familiar with the client-server model (?)

Basically, yes to the first part - there are a whole new set of objects and methods available.

One disadvantage with server-side VBScript within ASP is that it is no longer able to interface with objects on the client side. For example, ASP/VBS cannot detect mouse events, like clicks on a button in a webpage.

So you do get a whole new set of objects/methods to play with, but a lot of the client-side flexibility is lost.

As to "conversion to client-side", nope. The code is executed and processed on the server, thus nowhere near the client. Only the resultant data is returned for the user agent to output.
__________________

Please login or register to view this content. Registration is FREE

Moderator at
Please login or register to view this content. Registration is FREE
Abhishek Reddy is offline
Reply With Quote
View Public Profile
 
Old 11-07-2002, 12:51 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Hi Abhi,

Thanks for the explanation! I understand now.

So when people say that VBScript can be used in ASP, they are referring more to the structure (For...Next, Do...Loop, etc.) rather than the specific objects and methods (like document.write).
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 11-07-2002, 09:16 AM
Abhishek Reddy's Avatar
Average Talker

Posts: 28
Location: New Zealand
Trades: 0
That's pretty much right on the mark.

Both server-side and client-side VBScript have their own unique libraries, but the core libraries are more or less the same.
__________________

Please login or register to view this content. Registration is FREE

Moderator at
Please login or register to view this content. Registration is FREE
Abhishek Reddy is offline
Reply With Quote
View Public Profile
 
Old 11-08-2002, 01:33 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Thanks!

I'm checking out the forums in your signature. They look great, by the way (very creative use of the vB template, I must say!). I've already registered and I will drop by and add a few posts soon.
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 11-08-2002, 03:04 AM
Abhishek Reddy's Avatar
Average Talker

Posts: 28
Location: New Zealand
Trades: 0
Glad I could be of assistance.
__________________

Please login or register to view this content. Registration is FREE

Moderator at
Please login or register to view this content. Registration is FREE
Abhishek Reddy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP and VBScript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42897 seconds with 12 queries