Dynamic web page

Source: Wikipedia, the free encyclopedia.
(Redirected from
Dynamic content
)
Dynamic web page: example of server-side scripting (PHP and MySQL).

A dynamic web page is a

software execution), as opposed to a static web page
, delivered as it is stored. A server-side dynamic web page is a web page whose construction is controlled by an application server processing server-side scripts.[1] In server-side scripting, parameters determine how the assembly of every new web page proceeds, and including the setting up of more client-side processing. A client-side dynamic web page processes the web page using
GitHub Pages or Amazon S3
as long as there is not any server-side code included.

A dynamic web page is then reloaded by the user or by a

REST style interface to offer services to the web application.[2]

DHTML is the umbrella term for technologies and methods used to create web pages that are not static web pages
, though it has fallen out of common use since the popularization of AJAX, a term which is now itself rarely used. Client-side-scripting, server-side scripting, or a combination of these make for the dynamic web experience in a browser.

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
    URL, the type of browser being used, the passage of time, or a database or server state.[3]

Web pages that use client-side scripting must use presentation technology broadly called

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 use server-side scripting are often created with the help of

ColdFusion 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 the client-side, the first kind (DHTML, etc.).

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.

AJAX originally indicated the use of JavaScript, as well as XML. With the rise of server side JavaScript processing, for example, Node.js
, originally developed in 2009, JavaScript is also used to dynamically create pages on the server that are sent fully formed to clients.

graceful degradation
) in case of error or incompatibility.

Server-side scripting

There are four steps in the client-server ecosystem: the browser, the HTTP request, the web server, and the response. Server-side scripting occurs when a dynamic web page or resource is processed and generated by the web server.
When a request to a dynamic web page or resource is made, the application server processes the request using its server-side language.

A program running on a

URL, the type of browser being used, the passage of time, or a database or server state
.

Such web pages are often created with the help of

JSP
, which reuse CGI concepts in their APIs but actually dispatch all web requests into a shared virtual machine.

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

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. Client-side scripting also allows the 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
.

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

HTTP methods
for doing this.

See also

References

  1. ^ DeGroote, Sandy. "Subject and Course Guides: Digital UIC: Static and Dynamic Websites". researchguides.uic.edu. Retrieved 2023-12-12.
  2. ^ 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.
  3. .
  4. ^ Benson, Brent W. (1999).
    S2CID 10076062
    .
    .
  5. .
  6. ].
  7. .
  8. . Ed. O'Reilly, 1997. sec. C13.
  9. ^ "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