You are on page 1of 2

Assignment No.

9 :Client side scripting (Vbscript)

Title of Assignment: Develop a simple web based application using client side S cripting. (Vbscript) Relevant Theory / Literature Survey: (Brief Theory Expected) VBScript (Visual Basic Scripting Edition) is a scripting language derived from V isual Basic language. VBScript codes must be executed in VBScript host environments. IE (Internet Explorer) provides a VBScript host environment that allows you to d o client side scripting on Web pages. IIS (Internet Information Services) provides a VBScript host environment that al lows you to do server side scripting on Web pages. VBScriptunctions: Different types of built in functions are available in Vbscrip t like Built-in Math Functions Built-in Conversion Functions Built-in String Functions Built-in Date and Time Functions Built-in Array Functions Built-in Misc. Functions

To keep the browser from executing a script as soon as the page is loaded user can write a script as a function. A function contains some code that will be exe cuted only by an event or by a call to that function. Call a function from anywh ere within the page. Functions are defined at the beginning of a page in the <he ad> section.

Events : VbScript is used to create dynamic web pages. Events are actions that c an be detected by JavaScript. Every element on a web page has certain events, wh ich can be used to trigger JavaScript functions. For example onClick event of a button element is used to indicate that a function will run when a user clicks o n the button. Events are defined in the HTML tags. Examples of events: A mouse click A web page or an image loading Mousing over a hot spot on the web page Selecting an input box in an HTML form

Vbscript is generally used with programming with ASP.

Procedure:

Create an HTML form as per the requirement Identify the different events and write the script for different functions. 6. Call the required functions using suitable events in the form. Use browser to see the output. Conclusion: Studied functions and events available in Vbscript and how to write client side scripts.

You might also like