Advanced Web Technologies. Frames Forms Plugins Dynamic Pages---CGI Active Pages: Java, Java Script.

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
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?
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
1 Chapter 12 Working With Access 2000 on the Internet.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Create a Web Site with Frames
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
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.
Creating Web Page Forms
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
CE80N Introduction to Networks & The Internet Dr. Chane L. Fullmer UCSC Winter 2002.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
The Internet & The World Wide Web Notes
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
Getting Started with Dreamweaver
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Transferring Course Materials to the Web. Creating a Web Site With a Template To create a Web site with a template 1.Start FrontPage. 2.On the File menu,
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Chapter 24 - Advanced Web Technologies Introduction Conventional Web Pages Are Static How A Server Stores Static Web pages Fetching Items One At A Time.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
FrontPage Introduction Presented by: Audrey Marshall for Interactive Multimedia Design.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Tutorial 7 Planning and Creating a Flash Web Site.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
For the World Wide Web Designing with Frames.  One of the most popular climbing schools in Colorado is Cliff Hangers. Located in Bolder, Cliff Hangers.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Chapter 5: Windows and Frames
ITCS373: Internet Technology Lecture 5: More HTML.
XP Tutorial 8 Adding Interactivity with ActionScript.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
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 Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Microsoft FrontPage 2003 Illustrated Complete Creating a Frames Page.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Section 10.1 Define scripting
Getting Started with Dreamweaver
Creating a Flash Web Site
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
WWW and HTTP King Fahd University of Petroleum & Minerals
Section 17.1 Section 17.2 Add an audio file using HTML
Chapter 27 WWW and HTTP.
Getting Started with Dreamweaver
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

Advanced Web Technologies

Frames Forms Plugins Dynamic Pages---CGI Active Pages: Java, Java Script

Frames Conventional Web pages use the entire screen: May be inconvenient when: Display a list a of products; Display ads Frames: Allow an author to divide the viewing area into multiple rectangular regions Change the display in one region without affecting the others; Ex:

The Web, Advertising and Frames Many companies use frame technology for advertising: Each frame holds an ad; Advantages: It does not clutter the useful information; Does not introduce additional overhead to load when the user moves to another page

Creating a frame Frameset tag defines a framed environment; Instructs the browser how to split the screen; Ex: --- splits the screen in three columns, the first taking 20% of the space available; ---splits the screen into two rows of equal size; Framesets maybe nested

Creating a frame (cont.) Frame tag ---introduces a frameset element; Each frame has: a source---I.e. the HTML document that to be displayed in the correspondent screen portion; A name (optional)

A frame example For example, consider a file “frames.html” with the following content:

A frame example (cont.) The file “content.html” may be of the form: Product 1 Product 2 The value of attribute target tells the browser in what frame to display the file.

Creating frames using FrontPage (Project 9) Create a new page sing: File/New and the tab “Frames Page”  depending on the template chosen, a page containing two or more frames is created; One can change the size of the frames by clicking on the border, and dragging it to the desired position; Editing a frame’s content: one can either set an initial page, or edit a new page

Creating links to a frame As before, use the hyperlink button to make a link; However one can choose where the linked page will be displayed: Default: chosen by FrontPage, depending on the template used; Same frame: the document will be displayed in the same frame where the hyperlink is; Whole page: the document is displayed on the whole page of the browser; Parent frame: the document is displayed in the frame that contains the current frame tag; New Window: the document is displayed on a new browser instance

Saving a frame Saving as usual: File/Save or File/Save As Note: you have to save all files pertaining to the frame, i.e. the frame content and the frame itself

Static HTML Pages HTML pages as presented so far are static, i.e. they do not change; Advantages: Easy to create Inexpensive to maintain May be retrieved quickly  most Web pages are static

Static HTML Pages (cont.) Disadvantages: Cannot include additional forms of data, such as sound; Cannot include up to date information (e.g. stock prices, weather, seat availability) Cannot be used to interact with a user; for example, cannot be used to send information to the server, like credit cared number, name,.. Do not change after they are loaded;

Extending Web pages to contain audio A Web page can contain audio; Audio data is associated with a link in a page; If such a link is selected, the browser plays the audio through speakers; Issues: different formats used to store audio; Different hardware used to play audio;

Plugins Computer programs that understands how to interpret a specific data format; Ex: there are plugins for playing a certain format of audio, showing video clips, … Browsers may use plugins to extend their functionality; Web pages: can test whether a browser has a given plugin; inform the user; Download the plugin from the Web

Plugins (cont.) If the user agrees that the plugin be installed: A copy of the plugin is placed on the user disk; Each time the browser starts, it loads the plugins  the same plugin does not have to be downloaded twice

Static HTML Pages (cont.) Disadvantages: Cannot include additional forms of data, such as sound; Cannot include up to date information (e.g. stock prices, weather, seat availability) Cannot be used to interact with a user; for example, cannot be used to send information to the server, like credit cared number, name,.. Do not change after they are loaded;

Dynamic pages Developed to allow for up-to-date information be sent to users; Idea: A Web server may associate with a given URL with a program instead of a static page When a browser requests such an URL, the server runs the associated computer program and sends the output to the user. This technology is called CGI (Common Gateway Interface)

Dynamic pages (cont.) Benefits: CGI-programs can access data and perform computations; Ex: a program running on a server having access to to stock information can return current stock prices; Ex: CGI programs can store information on the disk, and maintain a history; Ex: count how many times a given page has been accessed;

How CGI works Consider that a browser sends a request to a Web server; If the URL corresponds to a CGI program, the server starts the program, and passes it a copy of the request; The CGI program creates a page, based on the request; The server sends back the page;

Static HTML Pages (cont.) Disadvantages: Cannot include additional forms of data, such as sound; Cannot include up to date information (e.g. stock prices, weather, seat availability) Cannot be used to interact with a user; for example, cannot be used to send information to the server, like credit cared number, name,.. Do not change after they are loaded;

Forms Forms are a type of HTML documents that allows for information to be sent to the server; This information can be then used by a CGI program to: create a new document which is sent to the user; Make a purchase; Forms examples:

Other applications of CGI technology Personalized pages: Depending on the user information, the CGI- program can create a personalized page; Ex: BMG ( Personalized advertisements: Different ads can be sent to different users; Shopping cart: One can have a shopping cart in which information regarding the items purchased so far are maintained, for a certain time interval; Ex:

Cookies Keep information about users; Are maintained by the user browser; Are sent to a server upon request; A server may use the information stored by a cookie to retrieve data about a user (like what merchandise has he bought before, what documents has he seen, etc.) Ex. you can see your cookies on pegasus in the file.netscape/cookies

Cookies (cont.) Most browsers allow a user to specify whether to accept cookies: in Netscape, Edit/Preferences/Advanced; if you accept cookies, the server can use dynamic content technologies to personalize pages; disadvantage: the server finds about your shopping and browsing habits; But, there are sites that cannot be viewed if you do not accept cookies.

Disadvantages of dynamic pages Increased cost: have to develop and test CGI-programs; more sophisticated/powerful servers Inability to display changing information: like a static document, a dynamic document does not change after the browser has retrieved a copy; the information can become stale quickly (ex: stock prices) The server may become overloaded;

Active documents Contain a computer program that: knows to display a page; compute and displays values; When a browser requests an active document, the server returns a copy of the program that the browser runs locally ; when it runs, the active document can change the display continuously  content of an active document is not fixed;

Active documents (cont.) Advantages: no delays due to server/browser communication: the page is produced locally; scalable: computations are performed locally; imagine that a CGI program takes 1s to run and there 1000 requests received approx. at the same time; with active documents, 1000 browsers will run locally the program

Java--- an active document technology First active technology to appear; An active document using Java is called an applet; Java is a full-fledge programming language (and a nice one, to boot) supports high quality animations; ex: check

The applet tag Applet tag is used to include an applet into a Web page; tags are used to define the parameters that will be passed to the Java program; any number of tags can be included between and ex: to include a Java program called lake.class into a Web page stored in the same directory (folder) one can use the following code:

JavaScript---another active document technology Incorporates some basic features of Java, and omits the more complex ones; can be embedded in a standard HTML file; when a browser encounters a JavaScript section, it performs the computation and displays the results

Active documents Tend to replace other advanced technologies because: do not burden the server only this technology makes possible animation

Conclusion There are three types of Web documents: static---the information remains unchanged until the author revises it; dynamic documents---are created by a server on the fly upon request; active documents---information in an active document can change after the document has been loaded by a browser.

Creating Active Pages with FrontPage FrontPage provides some predefined animation effects, implemented as JavaScripts; To create animation effects: Select (highlight) the text; Select Format/Dynamic HTML Effects; Choose an event and an effect; The animation effect can be viewed in Preview.

Finishing touches.. In FrontPage: one can add a common “theme” to pages in a Web: choose Format/Theme; Add a navigation bar to a documents: In navigation mode, create a hierarchical structure for your files; (drag first the parent (main) from the left to the right, then add children (pages that can be reached directly from parent page) In Page mode do Insert/Navigation banner; Add a banner to a document: Insert/Banner

Finishing touches…(cont.) View the hyperlinks of a document in a graphical manner: Views/Hyperlinks; Display reports about pages in the selected Web: Views/Reports