1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net 413-586-9668 -

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Lecture plan Information retrieval (from week 11)
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
DT228/3 Web Development WWW and Client server model.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
1 Chapter 12 Working With Access 2000 on the Internet.
PHP (2) – Functions, Arrays, Databases, and sessions.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
DT211/3 Internet Development Application Internet Development Application.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Multiple Tiers in Action
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
Guide To UNIX Using Linux Third Edition
Session Management A290/A590, Fall /25/2014.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
1 More JavaScript, HTML Forms, CGI Scripts Tom Horton Alfred C. Weaver CS453 Electronic Commerce.
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
Web to Database Connectivity Tools Frank Cervone Assistant Director for Systems DePaul University Libraries Access ‘98 October 3, 1998.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
JAVASCRIPT HOW TO PROGRAM -2 DR. JOHN P. ABRAHAM UTPA.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Server-side Scripting Powering the webs favourite services.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Chapter 8 Cookies And Security JavaScript, Third Edition.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Architecture of the web Client Server retrieved or generated web page.
ITCS373: Internet Technology Lecture 5: More HTML.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing.
Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing.
WEB SERVER SOFTWARE FEATURE SETS
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
Section 10.1 Define scripting
PHP / MySQL Introduction
Introduction to Internet Programming
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Architecture of the web
Presentation transcript:

1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net

2 Day 2 outline n Database Connectivity overview n Calendar Example n Lab work on your web sites –Mixed with discussion of JS Language –and individual review of assignment

3 Browser Text Rendering Engine Client/Server - What is it ? Web Server HTML file transfer

4 Browser Text Rendering Engine Programming Language(s) Client/Server - Programmable Web Server HTML file transfer CGI External Program

5 Browser Text Rendering Engine Programming Language(s) Client/Server - Programmable Forms: 1) GET - on URL 2) POST - stdin Socket: To data server process

6 CGI: Common Gateway Interface n Based on passing form contents to program outside the web server. n Fields on forms are only HTML controllable information n Hidden fields are used to pass NON-user entered information.

7 CGI Data Passing to program n GET: –Information on URL of next page –Easy to bookmark n POST: –Passed as into to program –Not visable –Can NOT be bookmarked

8 CGI returning data n CGI Program creates a new web page n Page created totally by the program. n Program ‘populates’ template with meaningful data n Template written in HTML like statements n XML

9 Server Template <HTML><table> Col one Col 2 Col one Col 2 [col1] [col2] [col1] [col2] </table></HTML>

10 Programmable Socket n Client side applet opens socket to server n Only server allowed is one applet was loaded from - (security sandbox) n Socket is two way connection. n Program on client asks/sends info to server n Server is usually a custom data server or standard interface to a database.

11 Data Server n Can Custom code or standard method n Standards: –ODBC - Open data base connector (MS) –JDBC - Java DB connector (SUN) –All requests done using SQL n Connector talks to Database server n JS can call Java applet or JavaBean to provide logic

12 SQL - Standard Query Language n Embedded Language –Built on top of a standard language n A Database consists of a group of Table n Each Table has Row and Columns n Each Column is a specific data element n Each Row is a record of data elements that group together n Each Row has a unique Identifier n Tables are in ‘Third Normal Form’ (kinda)

13 Sample SQL Database n Table: Students –Columns: Student ID, Name, DOB, Major –One Row per student n Table: Classes –Columns: Class No, Room, Time, Grade Level –One Row per Class n Table: Attendence –Columns: Class No, Student ID –One row per student per class

14 Using Existing Scripts: Objects n Window –Document »Anchor, Applet, Area »Form: Form elements »Image, Link –History –Location

15 Built-in Objects, Data and Events n Properties: –Data of an object n Methods: –Actions on an object n Naming: –Property: Object.property.subproperty –Method: Object.property.subproperty()

16 Programming techniques n Basic Logic Flow –Variables: literal, ‘var’ –Objects: ‘new’, no inheritance –if/then/else –Loop: »for, while, for … in »Break, Continue –Functions n Expressions

17 Finding Javascript programs n Archives: –Javascript.com –See Class notes –Check Search engines n Books: –Get with Cdrom or disk, so don’t have to retype n Pages you like n Ownership and Copyright

18 Homework n Find a script that fits into your site design n Create a test page using that script n Define what about the script needs changing n Change if you can, in any case, send: –A description of the purpose of the script –The URL of where you found it. – The web page using it, as far as you have done. n me the page only Text or HTML.

19 Cookie manipulation n Remember information from prior visits n Carry “State” information between sessions –Order in process –Credit approved n Get information set by server for local use

20 Day 2 - Digging into JS n n Javascript programming: n n Controlling Browser Objects: n n Programming tools: n n Lab: – –Special Calculators – –Reminder Calendar

21 Day 3 - Going beyond JS n n Integration: n n Operations: n n Database operations with JS n n Lab: – –Events Database with calendar display