Browser and Server Models

Slides:



Advertisements
Similar presentations
Active Server Pages (ASP)
Advertisements

E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
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?
Maintaining State Between the Client and Server Internet Programming Using VBScript and JavaScript 9.
JavaScript and the DOM Les Carr COMP3001 Les Carr COMP3001.
4.01 How Web Pages Work.
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
Copyright 2007, Information Builders. Slide 1 Implementing On-Click Functionality With the HTML Layout Painter Larry J Braun Education Specialist June,
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
CIS 451: ASP Sessions and Applications Dr. Ralph D. Westfall January, 2009.
1 Chapter 12 Working With Access 2000 on the Internet.
JavaScript Forms Form Validation Cookies CGI Programs.
Javascript Document Object Model. How to use JavaScript  JavaScript can be embedded into your html pages in a couple of ways  in elements in both and.
JavaScript 101 Lesson 5: Introduction to Events. Lesson Topics Event driven programming Events and event handlers The onClick event handler for hyperlinks.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Web Application Development Vijayan Sugumaran Decision and Information Sciences Oakland University.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
Tips, Trick and Techniques for ASP Developers Atlanta ASP User Group Don Draper Draper Consulting, Inc.
Prevent Cross-Site Scripting (XSS) attack
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Active Server Pages (ASP) 1. 2 Introduction Active Server Pages (ASP) –Server-side text file –Processed in response to client request –Pages are processed.
 2004 Tau Yenny, SI - Binus M0194 Web-based Programming Lanjut Session 1.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
JavaScript II ECT 270 Robin Burke. Outline JavaScript review Processing Syntax Events and event handling Form validation.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
JavaScript, Fourth Edition
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Active Server Page - ASP in JavaScript 王金龍、陳彥錚 銘傳大學 資管系.
Christopher M. Pascucci Basic Structural Concepts of.NET Managing State & Scope.
ASP.NET Dynamic Styles Response and Request Objects.
Web Database Programming Week 7 Session Management & Authentication.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 8 Scott Marino.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
ASP Objects Active Server Pages (cont..) 1. 2 ASP : Objects ASP provides built-in objects for performing useful tasks that simplify web development.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP.NET P AGE O BJECTS.  Each ASP.NET page inherits the PAGE object  The PAGE supplies 3 built in objects:  REQUEST: All information passed to the.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Active Server Pages Session - 3. Response Request ApplicationObjectContext Server Session Error ASP Objects.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Server Object Server Object. The Server object represents a programmable interface to the HTTP service that provides a mechanism to administer and control.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
4.01 How Web Pages Work.
Jim Fawcett CSE686 – Internet Programming Spring 2014
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Computing with C# and the .NET Framework
In this session, you will learn to:
CS320 Web and Internet Programming Generating HTTP Responses
Active Server Pages (ASP)
Y.-H. Chen International College Ming-Chuan University Fall, 2004
ASP Explained By: Sarbjit Kaur.
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
Active Server Pages ASP.Net
The Request & Response object
ASP.
Client side & Server side scripting
Browser Engine How it works…..
Chapter 2 Interacting with the Customer
PHP and Forms.
4.01 How Web Pages Work.
Cookies A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer.
4.01 How Web Pages Work.
Introduction to JavaScript
Retrieving compound pages
Presentation transcript:

Browser and Server Models Jim Fawcett Internet Programming Summer 2001

Topics Web Programming Model Browser Model Server Model

Window Object Used to obtain information about: Summary the state of a browser window the document in a window Window events Summary Properties: parent, screenLeft, …. Methods: open, resizeBy, … Collections: frames Events: onError, onLoad, … Objects: event, document, external, screen, … Example: http://www.ecs.syr.edu/cse691/DHTMLex1.htm

Event Object Event objects provide information about events on a web page. Summary Properties: altKey, button, clientX, keyCode, … Methods: none Collections: bookmarks, (data) boundElements Events: none Example: http://www.ecs.syr.edu/cse691/DHTMLex2.htm

Document Object Represents the HTML document in a browser window Summary Properties: BGCOLOR, DIR Methods: attachEvent, createElement, … Collections: all, children, images, … Events: onclick, ondrag, … Example: http://www.ecs.syr.edu/cse691/DHTMLex3.htm

Form Object Used to collect and display user information, validate input, and send data to a web server. Summary Properties: action, firstChild, method, … Methods: submit, … Collectons: all, elements, … Events: onkeydown, onsubmit, … Example: http://www.ecs.syr.edu/cse691/DHTMLex4.htm

Application Object Share information between all users of your web site. Summary Properties: None Methods: Contents.Remove, Contents.RemoveAll, Lock, Unlock Collections: Contents, StaticObjects Events: OnEnd, OnStart

Request Object Retrieve information from the current user. Summary Access all information in the HTTP request. Used to extract data from a form or URL parameters. Summary Properties: Total bytes Methods: BinaryRead Collections: ClientCertificate, Cookies, Form, QueryString, ServerVariables Events: None Example: DHTMLex4.asp

Response Object Return information to the user’s browser. Summary Properties: Buffer, CacheControl, Charset, ContentType, Expires, ExpiresAbsolute, IsClientConnected, PICS, Status Methods: AddHeader, AppendToLog, BinaryWrite, Clear, End, Flush, Redirect, Write Collections: Cookies Events: None Example: http://www.ecs.syr.edu/cse691/ASPex2.asp

Server Object Determine server specific properties. Load ActiveX dlls Summary Properties: ScriptTimeout Methods: CreateObject, Execute, GetLastError, HTMLEncode, MapPath, Transfer, URLEncode Events: None

Session Object Saves information about the current user as cookies on the client machine. Summary Properties: CodePage, LCID, SessionID, Timeout Methods: Abandon, Contents.Remove, Contents.RemoveAll Collections: Contents, StaticObjects Events: Session_OnEnd, Session_OnStart

Server Component Objects Dictionary Object FileSystemObject Object AdRotator Component Browser Capabilities Component Content Linking Component ActiveX Data Objects

Dictionary Object Create Dictionary Object Set objDict = _ Server.CreateObject(“Scripting.Dictionary”) Add item: objDict.Add key, value objDict.Add “Name” “Jim Fawcett” objDict.Add “Employer” “Syracuse Univ” Size: objDict.Count Item: objDict.Item(key) Example: http://www.ecs.syr.edu/cse691/ASPex3.asp

FileSystemObject Object Create FileSystemObject: Set objFile = _ Server.CreateObject(“Scripting.FileSystemObject”) List Drives: For Each sDrive In objFile.Drives Response.Write sDrive & “ “ Get Drive: Set cDrive = objDrive.GetDrive(“C”) Get Root Folder: Set cRoot = cDrive.RootFolder List Files: For Each sFile In cRoot.Files Response.Write sFile & “<br />” Example: http://www.ecs.syr.edu/cse691/ASPex4.asp