VBScript. Introduction Visual Basic scripting language is client side scripting language. It is developed by Microsoft VBScript is subset of VB language.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

Java Script Session1 INTRODUCTION.
Copyright © 2001 by Wiley. All rights reserved. Chapter 13: Introduction to VBScript E-Commerce HTML Scripting VB Script Validation with VBScript Calculation.
Introduction to JavaScript
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
Languages for Dynamic Web Documents
JavaScript 101 Lesson 01: Writing Your First JavaScript.
1 Today: Introduction to ASP- Part 1 Explain the client/server architecture Explain Web-based client/server applications Understand the essentials of Active.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
CIS 375—Web App Dev II VBScript. 2 Introduction to VBScript VBScript is a light version of MS’s ____________. Example: document.write("Hello from VBScript!")
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Introduction to Active Server Pages
JavaScript with Input & Output Step 1: Use tags JavaScript Template.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Inline, Internal, and External FIle
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
PHP: Hypertext Processor Fred Durao
JAVASCRIPT HOW TO PROGRAM -2 DR. JOHN P. ABRAHAM UTPA.
4.1 JavaScript Introduction
MSSQL & ASP. Client-Server Relationship Client-Server Relationship HTML Basics HTML Basics Scripting Basics Scripting Basics Examples Examples.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
Scripting Languages.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
1 JavaScript 1. 2 Java vs. JavaScript Java –Is a high level programming language –Is platform independent –Runs on a standardized virtual machine.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
JavaScript Syntax, how to use it in a HTML document
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
Introduction to ASP.NET Please use speaker notes for additional information!
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
COMP403 Web Design JAVA SCRİPTS Tolgay KARANFİLLER.
VBScript Conditional Statements. Conditional Statements Very often when you write code, you want to perform different actions for different decisions.
CIS 375—Web App Dev II JavaScript I. 2 Introduction to DTD JavaScript is a scripting language developed by ________. A scripting language is a lightweight.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
CST336, Dr. Krzysztof Pietroszek Week 2: PHP. 1.Introduction to PHP 2.Embed PHP code into an HTML web page 3.Generate (output HTML) web page using PHP.
In God we trust Learning Java Script. Java Script JavaScript is the scripting language of the Web! JavaScript is used in millions of Web pages to improve.
JavaScript Dynamic Active Web Pages Client Side Scripting.
January 27, 2001ASP Basics1 Active Server Pages (ASP) Basics The client/server model Objects Forms Active Server Pages VBScript Lab and Homework.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Chapter 5: Intro to Scripting CIS 275—Web Application Development for Business I.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
JavaScript JavaScript ( Condition and Loops ). Conditional Statements If Statement If...else Statement if (condition) { code to be executed if condition.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
ASP Mr. Baha & Dr.Husam Osta  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
Web Basics: HTML/CSS/JavaScript What are they?
Javascript and Dynamic Web Pages: Client Side Processing
VB Script V B S.
Web Systems & Technologies
Introduction to Dynamic Web Programming
CIS 388 Internet Programming
Active Server Pages Computer Science 40S.
HTML & teh internets.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Florida Gulf Coast University
Nick Sims Scripting Languages.
JavaScript Loops.
Development of Internet Application 1501CT - Sara Almudauh
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Introduction to JavaScript
Introduction to JavaScript
The Web Wizard’s Guide To JavaScript
Javascript.
An Introduction to JavaScript
Introduction to Programming and JavaScript
Introduction to JavaScript
Presentation transcript:

VBScript

Introduction Visual Basic scripting language is client side scripting language. It is developed by Microsoft VBScript is subset of VB language Like JavaScript it is also run in web Browser But VBScript is only Supported by Internet Explorer

Example of VBScript VBScript Hello World! document.write ("Hello World!")

Output

More Example <html><body> alert('Hello VBScript!') alert('Hello VBScript!') </body></html>

Output

Using VBScript code The VBScript code can be placed in: – tag in the head – tag in the body – not recommended – External files, linked via tag the head Files usually have.vbs extension ‘ code placed here will not be executed! </script>

VBScript Variables dim name dim x x=5 name=“Aman” dim name(3) //Array in VBScript name(0)=“ABC” name(1)=“xyz” name(2)=“pqr”

Functions in VBScript Function myfunction() some statements End Function

Conditional Statements If i < 10 Then response.write("Good morning!") Else response.write("Have a nice day!") End If If i = 10 Then response.write("Just started...!") ElseIf i = 11 Then response.write("Hungry!") ElseIf i = 12 Then response.write("lunch-time!") ElseIf i = 16 Then response.write("Time to go home!") Else response.write("Unknown") End If

Conditional Statements d=weekday(date) Select Case d Case 1 response.write("Sleepy Sunday") Case 2 response.write("Monday again!") Case 3 response.write("Just Tuesday!") Case 4 response.write("Wednesday!") Case 5 response.write("Thursday...") Case 6 response.write("Finally Friday!") Case else response.write("Super Saturday!!!!") End Select

For Loop in VBScript For i = 0 To 5 response.write("The number is " & i &" ") Next Output The number is 0 The number is 1 The number is 2 The number is 3 The number is 4 The number is 5

Form Processing in VBScript VBScript Demo function calcSum() dim value1, value2, sum value1=(document.myForm.textBox1.value) value2=(document.myForm.textBox2.value) sum = value1 + value2 document.myForm.textSum.value=sum end function

Form Processing in VBScript 1st Number: 2nd Number: <input type="button" value=“Calculate" onclick="vbscript:calcSum()" />

Output