Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.

Similar presentations


Presentation on theme: "Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a."— Presentation transcript:

1 Web Pages with Features

2 Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a database, search engines, collecting info from users Pages with enhanced visual effects –Rollovers, animations. Dynamic Pages: –Dynamic Pages from material in a database –animations and dynamic images –popup windows, scrolling messages

3 Interactivity on a Web page can be achieved by: Using Programs either –Server-side programs or, e.g., CGI scripts, ASP, Server-side JavaScripts –Client-side programs e.g., Java Applet, Client-side JavaScripts Using plug-ins with the browsers (Netscape) or ActiveX control (Internet Explorer). e.g., Shockwave Flash Player

4 Server-side Programs: Server-side Programs run on the server Disadvantages: –only the system administrator could alter the program –1000s of users continually accessing the server, slowing it down and potentially overloading the system. Client-side Programs solve many of the problems by distributing the computing over the Web –Client-side Programs can be tested locally before uploading to the Web Server –However Client-side Programs can never completely replace Server-side Programs. e.g., searching a database on a central server.

5 Server-side Programs:

6 Client-side Programs :

7 Common Gateway Interface (CGI) CGI –A standard for interfacing applications with a Web server –Lets HTTP clients interact with programs across a network through a Web server –CGI applications Can be written in many different programming languages Reside in the directory /cgi-bin HTTP GET command –By issuing command, client directs server to send specific data to browser

8 Common Gateway Interface (CGI) CGI is an interface –Script or executable program must be used to interact with it Web browser –Take info from user –Using HTTP, sends info to a Web server –Server-side CGI program executed –Standard output from server-side applications or scripts redirected or piped to CGI –Output sent from CGI over the Internet to the client browser for rendering

9 Common Gateway Interface (CGI) Data path of a typical CGI-based application

10 Java Applet Applets are small applications to run on client’s machine. It is in separate file than the Web page itself. The downloaded applet executed by the browser’s built-in interpreter, that reduces the burden on the server. A Java applet first need to be compiled and needs JDK. JavaScript is a subset of Java and don’t need to be compiled, it is an interpreted only language.

11 JavaScript in Browsers Web browsers can interpret client-side JavaScript statements embedded in an HTML page. When the browser (or client) requests such a page, the server sends the full content of the document, including HTML and JavaScript statements, over the network to the client. The client reads the page from top to bottom, displaying the results of the HTML and executing JavaScript statements as it goes.

12 JavaScript on the Server On the server, you also embed JavaScript in HTML pages. The server-side statements can connect to relational databases from different vendors, share information across users of an application, access the file system on the server, or communicate with other applications through LiveConnect and Java. HTML pages with server-side JavaScript can also include client-side JavaScript. In contrast to pure client-side JavaScript scripts, HTML pages that use server-side JavaScript are compiled into bytecode executable files. These application executables are run in concert with a Web server that contains the JavaScript runtime engine. This makes creating JavaScript applications a two- stage process.

13 Other technologies for dynamic pages: ASP - Active Server Pages SSI - Server side Includes PHP - Scripting Language for Servers


Download ppt "Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a."

Similar presentations


Ads by Google