Computer Science, asked by kohli26281, 1 year ago

Difference between dyamic and active webpage

Answers

Answered by Hacket
1

Dynamic webpages do not exist in a predefined format and are created by a web server only when a client program requests for it.When a request for such a page arrives the web server runs an auxiliary application program that creates the dynamic document and generally returns a HTML/XML page to the web server depending on user's requirement.Since the new document is created in response to user request,the page served for same request can vary from time to time.A very simple example of dynamic document is getting time and date from server.Dynamic webpages facilitate user interaction and creating personalized webpages for the user.

dynamic is what's being executed on the server and then the result is being sent back to the client (browser). So for example when using PHP, your browser isn't able to execute PHP, so the server executes the PHP file and performs all logic in your code. The result will be an HTML file, which is then sent back to the client. The important thing to understand is that when the result is served to the client, the information in it won't change.



An active web page is a page where the browser performs the logic instead of the server. So for example when you've got a page where you're showing share prices, then you want it to update e.g. every 5 seconds. A solution would be to use AJAX with JavaScript. In contrast to PHP, your browser is able to execute JavaScript, so it is happening without reloading the page. So with an active page, everything is happening inside your browser without the need to reload the page every time you want new information.

Similar questions