Programista minikurs — odpowiedzi
05 lutego 2017
- web browser, server load, response time, source code, upon request, instead of, embedded within, known as, external script, to execute a script
- 1. Client-side scripting generally refers to the class of computer programs on the web that are executed client-side, by the user’s web browser, instead of server-side (on the web server). 2. This type of computer programming is an important part of the Dynamic HTML (DHTML) concept. 3. Enabling web pages to have different and changing content depending on user input, environmental conditions (such as the time of day), or other variables. 4. Client-side scripts are often embedded within an HTML document (hence known as an „embedded script”), but they may also be contained in a separate file, to which the document that uses it makes reference. 5. Upon request, the necessary files are sent to the user’s computer by the web server (or servers) on which they reside. 6. Client-side scripts may also contain instructions for the browser to follow in response to certain user actions, (e.g., clicking a button). 7. Balancing the execution between client and server scripts is used to minimize the communication load, server load and/or response time. 8. Many web authors learn how to write client-side scripts partly by examining the source code for other authors’ scripts.
- 1. Client-side scripts may be executed by the user’s web browser. 2. Web pages may have changing content. 3. Web pages may have different content. 4. Client-side scripts may be embedded within an HTML document. 5. Client-side scripts may be referred to as embedded scripts. 6. Client-side scripts may be contained in a seperate file. 7. Client-side scripts may be referred to as external scripts. 8. Client-side scripts may contain instructions for the browser. 9. Instructions may be followed without communication with the server. 10. Source code may be seen by viewing the file that contains the script.
- full access, dynamic website, click a link, HTTP request, query string, response content, operating system, static template, web browser, submit a form
- 1. Web browsers communicate with web servers using the HyperText Transport Protocol (HTTP). 2. When you click a link on a web page, submit a form, or run a search, an HTTP request is sent from your browser to the target server. 3. The request includes a URL identifying the affected resource, a method that defines the required action (for example to get, delete, or post the resource), and may include additional information encoded in URL parameters (the field-value pairs sent via a query string), as POST data (data sent by the HTTP POST method), or in associated cookies. 4. A dynamic website is one where some of the response content is generated dynamically only when needed. 5. On a dynamic website HTML pages are normally created by inserting data from a database into placeholders in HTML templates (this is a much more efficient way of storing large amounts of content than using static websites). 6. Most of the code to support a dynamic website must run on the server. Creating this code is known as „server-side programming” (or sometimes „back-end scripting”).
- On a dynamic website: 1. …content is created dynamically. 2. …content is created when needed. 3. …responses are generated dynamically. 4. …data is inserted into placeholders. 5. …data is returned based on information provided by the user. 6. data is inserted into a database. 7. ……data is returned based on preferences. 7. …different data can be returned for a URL.