Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: Introduction to Scripting
Description: Brief bulleted points taken over several weeks on the history of the internet and the implementation of JavaScript

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


5th Sept 2015


The internet is a network of networks



World Wide Web is an information sharing model built on top of the
internet consisting of a collection of web pages



A web page is an electronic document



A website is a collection of related webpages



A client requests services/information
...




The software determines whether a computer is a client or a server



A browser is a client software that fetches information from a web server



A protocol is a rule that governs the communication between devices over
a network



A domain is an address to a website



IP address uniquely identifies a device on a network



A DNS consists of a list of registered domain names with their
corresponding IP address
...
All statements must be terminated with a semicolon

12th Sept 2015


A web application is a program; a functional website



JS is a scripting language which is a lightweight programming language



JS does not have direct access to a file system, nor does it talk to a
database directly unless using AJAX



JS can only be embedded or executed in a web page



Divided into 2 categories: client side or server side



Client side - executed by a browser



Server side - executed by a web server



JS is a client side scripting language because it is executed by a browser
...
It must be terminated by a colon



A variable is a memory location that stores a single value



Variables are important because you can refer to them at a later time



Data types - classification of data that indicates the type of data stored



JS data types: String, number, boolean, undefined, null



JS is a loosely typed language because it does not adhere to strict
programming rules



A reserved word has a specific meaning or purpose



Comments are used to document in a program



The word "continue" forces the continuation of a particular iteration

26th Sept 2015
Saturday, 26 September 2015
1:49 PM


DOM – Document Object Model is not a programming language,
is not a part of JavaScript
...




Document- web page; Object – individual pieces; Model – agreed
upon rules (diagram)



JS sees webpage as a hierarchical tree of objects



Node can either be an element, an attribute or a text in a DOM
tree



For a node to be an element, it must be a tag



An attribute node is drawn to the left hand side of the element
node



Every component is called a node



Inner HTML is a property of the DOM tree that refers to
everything under a particular element node



JS, via DOM, can access any element on a web page



getElementById() – allows JS to access an individual item
...
Always return only
one object
...
Always return an array object with several
elements



getElementsByName() – Groups elements
...
Always return an array object with several
elements



getElementsByClassName() – Groups elements
...
Always return an array object with several
elements



A method is a function that is attached to an object
...
A function is a set
of executable code
...
getElementById("loanAmt")
...
cssproperty = value;

Document
...
style
...
test() - accepts a string argument, returns true



^ - denotes the start of a string




If using both symbols example regE=/^abc$/; , then the String will only be
true if it is only "abc"


What is a web stack?
You must know about:


Operating System



Web server



DBMS



Server side scripting language

This is important for compatibility

1st Nov 2015
Sunday, 1 November 2015
9:01 AM


Regular expressions are a sequence of characters that defines a pattern



Purpose of regular expressions is for pattern matching




...
test(text) == true)
{
alert("Matches pattern");
}
else
{
alert("Doesn't match pattern");
}





$ - denotes the end of a string



[] denotes a range of characters