Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Development & Design Foundations with XHTML Chapter 11 Key Concepts.

Similar presentations


Presentation on theme: "Web Development & Design Foundations with XHTML Chapter 11 Key Concepts."— Presentation transcript:

1 Web Development & Design Foundations with XHTML Chapter 11 Key Concepts

2 What is Java? Object Oriented Programming (OOP) Developed by Sun Microsystems Java is not the same language as JavaScript. Java is more powerful and much more flexible than JavaScript. Java can be used to: ◦ develop stand-alone executable applications ◦ applets that are invoked by Web pages. 2

3 Java Applets Compiled -- translated from the English- like Java statements to an encoded form called Byte Code. Use the “.class” file extension Java Virtual Machine (JVM) ◦ interprets the byte code into the proper machine language for the operating system ◦ After translation, the applet is executed and appears on the Web page. 3

4 Common Uses of Java Applets Navigation Bars and Buttons Image Effects Text Effects Games Web and Business Applications 4

5 Adding a Java Applet to a Web Page The applet tag ◦ A container tag ◦ Attributes:  code, codebase, height, width, alt, id Works together with tags ◦ Stand alone tags ◦ Attributes:  name, value The applets developer determines what, if any tags are needed. 5

6 Sample Code for a Java Applet <applet code=“myapplet.class" height=“50" width=“500“ alt=“Java applet: displays a moving logo with company name”> This Java applet displays a moving logo with the company name The sample applet is named myapplet.class and requires two parameters, bgColor and txtColor. 6

7 Hands-On Practice 11.5 Pages 446-8 Chapter11/java1.html

8 What is JavaScript? Object-based scripting language Manipulates the objects associated with a Web page document: ◦ the window ◦ the document ◦ the elements such as forms, images, hyperlinks, and so on 8

9 Common Uses of JavaScript Display a message box Select list navigation Edit and validate form information Create a new window with a specified size and screen position Image Rollovers Status Messages Display Current Date Calculations 9

10 Common Uses of DHTML Hiding and showing text Navigation Image Effects 10

11 Adding DHTML to a Web Page The code needed to add a DHTML effect to a web page will vary based on the desired effect – usually using a combination of CSS and JavaScript. The JavaScript tends to get complex because of the differences in the syntax required for different browser and browser versions. It is a good idea to become comfortable with CSS and JavaScript before tackling DHTML. 11

12 What is Ajax? Asynchronous JavaScript and XML “Ajax” – Jesse James Garrett at Adaptive Path Existing technologies used in a new way  Standards-based XHTML and CSS  Document Object Model  XML (and the related XSLT technology)  Asynchronous data retrieval using XMLHttpRequest  JavaScript Very Basic Example: ◦ http://webdevfoundations.net/css

13 Where is Ajax used? Flickr ◦ http://www.flickr.com Del.icio.us ◦ http://del.icio.us Google e-mail ◦ http:/google.com/gmail

14 Multimedia & Accessibility Provide links to plug-ins Provide text descriptions and captions Verify keyboard access Check for screen flickering Verify functionality if JavaScript is disabled If media is used for main navigation, provide plain text links


Download ppt "Web Development & Design Foundations with XHTML Chapter 11 Key Concepts."

Similar presentations


Ads by Google