B118 Web Programming Session #9 Client/Server & Cookies April 5, 2004.

Slides:



Advertisements
Similar presentations
RP Designs Semi-Custom e-Commerce Package. Overview RP Designs semi- custom e-commerce package is a complete website solution. Visitors can browse a catalog.
Advertisements

LeadManager™- Internet Marketing Lead Management Solution May, 2009.
e-DMAS Consumer Web Order Entry (WEBOE8) An Enhancement For iSeries 400 DMAS from  Copyright I/O International, 2003, 2004, 2005 Skip Intro.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Cookies Purpose –Write information that lives after the browser exits –Keep track of form data submitted multiple times during a particular visit –Track.
Web-based Application Development Lecture 20 April 4, 2006 Anita Raja.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
An Overview of Database Access on the Web An Overview of Database Access on the Web Using ASP and Microsoft Database Technology Sheffield Hallam University.
XP Tutorial 9 New Perspectives on JavaScript, Comprehensive1 Working with Cookies Managing Data in a Web Site Using JavaScript Cookies.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
ASP.NET Programming with C# and SQL Server First Edition
SiS Technical Training Development Track Technical Training(s) Day 1 – Day 2.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Course Textbook: Build Your Own ASP.Net Website: Chapter 2
ITIS 1210 Introduction to Web-Based Information Systems Chapter 48 How Internet Sites Can Invade Your Privacy.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Cookies Set a cookie – setcookie() Extract data from a cookie - $_COOKIE Augment user authentication script with a cookie.
CHAPTER 12 COOKIES AND SESSIONS. INTRO HTTP is a stateless technology Each page rendered by a browser is unrelated to other pages – even if they are from.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
JavaScript, Fourth Edition
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Working with Cookies Managing Data in a Web Site Using JavaScript Cookies* *Check and comply with the current legislation regarding handling cookies.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
M1G Introduction to Database Development 6. Building Applications.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
Chapter 8 Cookies And Security JavaScript, Third Edition.
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
Regular Expression (continue) and Cookies. Quick Review What letter values would be included for the following variable, which will be used for validation.
ASP/ASP.NET: Tricks and Tips How to get Microsoft’s Programming Language to work for you By Wade Tripp Park University
12 Developing a Web Site Section 12.1 Discuss the functions of a Web site Compare and contrast style sheets Apply cascading style sheets (CSS) to a Web.
Chapter 6 Server-side Programming: Java Servlets
Cookies Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website it is required to maintain.
Section 12.1 Discuss the functions of a Web site Create a feedback form Compare and contrast option buttons and check boxes Section 12.2 Explain the use.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
Introduction to Client-Side Web Development Introduction to Client-Side programming using JavaScript JavaScript; application examples 10 th February 2005.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
Cookies and Sessions IDIA 618 Fall 2014 Bridget M. Blodgett.
Maintaining Application State MIS3502: Application Integration and Evaluation Paul Weinberg Presentation by David Schuff.
The Web Wizard’s Guide To JavaScript Chapter 7 Cookies: Maintaining State.
Visual Basic.NET Programming March 3, Agenda Questions / Discussion Cookies Project Work (Ends Around 9:00 PM) Demo's (15 minutes per team)
Web111a_chapt08.ppt HTML: Section 8 JavaScript CGI Programs (Server Side programs) Common Gateway Interface Run on server Communicate with user across.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
Cookies (continue). Extracting Data From Cookies Data retrieved from a cookie is a simple text string. While there is no specific JavaScript function.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
WEB SERVER SOFTWARE FEATURE SETS
Cookies. Cookie A cookie is a method for a Web server to maintain state information about users as users navigate different pages on the site, and as.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 13.
IS2802 Introduction to Multimedia Applications for Business Lecture 8: JavaScript and Cookies Rob Gleasure
Project 5: Customizing User Content Essentials for Design JavaScript Level Two Michael Brooks.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Office 365 Development July 2014.
© 2015, Mike Murach & Associates, Inc.
19.10 Using Cookies A cookie is a piece of information that’s stored by a server in a text file on a client’s computer to maintain information about.
PHP / MySQL Introduction
What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve.
Using Access to Implement a Relational Database
Web Systems Development (CSC-215)
HTML5 and Local Storage.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

B118 Web Programming Session #9 Client/Server & Cookies April 5, 2004

Tonight’s Agenda Administrative DHTML Order Form Validation Homework Assignment Client/Server & Cookies Intro to ASP.NET

Administrative Technical Topic Term project update Microsoft Visual Studio.NET Roadshow Job search tip: effective networking – 2978,00.asp (eWeek Labs: Break Out of Your Shell, 10/28/02 issue) 2978,00.asp Upcoming quizzes –11/12: chapters 9, 10, 11 –11/19: chapters 12, 13, 14 –No quiz tonight

Administrative – Technical Topic Comments on the requirements –One page summary (HTML format) for web posting Must include bibliography of your research sources Reference to a recent, relevant news article (industry trade article, NY Times, Wall Street Journal; not SJ Mercury) –Business focus: why should your employer care/be concerned about this?

Administrative – Term Project Database structure –Microsoft Access –Single table for each company (I’ll provide the design/template to you) Core modules: all are ASP.NET which I’ll provide –Catalog (by product) –Catalog (by store) –Catalog (by keyword) –Shopping cart review ASP.NET module you need to write: feedback form

DHTML Utilizes the objects, methods and properties of the web page (known as the document) Lets to you alter the web page when it’s being served up and respond to events Example code: –color-survey-array.htm –National Parks slide show –bEssentials order form

Order Form Validation Homework Assignment Due on 4/19: diskette + printout Enhancements –Data validation –Shipping & sales tax calculation –Optional: text alignment and read-only field protection Details on course website (see course calendar)

Order Form Data Validation

Client/Server & Cookies Needed to maintain state –Keeping track of information across web pages –JavaScript can’t share variable values across web pages or after the browser stops Somewhat controversial because of privacy issue concerns Used to serve as the basis for the shopping cart mechanism for the bEssentials project

Cookies - Overview Small file stored on user’s hard drive (location depends on the browser) Any web page can create a cookie Can be read only by another web page from the same Internet domain (or by the local user) Maximum # of characters = 2-4K Other limits on total # of characters per domain & total # of cookies

Cookies – Technical Details Access through the document object, cookie property (or document.cookie) –A string value containing five parts: 1.Cookie name & value 2.Cookie’s expiration date 3.Pathname of web page that created the cookie 4.Domain name of the server that created the cookie 5.Optional security parameter –Browser usually fills in the last three items

Cookies – Sample JavaScript Code Key code –document.cookie = {string value} + … + {string value} –document.cookie.split(“field_ deliminator”)[cookie_part] make-cookie.htm and read-cookie.htm

Intro to ASP.NET JavaScript can’t hide the source code from the user ASP (Active Server Pages) and ASP.NET generates HTML code on the server using VBScript or JavaScript/JScript. All the user sees is the final HTML product first.aspx, first(js).aspx, ForCounter.aspx –All on