ajax_lecture5 - Rapid Application Web Development Lecture...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Rapid Application Web Development Fall 2006 Dr. McDaniel Lecture 5: Coding Fundamentals (Intermediate JavaScript)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Agenda Introduction to JavaScript Objects Built-in objects (Date,String,Array) User defined objects New JavaScript functions setTimeout, clearTimeout Questions on Project 3 Virtual Greeting Card Generator Class Activity
Background image of page 2
JavaScript Review From your Ajax for Dummies reading, you should be comfortable working with the basics of JavaScript by now. Today, we’ll move towards a more comprehensive understanding of JavaScript as an OOPL . We’ll also cover a few additional timing functions that you may find useful when working with Ajax applications.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Understanding JavaScript Objects JavaScript is an object-oriented programming language. Objects allow us to use existing objects or to create our own. They allow us to make up our own types of variables! Properties are the values associated with an object, while methods are the actions that can be performed on objects. this is a special keyword that says to look inside the current object.
Background image of page 4
Creating Objects and Using Dot Notation To create a new instance of an object, you use the new keyword. To access the methods and properties associated with a given object, just type a dot (period) after the name of the object and then specify the name of the method or property. *In PHP, you use -> instead.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example Assuming this was run in October, the output here will be “9”. Anyone know why?
Background image of page 6
No output and an error!
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/30/2011 for the course DIG 3930 taught by Professor Staff during the Spring '11 term at University of Central Florida.

Page1 / 41

ajax_lecture5 - Rapid Application Web Development Lecture...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online