week 5

Characteristics of scripting languages: nature of language eg object oriented, event driven; objects;





 

methods; handling events; hiding scripts; security issues eg reading, writing, client files, opening/closing

Event Handlers 

Event handlers are functions that enable events to be executed. An event handler would be triggered when the actual event is performed, e.g if a user clicks a button, the event handler ‘onClick’ would be triggered and would then allow certain code to be executed which is related to the event, i.e an alert box would appear after the button (onclick) has been clicked by the user.

Hidden and Hiding Scripts

 Older browsers may not be compatible with JavaScript and cannot recognise the scripting language when this happens it is likely to cause errors in the web browser, this can be avoided by including the following code 
 

 

Older web browsers would be able to read the code and successfully ignore everything if not compatible with it, newer browsers will ignore the compatibility tags and just read the script tags, meaning the JavaScript language would be able to be read successfully. 

user windows, reading information; including scripts inside HTML

 

1. Getting Started with Programming 1 - 11

 

Understand what JavaScript is and what its used for

• Understand and create comments

• Demonstrate basic mathematical operations

• Understand and create confirm and prompt dialogs

• Understand data types in JavaScript: strings, numbers and Booleans

L1 programming AL

L1 algorithms AL

L2 data.

Our Class developed Website so far

See the Pen VvMBGE by james farrington (@jamesfarrington) on CodePen.

 


Follow the leader. Using the HTML editor of your choice (preferably not Dreamweaver) follow the instructions of the creation of a simple DIV web page.

 


Now that you have had some guidance to the creation of a simple template, use the websites of w3Schools and CSS-Tricks to extend your template. Remember to keep saving, and, CHECK YOUR CODE FOR MISTAKES!!

 

 

 

 


Last Updated
2018-04-16 13:27:00

Links to Learning Outcomes

Links to Assessment criteria

LO2 Understand the fundamentals of scripting languages

 

P3 explain the fundamentals of a scripting language

M2 discuss how a scripting language can improve functionality

D1 explore how web pages using scripts are implemented in different browsers



English

Parenthesis - a word, clause or even sentence which is inserted into a sentence to which it does not grammatically belong


Maths

Using Numbers: Counting, Place value, adding and subtracting, multiplying and dividing.



  1.  Describe how a variable is defined and obtains an initial value.
  2. Create syntactically correct scripts to:
    1. add two numbers together
    2.  multiply two numbers together
    3. check if an amount is greater than the other
    4. check if two amounts are equal.



How 2's Coverage

Just a Minute - At the end of the lesson teachers ask learners to summarise their learning. The comparison of these summaries against learning objectives informs planning.



0

Files that support this week

MTA Powerpoint 8 Javascripts

 


| | | | |
Week 4
Prev
Week 5
Prev
Week 6
Prev

Next

Next
Webmaster Spelling Notifications