CIS 388 Internet Programming

Slides:



Advertisements
Similar presentations
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Advertisements

Essentials for Design JavaScript Level One Michael Brooks
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
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.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
HTML Markup language - controls appearance and content of a document Javascripts Various HTML tags.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Lecture Bells and Whistles. Ways to Enhance Websites Java Script and Java Sound and Video Flash XML (Extended Markup Language Database Connectivity Ecommerce.
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
Tutorial 10 Programming with JavaScript
Multiple Tiers in Action
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
JavaScript CMPT 281. Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
4.1 JavaScript Introduction
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
Introduction to JavaScript Kirkwood Continuing Education © Copyright 2014, Fred McClurg All Rights Reserved.
JavaScript Tabriz university Its September 1995.
JavaScript By: Louis Roselli & Michael Reynolds. Problem Domain JavaScript is programming code that can be inserted into HTML pages. JavaScript inserted.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
Introduction to HTML Tutorial 1 eXtensible Markup Language (XML)
Tutorial 10 Programming with JavaScript
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
JavaScript - A Web Script Language Fred Durao
Announcements Due dates extended: Project 1B—Wednesday by 10pm rule Thursday by 10pm Lab 5—Friday by 10pm Next week Labs 6/7—Tuesday by 10pm 11/19/2015D.A.
JavaScript Syntax, how to use it in a HTML document
Sahar Mosleh California State University San MarcosPage 1 JavaScript Basic.
JavaScript Defined JavaScript Basics Definitions JavaScript is an object-oriented programming language designed for the world wide web. JavaScript code.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
© 2000 – All Rights Reserved - Page 1 Introduction to JavaScript Programming Part One.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
JavaScript & Introduction to AJAX
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
Introduction to.
Module 1 Introduction to JavaScript
JavaScripts.
Web Basics: HTML/CSS/JavaScript What are they?
JAVA, JAVA Applets, and JavaScript
Introduction to Dynamic Web Programming
Chapter 5 Scripting Language
Test 2 Review Javascript
Tutorial 10 Programming with JavaScript
Lecture 11. Web Standards Continued
Section 17.1 Section 17.2 Add an audio file using HTML
Chapter 5 Scripting Language
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Introduction to JavaScript
JavaScript an introduction.
DHTML Javascript Internet Technology.
Of HTML, CSS and JavaScript
Introduction to JavaScript
DHTML Javascript Internet Technology.
JAVASCRIPT Pam Kahl | COM 585 | Spring 2010.
Tutorial 10 Programming with JavaScript
JavaScript Overview By Kevin Harville.
Tutorial 10: Programming with javascript
Introduction to JavaScript
Information Retrieval and Web Design
Introduction to JavaScript
Brief Look InTo JavaScript
Presentation transcript:

CIS 388 Internet Programming Javascript Part 1

What is Javascript? JavaScript (/ˈdʒævəˌskrɪpt/[5]) is a high-level, dynamic, untyped, and interpreted programming language.[6] It has been standardized in the ECMAScript language specification.[7] Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production; the majority of websites employ it, and all modern Web browsers support it without the need for plug-ins.[6] JavaScript is prototype-based with first-class functions, making it a multi-paradigm language, supporting object-oriented,[8] imperative, and functional programming styles.[6] It has an API for working with text, arrays, dates and regular expressions, but does not include any I/O, such as networking, storage, or graphics facilities, relying for these upon the host environment in which it is embedded.[7] (https://en.wikipedia.org/wiki/JavaScript) Javascript is a client-side scripting (programming) janguage Java and Javascript are NOT the same thing

Java vs Javascript Java is an Object Oriented Programming (OOP) language created by James Gosling of Sun Microsystems. JavaScript is a scripting language that was created by the fine people at Netscape and was originally known as LiveScript. JavaScript is a (very) distant cousin of Java in that it is also an OOP language. Many of their programming structures are similar. However, JavaScript contains a much smaller and simpler set of commands than does Java. It is easier for the average weekend warrior to understand.  (http://www.htmlgoodies.com/beyond/javascript/article.php/3470971)

Programing 101 Syntax – The syntax of a language is the structure and rules/commands of the language. The Syntax of javascript is similar to the java language Javascript has the same support for variables, programming methods/instructions and operators that most full-languages have.

Javascript Basics Javascript is NOT a markup language Javascript is a scripting language Does not need to be compiled Runs in a browser Variables in javascript are “Loosely typed” http://blog.jeremymartin.name/2008/03/understanding-loose-typing-in.html Javascript can be included in an HTML page with the <script> tag or in an external “.js” file. Javascript operates on the “Client-side” and not the server side.

What is Javascript for? Javascript allows for a dynamic webpage and user interaction. It is one of the 3 fundamental/foundational languages of the internet (HTML, CSS, Javascript) Javascript allows your page to update dynamically and update information on the page based on user input (ex. Mortgage calculator - http://www.hughcalc.org/msimple_js.html)

Hello World! Javascript “Hello World” Alert Box <!DOCTYPE html> <body> <script> alert('Hello, World!') </script> </body> </html>

Sample Javascript <!DOCTYPE html> <html> <body> <h1>Hello World!</h1> <button type="button" onclick="myFunction()">Set background image</button> <script> function myFunction() { document.body.style.backgroundColor = "#f3f3f3"; document.body.style.backgroundImage = "url('img_tree.png')"; } </script> </body> </html>

Javascript tutorial https://autotelicum.github.io/Smooth-CoffeeScript/literate/js-intro.html

Additional Resources W3 Schools Javascript tutorial: http://www.w3schools.com/js/ Javascript tutorials: http://www.htmlgoodies.com/primers/jsp/ https://www.sitepoint.com/javascript/ http://htmldog.com/guides/javascript/ https://youtu.be/fGdd9qNwQdQ?list=PLoYCgNOIyGACTDHuZtn0qoBdpzV9c327V https://www.youtube.com/watch?v=fju9ii8YsGs Javascript scripts and code resources: http://www.codeave.com/javascript/default.asp