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.
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!!
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 |
Parenthesis - a word, clause or even sentence which is inserted into a sentence to which it does not grammatically belong
Using Numbers: Counting, Place value, adding and subtracting, multiplying and dividing.
Code Academy - Exercise 1 - 11
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.