|
|||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
Classical hypertext navigation occurs among "static" documents, and, for web users, this experience is reproduced using static web pages. However, web navigation can also provide an interactive experience that is termed "dynamic". Content (text, images, form fields, etc.) on a web page can change, in response to different contexts or conditions. There are two ways to create this kind of interactivity:
The result of either technique is described as a dynamic web page, and both may be used simultaneously. To adhere to the first definition, web pages must use presentation technology called, in a broader sense, rich interfaced pages. Client-side scripting languages like JavaScript or ActionScript, used for Dynamic HTML (DHTML) and Flash technologies respectively, are frequently used to orchestrate media types (sound, animations, changing text, etc.) of the presentation. The scripting also allows use of remote scripting, a technique by which the DHTML page requests additional information from a server, using a hidden Frame, XMLHttpRequests, or a Web service. Web pages that adhere to the second definition are often created with the help of server-side languages such as PHP, Perl, ASP or ASP.NET, JSP, and other languages. These server-side languages typically use the Common Gateway Interface (CGI) to produce dynamic web pages. These kinds of pages can also use, on client-side, the first kind (DHTML, etc.).
Dynamic sitesDynamic sites are those where the content and design live separately. The content lives in a database that is placed on a webpage only when needed or asked. The benefit of this is that it allows for quicker page loading and it allows just about anyone, with limited or no web design experience, to update their own website via an administrative backend. This set up is ideal for those who wish to make frequent changes to their websites including text and image updates. Dynamic sites are also great for image galleries, online calendars or e-commerce. Client-sideThe Client-side content is generated on the client's computer. The web browser retrieves a page from the server, then processes the code embedded in the page (typically written in JavaScript) and displays the retrieved page's content to the user. The innerHTML property (or write command) can illustrate the "Client-side dynamic page" generation: 2 distinct pages, A and B, can be regenerated (by an "event response dynamic") as The problems with client-side dynamic pages are:
Server-sideServer-side dynamic content is a little bit more complicated.
<?php //the contents $contents = array ( "nothing in page 0", "page 1 is here", "page 2......" ); //output the current date echo "Current Date:" . date('r') . "<br />"; //echo the content of the page based on the query string echo "content for this page: " . $contents$_GET'page'; ?>
Current Date:Thu, 21 Dec 2000 16:01:07 +0200<br /> page 1 is here Mixing client and server sidesAjax is a newer web development technique for dynamically interchanging content with the server-side, without reloading the web page#REDIRECT [ HistoryIt is difficult to be precise about "dynamic web page beginnings" or chronology, because the precise concept makes sense only after the "widespread development of web pages". Context and dates of the "web beginnings":
For server-side dynamic pages:
For client-side:
See alsoReferences
|
| All Right Reserved © 2007, Designed by Stylish Blog. |