eCommerce Technologies Syntax & Procedures for Markup MIS 4453 -- Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

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?
Chapter 16 The World Wide Web.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Tutorial 6 Working with Web Forms
Electronic Commerce Web Servers & Related Concepts MIS Spring 2006 Instructor: John Seydel, Ph.D.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Creating a Simple Page: HTML Overview
Website Development & Management Introduction & Overview CIT Fall Instructor: John Seydel, Ph.D.
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Creating a Basic Web Page
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
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.
Supply Chain & Enterprise Systems eXtensible Markup Language (XML) Basics MIS 6483 – Spring Guest Instructor: John.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
eCommerce Technologies Design & Development for the Web MIS Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.
Electronic Commerce Planning for eCommerce MIS Spring 2006 Instructor: John Seydel, Ph.D.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Website Development & Management Going Live with Web Pages (b) CIT Fall Instructor: John Seydel, Ph.D.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
WEB SERVER SOFTWARE FEATURE SETS
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
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.
Electronic Commerce Online Security Issues MIS Spring 2006 Instructor: John Seydel, Ph.D.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
Generating XML Data from a Database Eugenia Fernandez IUPUI.
National College of Science & Information Technology.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
INFS 230 L Internet Technology
Presentation transcript:

eCommerce Technologies Syntax & Procedures for Markup MIS Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.

Student Objectives Summarize basic syntax for HTML elements Standard elements Empty elements Use HTML markup to create and modify tables Create forms and form elements using HTML markup Use ASP markup to create simple server side scripts Form handlers Server-side includes Database connectivity Summarize the four primary ASP objects

Recall Our Technologies for eCommerce Keep in mind, the purpose is to use the right technologies to support the firm’s business plan In general, the technologies with which we’re be working can be classified as Web tools (e.g., FrontPage, Flash) Client technologies (web browsers, in particular) Database technologies (e.g., Access) Web languages (e.g., XHTML)languages Server technologies (e.g., IIS, ASP)...

Server Technologies Provide access to files Just delivering web pages (no processing)  Static HTML  Dynamic HTML Interactive processing (pages created on demand)  Data from databases  Data from client Web server: Internet Information Services (IIS) Technologies for interactive processing PHP (scripting similar to C programming) CGI (scripting typically using Perl) Various: CFML, JSP,... ASP (scripting via VBScript usually but not always) Let’s take a quick look at how IIS works with ASP

Where We’re Headed: Shopping Cart Demonstration Refer to aitp.astate.edu/suzy/exercises/cyberworldaitp.astate.edu/suzy/exercises/cyberworld Note the application, storefront and back office: Catalog page – displays limited database contents  Choose any item, and  Details page displays Details page  Return to catalog, or  Cart page Cart page (provided by PayPal)  Return to catalog. or  Checkout Order processing (provided by PayPal)  Back office chores handled  Includes login (same idea as Chapter 11)

CyberWorld: Storefront Portion Involves Catalog page Details page Catalog page features Opening database (all records; recordset) VBScript loop Pulling data from database Employing ASP code within markup Details page features Opening database and selecting specific record Refer to source code handout

CyberWorld: Back Office Access to info Manual processing of orders User authentication Management metrics (eMetrics) Updates to info Inventory Customer data Accounting systems Management metrics Various levels of automation Facilitated by PayPal (something we’ll deal with later)

Now, More on Markup Recall two types of elements: Standard elements Empty elements

A Quick Review of XHTML Elements A web document is a collection of XHTML elements Note that XHTML is essentially HTML XML compliant Reformulation of HTML, but with stricter rules Two types of elements Standard Empty Each element Has  Opening tag and closing tag is standard  Self closing tag if otherwise May have attributes specified Also: XHTML entities

Standard XHTML Document... title goes here scripts, style rules, meta elements, etc this is where content and markup goes...

XML Syntax for Standard Elements Either... content... Or <tag attr1=“xxx” attr2=“yyy” attr3=“zzz”... >... content... Why the difference? More readable code (for us, not the computer)

Examples of Standard Elements Paragraphs, headings, divisions Hyperlinks Lists Tables Forms Objects Display markup

Syntax for Empty Elements Either Or <tag attr1=“xxx” attr2=“yyy” attr3=“zzz”... /> Notice: no content; attributes provide full specification

Examples of Empty Elements Images and embedded objects Form input controls (e.g., text boxes) Breaks, horizontal rules, etc. Meta tags

Some Important XHTML Body Elements Hyperlinks: Objects:, or Lists:, Tables:,, Text blocks:, Display:, or, or, Forms:,,, Style rules: Miscellaneous:,

Referencing Other Files Where? Hyperlinks Images (inline or background) Objects (e.g., Flash movies) And other places also, but beyond our scope Absolute referencing: resources on another server Relative referencing Preferred Need to specify relative to calling document  In same folder  In higher level folder  In lower level folder  In sibling folder

Rules to Follow for XML Compliance Use lowercase for tags & attributes Quote attribute values Use relative references for resources on same server Always use closing tags Nest elements properly; close in reverse order of opening Use indentation consistently and to make code readable No more than 80 characters per line of code; break long tags into multiple lines, typically one per attribute Avoid deprecated elements, e.g.,,, Use no spaces in file names Treat all URLs and other resource names as if case- sensitive

Development of Applications Three tier architecture: presentation, application, databasearchitecture Browser presentation layer: HTML Application server layer: ASP, VBScript, JavaScript, ColdFusion, CGI, Perl, etc. Database layer Web-enabled database software: Access, SQL Server, Oracle ADO and ODBC (enable database access through application layer)

ASP Programming Secure, server-side scripting Viewable with any browser Open development environment combines Scripting Pre-built objects ASP delimiters Five primary ASP objects Request Response Server Application Session

Request Object Purpose: to get information from the user Submits info to Web server Basic data collection functions: Form QueryString ServerVariables Cookies See overview of browser/server interactionbrowser/server

Response Object Purpose: to send information to the user Delivers to client browser Basic functions: Changing cookies Controlling properties of objects Controlling actions of objects See overview of browser/server interactionbrowser/server

Server Object Purpose: to control connections to external components Used in nearly every ASP file Supports only one property ScriptTimeout Determines maximum time an ASP file can take to complete an execution

Session Object Purpose: to store information about and change settings for the user’s current Web- server session Automatically created when new visitor arrives at application page Enables application to keep track of visitors Example: Session(“User”) = Request(“txtName”)... strUser = Session(“User”) Response.Write(“Hello “ & strUser & “!”)

Application Object Purpose: to share application-level information and control settings for the lifetime of the application Created at Web server when you create a virtual directory for the application Example: Application(“NumHits”) = Application(“NumHits”) intHits = Application(“NumHits”) Response.Write(“You are visitor #“ & intHits)

ActiveX Data Objects (ADO) Interface with other relational databases Use ODBC Three primary objects: Connection RecordSet Command Example: Set myConnection = Server.CreateObject(“ADODB.Connection”)... Set rsTitleList = myConnection.Execute(“SELECT * FROM Products)

Let’s Look at Some ASP Scripting Declarations Database First, view the database Creating connectivity Processing records from a recordset All records Selected records If time: server-side includes

Summary of Objectives Summarize basic syntax for HTML elements Standard elements Empty elements Use HTML markup to create and modify tables Create forms and form elements using HTML markup Use ASP markup to create simple server side scripts Form handlers Server-side includes Database connectivity Summarize the four primary ASP objects

Appendix

Computer Languages Programming languages Standalone  Procedural Traditional (e.g., COBOL) Object-oriented (e.g., Java)  Nonprocedural (e.g., SQL) Scripting languages (rely on other components)  JavaScript  VBScript  Others (e.g., Perl) Markup languages (e.g., XHTML) Stylesheet languages (e.g., CSS, XSL) Database languages (e.g., SQL)

What Makes ASP Files Different? At least some content is omitted from source code Replaced by script tags Files are preprocessed at server Scripts within tags are executed Result is an XHTML document Sent to browser

Three Tiered Internet Database Access Architecture

Browser/Server Interaction