Languages for Dynamic Web Documents

Slides:



Advertisements
Similar presentations
DT228/3 Web Development WWW and Client server model.
Advertisements

Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
IIS Technologies.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
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.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
ASP.NET Dr. Ralph Westfall May, Web Development Problem HTML designed to display static pages only interactive when user clicks links  can’t provide.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Server-side Scripting Powering the webs favourite services.
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.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Mark Dixon Page 1 3 – Web applications: Server-side code (JSP)
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.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
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 
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
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.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
ASP Syntax Y.-H. Chen International College Ming-Chuan University Fall, 2004.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
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.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
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.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
PHP / MySQL Introduction
Web Development Using ASP .NET
Client-Server Model: Requesting a Web Page
Presentation transcript:

Languages for Dynamic Web Documents presented by Francisco A. Rojas

What is a dynamic web document? One or more of the following: A web document with information that is not static or not hard-coded by the webmaster (a document that is dynamically generated by the server in response to a query) Something on the web page moves or changes (animated) The web page may respond to user input It is DHTML!!! — A combination of HTML, style sheets and scripts that allows documents to be animated

DHTML – Dynamic HTML Rollover Image: Show / Hide Animation “DHTML combines HTML 4, the DOM, scripting and CSS to create dynamic, interactive pages not possible with static HTML or paper-based documents.” Common examples of DHTML: Rollovers: Information changes in response to user actions. Show/Hide: Information appears (shows) or disappears (hides) in response to user actions. Animation: Information moves about the page, automatically or in response to user actions. Source: http://www.xhtmlchef.com/forehelp_08-01.asp Rollover Image: Show / Hide Animation

Two Sides to DHTML Client-side DHTML is usually processed on this side for fastest execution on local machine memory. Good for DHTML that does not involve the Server and helps relieve the burden on doing the same task on Servers. Often form input error checking is handled here before information is passed on to the server. Languages: ECMAScript (JavaScript, JScript), VBScript Server-side Server-side DHTML effects such as personalization and session configurations are processed here. Often a database is being used to retrieve information to be displayed in a dynamically generated webpage that is produced by the server and sent to the client for presentation. Languages: ASP, JSP

Client-Side DHTML Most commonly used language for client-side DHTML is JavaScript. Demo: Making your tables sortable. http://www.kryogenix.org/code/browser/sorttable/

Another example

Server-Side DHTML Concept Server-Side DHTML usually involves the server creating a dynamically generated web page that is data driven. The html page is a result of a server side script that generates the html. This page is dynamically generated at the client’s request, thus getting unique html page results based on the queries submitted. Having a static webpage for every possible query is not practical, especially if the data in the database changes! Server (Web server) URL request Database Client (Browser) html page html Table

Basic Sequence of Data Driven Web Pages User clicks on a JSP, ASP, or ASP .NET file link Client requests this file from server Server executes this file This file generates the html page using the database data The server sends this new html page to client The client displays this html page

Example of Data Driven Web Page

ASP & ASP .NET Active Server Pages (ASP) Two styles of ASP: 1) Old style ASP scriptlets Look like this: 2) ASP .NET There is a separation of html and code, but you still have the option of using ASP scriptlets. The separate code can be C#, Visual Basic .NET, or any other programming language. ASP is a program that runs inside Internet Information Systems (IIS), and it is a Microsoft Technology An ASP file (extension .asp) is html with embedded server scripts ASP .NET file extension is .aspx ASP is shipped with VBScript and JScript (Microsoft's implementation of JavaScript). If you want to script in another language, like PERL, REXX, or Python, you will have to install script engines for them. Also, because the scripts are executed on the server, the browser that displays the ASP file does not need to support scripting at all! <%@ language="javascript"%> <html> <body> <% Response.Write("Hello World!") %> </body> </html>

ASP: HTML + Script Server-script tags: <% code %> <%= expression %> Tag contents are executed and replaced with script’s output script.asp: <%@ Page language="c#” %> <html><body> The time is <%= System.Date.Now.ToString() %> <% if(System.Date.Now < “12:00pm”){ %> <p>Good morning <% }else{ %> <p>Good afternoon <% } %> </body></html> Client receives: The time is 2:03pm This is why if the user tries to View Source in web browser, you do not see any of the asp source code because it got replaced with html and text. At page request, Server executes script <%= expr %> Replaced with value of expr <% code %> Executes code

ASP .NET: Use Separate Code .aspx = html with asp tags, .aspx.cs = associated C# code Also supports old ASP-style embedded code Must use Microsoft Visual Studio .NET. This is useful in creating web based applications, and what gets constructed in the forms automatically appears in code form in the source files. Much code is automated and helps with writing the asp .net tags.

JSP and Servlets, WSAD JSP (Java Server Pages) is just like ASP, but it only supports Java in the scriptlets and the separate source files called Servlets (same general idea as ASP .NET). It also has its own tag libraries. WebSphere Studio Application Developer, developed by IBM, is a tool specifically designed for producing web applications, but it is much more of a challenge to learn and use compared to MS Visual Studio .NET.

This is WSAD

Successful Deployment of Web Application Demo http://albatross.cslab.vt.edu/vtdiet/ WSAD made web application UserName: FrancisDemo Password: chessmaster