473,573 Members | 4,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client & Server side scripting

Hi,

I have jsut started to learn ASP development and have read many
articles regarding which is the best to use regarding JavaScript or
VBScript. All of the learning that I have done so far has been using
VBScript.

I have done the usual database connection and querying stuff using
VBScript in my tutorials and have noticed that my code doesnt work
when using Mozilla Firefox as VBScript is a Micorsoft language and
will only work on IE.

My first quaestion is as this is the case, what is the point in me
learning VBScript as many people use other browsers other than IE thus
rendering my code useless?

Secondly, much of the information I have read when starting to learn
talks about ASP javascript: run at client side and ASP vbscript: run
at server side. Could someone please explain the difference to me
plase?

Many thanks,
Chris

Mar 16 '07 #1
1 3132
"Chris" <c.******@swans ea.ac.ukwrote:
>Hi,

I have jsut started to learn ASP development and have read many
articles regarding which is the best to use regarding JavaScript or
VBScript. All of the learning that I have done so far has been using
VBScript.

I have done the usual database connection and querying stuff using
VBScript in my tutorials and have noticed that my code doesnt work
when using Mozilla Firefox as VBScript is a Micorsoft language and
will only work on IE.
I think you're confusing client-side and server-side scripting. For
client-side script, you should certainly use JavaScript, for exactly
the reason you cite. If you use VBScript for your client-side script,
only IE will be able to use it. Write it in JavaScript, and you hugely
increase the odds that any browser will be able to run it.

Server-side script is a different matter. The browser never sees it,
does not have to deal with it, so it doesn't matter what language it's
written in. ASP can handle code written either in JavaScript or
VBScript. ASP is a Microsoft product, and VBScript is their baby. The
result is that nearly all ASP examples are given in VBScript, nearly
all ASP tutorials use VBScript, and nearly everybody that writes ASP
code does so in VBScript.
>Secondly, much of the information I have read when starting to learn
talks about ASP javascript: run at client side and ASP vbscript: run
at server side. Could someone please explain the difference to me
plase?
Client-side code runs in the browser. It's used for dynamically
hiding/showing parts of the page, checking fields in a form, making
things happen on the page when the user presses a button, zillions of
things

Server-side script, like ASP script, runs on the server. It can access
a database on the server, build pages dynamically. The result of
running a server-side script is an HTML document - possibly including
client-side script - that's sent to the user's browser.

Note: ASP is a server-side scripting platform. The script can be
written in JavaScript or VBScript (or, with the proper support, in
several other languages). There is no such thing as ASP code that runs
on the client.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls. gov
http://members.cox.net/slatteryt
Mar 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4322
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side vbscript reads the database and populates a listbox on the page with the first field from each record in the recordset. This works fine. - User...
5
2553
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server code put in server. Then web application should be a client-server application. My understanding is that a web application is an application that...
2
2039
by: cedced | last post by:
Hello, is it possible to access client files in VB.NET? What? I have doing that but it isn't good (VB.NET take file on pc server and not on pc client): (thanks) Dim fichier As StreamReader Dim name As String
4
3504
by: Bob T | last post by:
Hi All, I am trying to pass a variable from my VB asp.net script (from for example Sub Page_Load in mypage.aspx.vb) to my Client side script. I have found and looked at a very good example "Client and Server Scripting in Web Pages" but it only shows server side scripting that is written in HTML in mypage.aspx and not script from...
1
1659
by: Chris | last post by:
Hi, 1) is it possible for an asp-button control to execute client-side scripting as well ? 2) and for an HTML-server control ? I would like to execute client-side code , and then execute server-side code. Thnx
3
2609
by: Guy Debord | last post by:
Hello all, I know that this is a long shot, but I have a problem which someone reading this group *may* just be able to shed some light on. We have a new internal personnel planner/attendance system in place. It uses a web interface to allow members of staff to select their site location for any week, request leave and record absences. ...
5
13109
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called this kind of script "Server Side Java Script". I am in confusion because according to lots of web developer Java Script is a client side scripting...
35
315
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created using Perl on the backend, with Javascript providing limited frontend functionality. As an example, an expanding tree would be fully populated on the...
0
7741
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7730
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8028
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6349
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2164
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1263
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.