CSC318 – WEB APPLICATION DEVELOPMENT

Slides:



Advertisements
Similar presentations
SQL CREATE, INSERT, UPDATE, DELETE
Advertisements

TECH 2018 (Week 16) Topic: JavaScript Parminder Kang Home: Phones Off Please.
Session 8 JavaScript/Jscript: Objects Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
1 Javascrbipt Intro Javascript (or js) is a programming language. Interpreted, not compiled. Not the same as java, but, similar. Use tags to use. Object-oriented.
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
Lecture 1 Term 2 9/1/12 1. Objects You normally use the “.” Operator to access the value of an object’s properties. The value on the left of the “.” should.
Tutorial 11 Working with Operators and Expressions
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ
Using Object-Oriented JavaScript CST 200- JavaScript 4 –
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
UNIT 3 DYNAMIC WEBSITES WITH CSS AND JAVASCRIPT. OBJECTIVES  CO4 Apply style to a website using CSS.  CO5 Describe the use of scripting when creating.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT
CSC318 – WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
The Web Wizard’s Guide To JavaScript Chapter 6 Working with Dates and Times.
Copyright ©2005  Department of Computer & Information Science Using Number & Math Objects.
1 JavaScript 1. 2 Java vs. JavaScript Java –Is a high level programming language –Is platform independent –Runs on a standardized virtual machine.
Introduction to JavaScript Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 1.
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer & Mathematical Sciences, Universiti Teknologi.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
JavaScript Syntax, how to use it in a HTML document
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
XP Tutorial 2 New Perspectives on JavaScript, Comprehensive1 Working with Operators and Expressions Creating a New Year’s Day Countdown Clock.
ECA 225 Applied Interactive Programming ECA 225 Applied Online Programming javascript dates.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
Tutorial 11 1 JavaScript Operators and Expressions.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
1. 2  This course introduces essential topics to the Internet Programming.  The design of interactive web pages with the elements of multimedia –hypertext,
JavaScript Tutorial. What is JavaScript JavaScript is the programming language of HTML and the Web Programming makes computers do what you want them to.
1 HTML & teh internets. 2 Contents JavaScript CSS Goal: Integrating knowledge.
>> Introduction to JavaScript
Chapter 6 JavaScript: Introduction to Scripting
Department of Computer Science
HTML & teh internets.
© 2015, Mike Murach & Associates, Inc.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Exam3 Review CSE111 B.Ramamurthy 7/28/2018 B.Ramamurthy.
Programming the Web using XHTML and JavaScript
SEEM4570 Tutorial 05: JavaScript as OOP
Java Script.
Scope, Objects, Strings, Numbers
JavaScript Arrays Date
WEB APPLICATION PROGRAMMING
Introduction to Programming the WWW I
JavaScript.
BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES
JavaScript Objects.
BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES
Exam3 Review CSE111 B.Ramamurthy 11/24/2018 B.Ramamurthy.
Introduction to JavaScript for Python Programmers
The Web Wizard’s Guide To JavaScript
Introduction to JavaScript
Tutorial 4 JavaScript as OOP Li Xu
JavaScript onLoad arrays
BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT
Page 535 Advanced Engineering Mathematics by Erwin Kreyszig
Pertemuan 13 JavaScript.
Radoslaw Jedynak, PhD Poland, Technical University of Radom
JavaScript is a scripting language designed for Web pages by Netscape.
Introduction to Programming and JavaScript
The Web Wizard’s Guide To JavaScript
Introduction to JavaScript
Partial Differential Equations
Presentation transcript:

CSC318 – WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES

Outline JavaScript Array & Objects JavaScript Array JavaScript Objects JavaScript Math Object JavaScript Date & Time Object FSKM UiTM Pahang  Page 2

Javascript Array Array What is an array? Temporary (storage|memory) of similar data Has 1 variable Store a group of data Text Numbers images FSKM UiTM Pahang  Page 3

Array Javascript Array Example <script type="text/javascript"> // declare an array var stud_name = new Array(); // assign values on stud_name array stud_name[0] = "Anwar"; stud_name[1] = "Azlin"; stud_name[2] = "Asmaa'"; stud_name[3] = "Ezatul Najwa"; stud_name[4] = "Fauziyah"; /* Another method var stud_name = new Array("anwar","azlin","asmaa"); */ </script> FSKM UiTM Pahang  Page 4

<script language="javascript"> // create js object JavaScript Objects Basic Object in JavaScript <script language="javascript"> // create js object var person = new Object(); // assign values to object properties person.fullname = "Harun Salim Bachik"; person.age = 45; person.gender = "Male"; </script> FSKM UiTM Pahang  Page 5

JavaScript Objects JavaScript Math Object JavaScript provides four mathematical functions. Some of them are: random(): return a random number between 0 and 1 round(): round a number to the nearest integer max(x, y): return larger number between x and y min(y, y): return smaller number between x and y pow(x, y): return xy To use all the functions, it must starts with Math.<math_function> FSKM UiTM Pahang  Page 6

JavaScript Objects JavaScript Math Object <script type="text/javascript"> document.write(Math.random()); document.write("<br><br>"); document.write(Math.round(45.2)); document.write("Max is: " + Math.max(14, 7)); document.write("Min is: " + Math.min(14, 7)); document.write("10<sup>10</sup>: " + Math.pow(10, 2)); </script> FSKM UiTM Pahang  Page 7

JavaScript Objects Javascript Date & Time Object <script language="javascript"> var now = new Date(); var day = now.getDate(); var month = now.getMonth() + 1; var year = now.getYear(); if(year < 1000) year = year + 1900; var fullDate = day + "/" + month + "/" + year; document.write("Today's date is: " + fullDate); </script> FSKM UiTM Pahang  Page 8

JavaScript Objects Javascript Date & Time Object <script language="javascript"> var now = new Date(); var hour = now.getHours(); var minute = now.getMinutes(); var second = now.getSeconds(); document.write("Current time is " + hour + ":"); document.write(minute + ":"); document.write(second); </script> FSKM UiTM Pahang  Page 9

Question? FSKM UiTM Pahang  Page 10 10

Bibliography (Website) Bibliography (Book) Knuckles (2001). Introduction to Interactive Programming on the Internet using HTML & Javascript. John Wiley & Sons, Inc. http://www.w3schools.com/js/default.asp http://www.javascriptkit.com/jsref/math.shtml Bibliography (Website) FSKM UiTM Pahang  Page 11 11