Example. Represent this as XML

Similar documents
The purpose of jquery is to make it much easier to use JavaScript on your website.

jquery Tutorial for Beginners: Nothing But the Goods

Overview. In the beginning. Issues with Client Side Scripting What is JavaScript? Syntax and the Document Object Model Moving forward with JavaScript

Programming in HTML5 with JavaScript and CSS3

Advantage of Jquery: T his file is downloaded from

Lecture 9 Chrome Extensions

Best Practices for Rich Media Ads in Asynchronous Ad Environments

Debugging JavaScript and CSS Using Firebug. Harman Goei CSCI 571 1/27/13

Web Development I & II*

Fast track to HTML & CSS 101 (Web Design)

CMSC434 TUTORIAL #3 HTML CSS JavaScript Jquery Ajax + Google AppEngine Mobile WebApp HTML5

MASTERTAG DEVELOPER GUIDE

Client-side Web Engineering From HTML to AJAX

Portals and Hosted Files

Chapter 12: Advanced topic Web 2.0

Whitepapers at Amikelive.com

Microsoft Expression Web

WEB DEVELOPMENT IA & IB (893 & 894)

Performance Testing Web 2.0

Learning Web App Development

Macromedia Dreamweaver 8 Developer Certification Examination Specification

Rich Internet Applications

Working with RD Web Access in Windows Server 2012

IT3504: Web Development Techniques (Optional)

A Model of the Operation of The Model-View- Controller Pattern in a Rails-Based Web Server

DIPLOMA IN WEBDEVELOPMENT

IT3503 Web Development Techniques (Optional)

Add Munchkin Tracking Code to Your Website

Upgrade to Microsoft Web Applications

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Selenium WebDriver. Gianluca Carbone. Selenium WebDriver 1

Data Visualization in Ext Js 3.4

Apple Applications > Safari

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

Selenium Automation set up with TestNG and Eclipse- A Beginners Guide

Performance Testing for Ajax Applications

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

Software Development Interactief Centrum voor gerichte Training en Studie Edisonweg 14c, 1821 BN Alkmaar T:

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

How to Create a Mobile Responsive Template in ExactTarget

IBM Script Portlet for WebSphere Portal Release 1.1

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

ACE: Dreamweaver CC Exam Guide

WebIOPi. Installation Walk-through Macros

Tutorial JavaScript: Switching panels using a radio button

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

Up and Running with LabVIEW Web Services

Notes on how to migrate wikis from SharePoint 2007 to SharePoint 2010

Web Development 1 A4 Project Description Web Architecture

Mobile development with Apache OFBiz. Ean Schuessler, Brainfood

Dreamweaver CS5. Module 2: Website Modification

IBM Script Portlet for WebSphere Portal

«W3Schools Home Next Chapter» JavaScript is THE scripting language of the Web.

IBM Digital Experience. Using Modern Web Development Tools and Technology with IBM Digital Experience

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Getting Started Guide

JISIS and Web Technologies

Short notes on webpage programming languages

Dreamweaver Tutorial - Dreamweaver Interface

Project 2: Web Security Pitfalls

HTML Forms and CONTROLS

Installing a Browser Security Certificate for PowerChute Business Edition Agent

FormAPI, AJAX and Node.js

Team Members: Christopher Copper Philip Eittreim Jeremiah Jekich Andrew Reisdorph. Client: Brian Krzys

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Developing ASP.NET MVC 4 Web Applications MOC 20486

AJAX The Future of Web Development?

Course Outline Basic Web Development

IMRG Peermap API Documentation V 5.0

place/business fetch details, removefromfavorite () function, 189 search button handler bind, B BlackBerry build environment

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Front-End Performance Testing and Optimization

WIRIS quizzes web services Getting started with PHP and Java

WP Popup Magic User Guide

From Desktop to Browser Platform: Office Application Suite with Ajax

Table of contents. HTML5 Data Bindings SEO DMXzone

Progressive Enhancement With GQuery and GWT. Ray Cromwell

Cross Site Scripting (XSS) and PHP Security. Anthony Ferrara NYPHP and OWASP Security Series June 30, 2011

GUI and Web Programming

Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.)

CLASSROOM WEB DESIGNING COURSE

Implementing Mobile Thin client Architecture For Enterprise Application

Boston University. Overview and Description: Instructor, Contact , Office Hours and Blackboard Site: Topic Coverage.

LAB MANUAL CS (22): Web Technology

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

If you see "Skip installation of the current version and test the currently installed version of Java" then select that hyperlink.

Syllabus INFO-UB Design and Development of Web and Mobile Applications (Especially for Start Ups)

Reliable Mitigation of DOM-based XSS

AppDev OnDemand Microsoft Development Learning Library

Checking Browser Settings, and Basic System Requirements for QuestionPoint

How To Customize A Forum On Vanilla Forum On A Pcode (Forum) On A Windows (For Forum) On An Html5 (Forums) On Pcode Or Windows 7 (Forforums) On Your Pc

Transcription:

Example INF 221 program class INF 133 quiz Assignment Represent this as XML JSON There is not an absolutely correct answer to how to interpret this tree in the respective languages. There are multiple ways to interpret what this tree means. "search engine" "Crossword puzzle" XML

Example

Interlude How does a web page work? http://www.ics.uci.edu/~djp3 Domain Names IP Addresses (IPv4 vs IPv6) DHCP vs static IPs Routing a request a web server What is a web page? What does a browser do? HTML and CSS http://www.codecademy.com/learn 3

User Interaction: Introduction to Javascript Assoc. Professor Donald J. Patterson INF 133 Fall 2013 4

Javascript w3schools Java Javascript Java and Javascript are not the same They unfortunately share the same name They are different in what they are designed to do They are different in how they came to be Java is more powerful and complex

Javascript w3schools JavaScript gives web designers a programming tool Simple syntax Supports putting "snippets" of code into web pages JavaScript can put dynamic text into an HTML page A JavaScript statement like this: document.write("<h1>" + name + "</h1>") can write the content of a variable into a web page JavaScript can react to events A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element

Javascript w3schools Here is the most confusing thing

Javascript w3schools An HTML web page is the data that javascript works with

Javascript w3schools but

Javascript w3schools An HTML web page is also where the javascript is stored

Javascript w3schools and

Javascript w3schools the web browser is constantly redrawing the HTML (DOM) as the Javascript changes it.

Javascript w3schools

Javascript w3schools Javascript can read and write HTML elements A Javascript can read and change the content of an HTML element JavaScript can be used to validate data A JavaScript can be used to validate form data before it is submitted to a server.

Javascript http://www.w3.org/dom/ The data structure that is rendered by the browser is called The DOM Document Object Model is a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure and style of documents. The document can be further processed and the results of that processing can be incorporated back into the presented page.

Javascript get a Hello World running This eliminates errors related to your hosting provider and web set up It ensures that you have resources necessary on a web host Hopefully this was solved in Task 03

Javascript Let s put some Javascript in it <script> tag encloses javascript code that is run by the browser

Javascript document.write() when this command is run the parameter is inserted into the html document just like it was written there without any javascript Compare View Source and Inspect Element Review Google Chrome tools

Javascript JavaScripts in a page will be executed immediately while the page loads into the browser. This is not always what we want. Sometimes we want to execute a script when a page loads, or at a later event, such as when a user clicks a button. Scripts to be executed when they are called, or when an event is triggered, are placed in functions. TIP: Put your functions in one place (e.g., the head section), this way they are all in one place, and they do not interfere with page content or confuse you.

Javascript Javascripts can be put in the head and the body Multiple javascripts are fine

Javascript To reuse javascript in multiple different webpages store it in another file load it externally

User Interaction: jquery Assoc. Professor Donald J. Patterson INF 133 Fall 2013 22

jquery jquery A JavaScript Library Cross-browser Free (beer & speech) It supports manipulating HTML elements (DOM) animations event handling AJAX

jquery Getting access to jquery in our code You can t just write JavaScript that calls jquery You must load it From where? From your own machine http://jquery.com/ From someone else s machine From Google Why would you do this? http://code.google.com/apis/libraries/devguide.html Shortcut

jquery Loading jquery is just like loading a remote JavaScript

jquery Loading jquery is just like loading a remote JavaScript Step 6

jquery w3schools With jquery you select HTML elements in the DOM and perform actions on them Basic syntax is: $(selector).action() A dollar sign ($) is used to define jquery $(selector).action() = jquery(selector).action() A selector to "query (or find)" HTML elements A jquery action to apply to the element(s)

jquery w3schools <p class= foo >words</p> <p id= bar >more words</p> <p class= foo >even more words</p> <img class= foo /> Selection examples: multiple results $("p").hide() $(".foo").hide() $("p.foo").hide() single result $("#bar").hide() context dependent $(this).hide()

jquery w3schools Possible Actions: append content to a DOM element wrap content around a DOM element toggle the display of a DOM element attach a function that is run when you hover over a DOM element you can request data via the ajax pattern

jquery Loading jquery is just like loading a remote JavaScript Step 7

jquery Loading jquery is just like loading a remote JavaScript Step 8

jquery Loading jquery is just like loading a remote JavaScript Step 07_02

jquery

jquery Task 14 Present the data as a table http://www.w3schools.com/html/html_tables.asp HTML tables overview 3 primary tags <table> <tr> <td>

jquery Basic table <table> <tr> <td>