Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies © 2007 Prosoft Learning Corporation All rights reserved ITD.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
Essentials for Design JavaScript Level One Michael Brooks
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Languages for Dynamic Web Documents
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Project 1 Introduction to HTML.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
Chapter Concepts Review Markup Languages
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
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.
Introduction to Web Database Processing
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Introduction to Web Interface Technology (CSE2030)
1st Project Introduction to HTML.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ECA 228 Internet/Intranet Design I Intro to the Web.
Chapter ONE Introduction to HTML.
Web Design Basic Concepts.
Linux Operations and Administration
INTRODUCTION TO WEB DATABASE PROGRAMMING
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Internet Applications Notes for Chapter 19 Digital Domain, 2 ed.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
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.
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.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Introduction and Principles Web Server Scripting.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Asstt. Prof Sonia Sharma Computer Dept 1 HTML ( Hypertext MarkUP Language ) HTML is the lingua franca for publishing hypertext on the World Wide Web.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
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.
DHTML.
Project 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
Project 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
Chapter 27 WWW and HTTP.
Lesson 8: Extending HTML
CIS 133 mashup Javascript, jQuery and XML
Web Application Development Using PHP
Presentation transcript:

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design

Objectives Identify client-side and server-side scripting technologies Connect Web pages to databases Use CSS to apply formatting to Web pages Identify the benefits of Dynamic HTML (DHTML) Define the function of the Document Object Model (DOM) and its relationship to browsers Compare the use of a service provider to hosting your own Web site

Extending HTML Client-side and server-side scripting Connecting to databases Additional ways to apply Cascading Style Sheets (CSS) Dynamic HTML (DHTML) Document Object Model (DOM)

Server-Side and Client-Side Languages Programming concepts –Not required knowledge, but essential terminology is useful to understand Programming statements –if/then –if/then/else –do while –do until –break

Server-Side Languages Attributes of server-side language: –Code is executed by the Web server, not the Web browser –Code executes because an interpreter has been installed and activated on the Web server Server-side scripts are used for various purposes: –Browser detection –Database connectivity –Cookie creation and identification –Logon scripts –Hit counters –File uploading and downloading

PHP Hypertext Preprocessor (PHP) An interpreted server-side scripting language for creating dynamic Web pages Embedded in HTML pages but usually executed on a Web server Example of PHP code: <?php $envVars = array("HTTP_USER_AGENT"); foreach($envVars as $var) { print " PHP CGI Example Hello, World! Your user agent is: ${$var}. "; } ?>

Practical Extraction and Report Language (Perl) Another server-interpreted language Older, but very popular Example of Perl code: #!/usr/bin/perl use CGI qw/:all/; $cgi_object = CGI::new(); print "Content-type: text/html\n\n"; print " \n \n \nPerl CGI Example\n \n \n Hello, World! \nYour user agent is: \n"; print $cgi_object->user_agent(); print ". \n";

Active Server Pages (ASP) using VBScript Microsoft’s original server-side scripting solution Example of ASP code using VBScript: ASP CGI Example Hello, World! <% path = Request.ServerVariables("PATH_INFO") pagename = Request.ServerVariables("HTTP_HOST") method = Request.ServerVariables("REQUEST_METHOD") browser = Request.ServerVariables("HTTP_USER_AGENT") user = Request.ServerVariables("REMOTE_ADDR")

C A procedural language (relies upon subprograms to accomplish a task in an application) C is a time-honored language, usually used to create stand- alone applications and operating systems (e.g., UNIX/Linux) Can also be used for CGI Example of C code: #include int main() { printf("Hello, World!\n"); return 0; } Note this code includes a reference to a library called stdio.h

C++ Object-oriented language –A style of programming that links data to the processes that manipulate it –May include procedural elements, but instead of using subprograms to accomplish a task, will create an object that can then be manipulated throughout the program –Once an object is created, it can be reused Platform dependent: –Must be compiled to a specific architecture (e.g, IBM-compatible, PowerPC)

Java Object-oriented Compiled Platform-independent –Marketing: Write once, run anywhere –Reality: Write once, test everywhere Java can be used to write: –Stand-alone applications –Servlets –JavaServer Pages (JSP)

Visual Basic A compiled programming language developed by Microsoft Corporation Used for stand-alone applications and server- side Web applications Once only procedural, now has object-based elements

C# Object-oriented Compiled Platform-dependent Used for Microsoft.NET program

Server Side Includes (SSIs) An instruction inside of an XHTML/HTML page that directs the Web server to perform an action An alternative to CGI SSI instructions are in SGML Can be used to: –Place the results of a database query into a page –Execute other programs –Indicate the last time a document was modified –Insert footer text at the bottom of a page –Add the current date as a timestamp to a page

Server Side Includes (SSIs) (cont’d) Standard SSI file name extensions: –.shtml –.shtm SSI support in Web servers –Most Web servers include code that enables SSI –However, the SSI feature may be disabled You may have to activate the feature You may also have to define a MIME type

Client-Side Languages Issues with client-side languages –Some clients do not support JavaScript or any other such scripting language –Users can deactivate script execution in browsers that normally support it

JavaScript Object-based Adds interactivity to Web pages Can also be used on the server side (Server-Side JavaScript, SSJS) On the client side, can be used to: –Detect browsers –Create cookies –Create mouse rollovers JavaScript advantages –Platform-independent –Vendor-neutral –Relatively simple

JavaScript (cont’d) Can be placed in an HTML/XHTML document –Use the tag Browser detection (using JavaScript or any other scripting technology) is useful for: –Presenting different versions of a site to different browsers –Informing users in a corporate intranet to upgrade their browsers to a supported version –Ensuring accessibility to disabled users

JavaScript (cont’d) JavaScript and cookies –Cookies are stored on the hard drive –Cookies can be used to: Store passwords Store user preferences Choose which Web pages will be displayed based on browser version

VBScript Microsoft’s answer to JavaScript Can be used on the client side or the server side If used on the client side, only Internet Explorer can render the script

Connecting to a Database For a database to work, you must: –Provide a way for the Web server and database to recognize each other Microsoft systems can use ODBC Other methods include PHP scripts –Provide permissions to the database so it can be read and/or written to You must also supply SQL scripts

CGI and Permissions Aside from improper coding, CGI scripts usually fail to execute because: –The Web server does not have the permissions to execute files and scripts –The file or script used has incorrect permissions, which prohibits the server from executing the file

ISPs and CGI If working with an Internet Service Provider (ISP), you generally need to: –Request CGI services –Request that the ISP: Enables execute permissions on your scripts Creates a directory that contains available CGI scripts Provides user name and passwords with enough permissions to work the system

N-Tier Applications When discussing databases, three elements are generally involved: –Data The database file or multiple database files –Business logic The SQL coding necessary to create relationships with the data stored in the database –Presentation The way that data and business logic are presented on the user screen

N-Tier Applications (cont’d) In n-tier, all three database elements are separated

Styling Techniques with CSS Types of CSS include: –Linked style sheet The and tags in the HTML/XHTML file will override style sheets –Inline style –Embedded style –Imported style sheet

Declaring an Inline Style The tag –Can span multiple elements: CIW Associate The style attribute –Used inside a tag: CIW Associate

Embedded Styles An embedded style sheet uses the tag within the section: Certified Internet Webmaster h1 {color: magenta; font-family: arial; font-size: 20pt} The style will remain in force until overridden (e.g., by an inline style)

Imported Style Sheets Like a linked style sheet, refers to a separate file Created using statement with the following url(filename.css) Certified Internet url(import.css);

Style Sheets and Browser Compatibility Styles can cause problems with older browsers –Imported styles can especially cause problems –Test your code in multiple browsers Most modern browsers are designed to support style sheets

Dynamic HTML (DHTML) An enhancement that provides animation, interactivity and dynamic updates in pages DHTML capabilities include: –Automatic adjustment of font sizes and colors –Absolute positioning –New document content –Granular control over animation, audio and video Requires XHTML 1.0 or HTML 4.01, CSS, and a way to access the Document Object Model (DOM)

The Document Object Model (DOM) A vendor-neutral, cross-platform application programming interface (API) Specifies how objects in a document can be referred to and manipulated through scripting languages Describes the elements, or objects, within a document rendered by a user agent (e.g., Web browser) A W3C standard

The Document Object Model (DOM) (cont’d) Accessing a browser's DOM –Use a scripting language JavaScript VBScript –DOM compliance At one time, several DOMs, depending upon browser manufacturers W3C standardization Choosing a DOM-compliant browser Undefined object error and the DOM XHTML, the DOM and browser compatibility

Working with Web Service Providers Internet Service Provider (ISP) –Provides basic services Internet connectivity Web server –You need your own experts Application Service Provider (ASP) –Provides more advanced services Messaging (i.e., ) Databases Spam filtering Telephony services

Costs of Using an ASP Often based on: –Amount of traffic –Amount of support you require Database connectivity Per-service costs Bandwidth Customer support Security

Co-Location, Dedicated Hosting and Virtual Servers Co-location Dedicated hosting (co-hosting) Virtual server

Comparing Options Configuring your own hosting solution –Benefits –Drawbacks Using an ISP –Benefits –Drawbacks Using an ASP –Benefits –Drawbacks

Communicating Needs and Negotiating Services Be prepared to detail your needs Negotiate prices by providing information: –Potential amount of traffic –Hard drive space needed –Database and CGI needs –Additional services (e.g., custom applications) As you work with ISP and ASP sales representatives, –Communicate your needs –Talk to the sales representative manager –Have your manager talk to the ISP/ASP manager

Information You Need from Your Service Provider Account information IP addresses and DNS names of the server Instructions about file and directory locations The service provider’s contact information Additional information: –ISP/ASP security policies –ISP/ASP support procedures –Procedures for reporting problems –Average timelines for resolving problems

Lesson 11 Summary Lesson 11 Advanced Web Technologies See Skills Review