eee
1.1 Features of JavaSoript
Object Name, Property, Mettiod, Dot Syntax, Main Event
1.2
1.3 Values and Variables.
4.4 Operators and Expressions ~ Primary Expressions, Object and Array Initilizers, Function Definition
Expression, Properly Access Expressions, Invocation Expressions.
else, if. elseif, Nested if Statement.
4.5. If Statement, if.
4.6 Switch... Case Statement.
1.7 Loop Statement ~ for Loop, for.
Querying and Setting Properties and Deleting Properti
Loop, while Loop, do...while Loop, continue Statement.
Property Getters and Setters.
‘Array - Declaring an Array, Initializing an Array, Defining an Array Elements, Looping an Array, Adding
an Array Element, Sorting an Array Element, Combining an Array Elements into a String, Changing
Elements of an Array, Objects as Associative Arrays.
Function - Defining a Function, Writing a Function, Adding an Arguments, Scope of Variable and
24
22
Arguments.
Calling a Function — Calling a Function With or Without an Argument, Calling Function from HTML,
Function Calling another Function, Returning the Value from a Function.
String — Manipulate a String, Joining a String, Retrieving a Character from given Position, Retrieving a
Position of Character in a String, Dividing Text, Copying a Sub-string, Converting String to Number and
Numbers to String, Changing the Case of String, Finding a Unicode of a Character — charCodeAt(),
fromCharCode().
23
24
Building Blocks of a Form, Properties and Methods of Form, Button, Text, Text Area, Checkbox, Radio
3.4
Button, Select Element.
3.2 Form Events - Mouse Event, Key Events.
3,3. Form Objects and Elements.
3.4 Changing Attribute Value Dynamically.
3.5 Changing Option List Dynamically.
3.6 Evaluating Checkbox Selection.
8.7. Changing a Label Dynamically.
Manipulating Form Elements.
Intrinsic JavaScript Functions, Disabling Elements, Read Only Elements
Yalue, Creating a Cookies
Basic of Cookies, Reading 4 Cookie Value, Writing a Cook
200kies, Setting the Expiration Date of Cookie.
Opening a Window, Giving the New Window Focus, Window Position, Changing the Conter
19 a Window, Sorolling a Web Page, Multiple Windows at Once, Creating @ Web Pag
jo endasin Hole lavaSerint Securily, Timers, Browser Location and History.
Scanned with CamScanner{Create object to solve the given problem, é a =a]
Develop JavaScript to implement the switch-case statement for the given problem
Develop JavaSeript to implement loop for solving the given iterative problem.
{Display properties of the given object using getters and setters
©) Develop program using basic features of JavaScript for the given problem.
To understand Basic Concepts of JavaScript
© To learn Variables, Expressions, Operators, Loop Statement etc, in JavaScript
.¢_-Xcript is a small piece of program that can add interactivity to the website. For example, a script
could generate a pop-up alert box message, or provide a dropdown menu. This script could be
JavaScript or VBScript.
* Ascript language is a simple programming language with which you can write scripts. A scripting
language is a form of programming language that is usually interpreted rather than compiled.
* Conventional programs are converted permanently into executable files before they are run. In
contrast, programs in scripting language are interpreted one command at a time.
* Scripting languages are often written to facilitate enhanced features of Web sites. These features are
processed on the server but the script in a specific page runs on the user's browser.
* JavaScript, Jscript, Perl, PHP, Python, VBScript are the most popular examples of scripting
es,
Scanned with CamScanner1, Client Side Scripting: ne
« Inclient side scripting the environment used to run scripts is @ Be ae is transferred from the Web
‘= The processing takes place on the end users computer. The source FS oy,
server to the user’s computer over the internet and run directly in the
‘* The process with client side scripting is given below (See Fig: 1.2): fa web site
Step1 : The web browser sends a request for a particular web page °
hosting that site. web pages for the Web site,
Step2 : The webserver searches for the page in directory containing va ofthe web Page
Step3 : On finding the requested page, the web server collects the H™ hh then parses it to devel,
Step 4: The web server sends the HTML to the requesting browser whic
the visual presentation of the page.
* Soclient side scripting is used
to make Web pages change
after they arrive at the
browser.
+ It is useful for making pages a
dit more interesting and user-
friendly.
* It can also provide useful
gadgets such’ as calculators,
clocks ete. but on the whole is
used for appearance and
interaction.
‘+ Fig. 12 shows concept of client
side scripting. Fig. 1.2: Client Side Scripting
The scripting language needs to be enabled on the client computer. Any language running on a client
device that interacts with a remote service is a client side language.
Examples of client side scripting languages are JavaScript (primarily), HTML*, CSS* etc.
e to the Wed serve,
Web site Directory
1/ htm Web pages —
hin
si ;
Advantages of Client Side Scripting:
( Allow for more interactivity by immediately responding to users’ actions.
(ii) Execute quickly because they don't require a trip to the server.
(ii) May improve the usability of Web sites for users whose browsers support scripts.
(iv) Can give developers more controlover the look and behavior of their Web widgets.
(v) Can be substituted with alternatives (for example, HTML) if users’ browsers do not suppor!
scripts.
(vi) Are reusable and obtainable from many free resources such as [Link] and
[Link].
Disadvantages of Client Side Scripting:
(i) Not all browsers support scripts, therefore, users might experience errors if no alternatives have
been provided.
(i) Different browsers and browser versions support scripts differently, thus more quality
assurance testing is required. <
(ii) More development time and effort might be required, (if the scripts are not i
s sera already available
(iv) Developers have more control over the look and behavior of their Web wid,
y jets; however,
usability problems can arise if a Web widget looks like a standard ft
anne 2 idge “ard control but behaves differently
_ 2, Server Side Scripting: :
x In server-side scripting the environment is used to runs a script is a web server.
~— - : Scanned with CamScannerBasia of JavaSeript Programming
" Gllant Side Scripting Language 13
‘The server is where the Web page and other content lives. The server sends pages to the user/client
‘on request.
+ The process of server-side scripting is given below, (See Fig. 13):
Step1: The web browser sends a request for a particular web page of a web site t
hosting that site. . a Se oace
Step 2 : The web server searches for the page in directory containing web pages for the website.
Web site Directory
«Dynamic Web pages. ————ri
geaeae
Step3 : On finding the requested page, the Web server collects the content, (code + HTML) of the
‘Web page.
Step5 : The HTML stream is sent back to the requesting browser which then parses it to develop the
visual presentation of the page.
‘The use of HTML forms or clever links allow data to be sent to the server and processed. The results
‘[Link]'s request is fulfilled by running a script directly on the web server to generate dynamic HTML
pages. This HTML is then sent to the client browser.
* It is usually used to provide
interface to databases or
Potrebbero piacerti anche
CSS 19 SUMn
Nessuna valutazione finora
CSS 19 SUMn
34 pagine
Unit-2 - CSS
Nessuna valutazione finora
Unit-2 - CSS
17 pagine
HTML 06
Nessuna valutazione finora
HTML 06
2 pagine
Appunti
Nessuna valutazione finora
Appunti
36 pagine
PHP 2
Nessuna valutazione finora
PHP 2
50 pagine
Java Script
Nessuna valutazione finora
Java Script
52 pagine
HTML5, CSS3, JavaScript, Ajax, JQuery - Programmare Per Il Web, Lato Client (Italian Edition)
HTML5, CSS3, JavaScript, Ajax, JQuery - Programmare Per Il Web, Lato Client (Italian Edition)
384 pagine
CSS CT
Nessuna valutazione finora
CSS CT
3 pagine
Css s-24
Nessuna valutazione finora
Css s-24
30 pagine
Java Script
Nessuna valutazione finora
Java Script
43 pagine
Java Script
Nessuna valutazione finora
Java Script
88 pagine
Javascript
Nessuna valutazione finora
Javascript
38 pagine
CSS Part 1
Nessuna valutazione finora
CSS Part 1
67 pagine
Java 1
Nessuna valutazione finora
Java 1
4 pagine
CSS Unit 3
Nessuna valutazione finora
CSS Unit 3
22 pagine
Lab2 CSS
Nessuna valutazione finora
Lab2 CSS
35 pagine
Appunti JS
Nessuna valutazione finora
Appunti JS
2 pagine