Dynamic web page
This article includes a list of general references, but it lacks sufficient corresponding inline citations. (December 2012) |
A dynamic web page is a
A dynamic web page is then reloaded by the user or by a
Basic concepts
Classical hypertext navigation, with HTML or XHTML alone, provides "static" content, meaning that the user requests a web page and simply views the page and the information on that page.
However, a web page can also provide a "live", "dynamic", or "interactive" user experience. 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 effect:
- Using client-side scripting to change interface behaviors within a specific web page, in response to mouse or keyboard actions or at specified timing events. In this case the dynamic behavior occurs within the presentation.
- Using
Web pages that use client-side scripting must use presentation technology broadly called
Web pages that use server-side scripting are often created with the help of
History
It 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".
.The introduction of JavaScript (then known as LiveScript) enabled the production of client-side dynamic web pages, with JavaScript code executed in the client's browser., originally developed in 2009, JavaScript is also used to dynamically create pages on the server that are sent fully formed to clients.
Server-side scripting
A program running on a
Such web pages are often created with the help of
The server-side languages are used to embed tags or markers within the source file of the web page on the web server.[5] When a user on a client computer requests that web page, the web server interprets these tags or markers to perform actions on the server. For example, the server may be instructed to insert information from a database or information such as the current date.
Dynamic web pages are often cached when there are few or no changes expected and the page is anticipated to receive considerable amount of web traffic that would wastefully strain the server and slow down page loading if it had to generate the pages on the fly for each request.
Client-side scripting
Client-side scripting is changing interface behaviors within a specific web page in response to input device actions, or at specified timing events. In this case, the dynamic behavior occurs within the presentation. The client-side content is generated on the user's local computer system.[6]
Such web pages use presentation technology called
The first public use of JavaScript was in 1995, when the language was implemented in Netscape Navigator 2, standardized as ECMAScript two years later.[7]
- Example
The 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.[8]
The innerHTML
property (or write command) can illustrate the client-side dynamic page generation: two distinct pages, A and B, can be regenerated (by an "event response dynamic") as document.innerHTML = A
and document.innerHTML = B
; or "on load dynamic" by document.write(A)
and document.write(B)
.
Combination technologies
All of the client and server components that collectively build a dynamic web page are called a web application. Web applications manage user interactions, state, security, and performance.[9]
Ajax uses a combination of both client-side scripting and server-side requests. It is a web application development technique for dynamically interchanging content, and it sends requests to the server for data in order to do so. The server returns the requested data which is then processed by a client-side script. This technique can reduce server load time because the client does not request the entire webpage to be regenerated by the server's language parser; only the content that will change is transmitted. Google Maps is an example of a web application that uses Ajax techniques.
A
See also
- Deep web (search indexing)
- Dynamic HTML
- Personalization management system
- Responsive Web Design
- Solution stacks to serve dynamic web pages
- LAMP (software bundle)
- LYME (software bundle)
- LYCE (software bundle)
- Static web page
- Web content management system
- Web template system
References
- ^ DeGroote, Sandy. "Subject and Course Guides: Digital UIC: Static and Dynamic Websites". researchguides.uic.edu. Retrieved 2023-12-12.
- ^ Fielding, Roy Thomas (2000). "Chapter 5: Representational State Transfer (REST)". Architectural Styles and the Design of Network-based Software Architectures (Ph.D.). University of California, Irvine.
- ISBN 9780201741308.
- ^
Benson, Brent W. (1999). S2CID 10076062..
- ISBN 9781449365837.
- ].
- ISBN 9780976385745.
- ISBN 1-56592-247-6. Ed. O'Reilly, 1997. sec. C13.
- ^ "Web application". Archived from the original on 22 February 2014. Retrieved 24 July 2013.
{{cite web}}
: CS1 maint: bot: original URL status unknown (link)
External links
- Static versus dynamic web site from W3.org
- Dynamic web sites using the Relationship Management Method, from W3.org.
- Wide analysis of dynamic web pages from University of Texas, Austin.