1、/EM. HTML is a broad-based standard general markup language (Standard Generalized M akeup Language, SGML) markup language. SGML is a description language, its own website is not to be used for creating the language. HTML from simple language, the increasing number of additional features, So today th
2、e formation of the HTML version 4.0. These new properties provide a more flexible text font styles (such as FONT), and and the output page layout more control (such as Window and frame). Early website is the lack of dynamic content. Just a beginning, this is not a problem because THLM to the develop
3、ment of the computer, network and operating system between display and transmission of information (in particular the technical and scientific information). This standardized document is only a simple text and markings The images and other non-text content in a separate document storage, they can fr
4、eely various network transmission. In addition, the format of the information is fixed, and its constituent elements is the meaning of the THLM definition good. For a reading or browser applications, using any programming language on any platform or operating system is relatively easier to achieve.
5、As long as the establishment of these information website, text documents and images through the We b server application delivery to users, We b server applications simply read from the disk and put their output into the network to the correct transmission HTTP agreement. The client or the client, b
6、rowser receiving and transmitting the information flow, and to switch to show the pages. HTML and HTTP addition to cross-platform properties, its main strengths is its documentation can include the contents of the relevant information, the author expressed the desire pattern. It can be read applicat
7、ions and not necessarily show : for example, the blind can use special procedures it has become a voice. Similarly, its contents will show special way to those poor eyesight or other defects it easier for a visit. Therefore, Technology industry often user agent (user agent) to replace the generic te
8、rm browser (b r o w e r s). New types of files, especially those designed to allow the importation of pages of information on a document (for example, HTML PUNIT the window - Control), a development which can be read to and use of information applications inevitable. Obviously, the transfer from oth
9、er applications obtained, in particular, a specific type of the content of the database, the need for a new approach. Each one based on the need to rewrite the text of the pages, providing real-time strong message is certainly not an ideal solution. Web servers for example, provide an interface so t
10、hat other applications can be linked with a common interface through this method, Customization of the executable can receive from the clients information, including through hyperlinks or click on the browser type uniform resource locators (URL) of the details of the request pages . Application proc
11、edures for client requests to generate the corresponding responses, but not from the server disk read text or document markers. These early methods from the beginning, and gradually form a complete series of methods to create dynamic website in response to user requests or information changes. Appli
12、cation procedures for these interfaces are still in use, was known as the Common Gateway Interface (Common GatewaInterface, CGI), This is a available in any language (such as C) to achieve the standard. It arises from the use of those c g i-b i n directory application (here, b, i n represents the bi
13、nary code, instead of text). Early applications are compiled after the procedure, usually in C or C+ preparation. However, this naturally know the C programming language, Whenever the right procedures and do very little writing or markings on the changes, we must recompile, re-generate executable fi
14、les, which limits the C and GI use dynamic pages. Instead, the development of a scripting language used to create Web pages, Such language is useful summary and report language (Practical Extraction and Re porting Language), or referred to as Perl It allows information to the founders of a very simp
15、lified similar to C or C + + language code. Perl script, it reads text and markings use standard input (sintd) and the standard output (s t u d o t) function through the C and G I. We b server links General output to the browser. Per b We still is a popular language, particularly in the UN-based X -
16、 or L I i n u x systems. However, this language captures up is not very easy. especially for those who are not C or C+ language based on the Web especially developers. Now, some new scripting language emerged, and make the website more easily. We mainly look at how they enable developers to work mor
17、e easily. 1.1 Server-side scripting technologyFor the server-side scripting needs some type of intermediate applications, or plug-in procedure to connect. It must be able to accept the request of users, read and explained to the appropriate server based on the script file, and then create the output
18、 pages, We also transmitted to the server, where as a response sent to the client. In some cases, this task is divided into two parts : an application or plug-in procedures with the We b communication between the server (usually C through GI). Another dealt with the interpretation and implementation
19、 of the script. This is PSA of the situation, the script engine used in other circumstances the same. Perl is a popular server-side scripting language, but now there are a lot of other languages. In the UN and on I-L i n u x system, A new called PHP (Personal Home Page) the language is becoming incr
20、easingly popular. Some language is the goal of some specific types of users, For example, TCL is a scientific environment in the complex arithmetic simplistic language. 1.2 Microsofts technology to create dynamic pages With Microsoft Windows NT 3.51 launched their We b server software FAQ, I nformat
21、ion Server (IIS 1.0. This is one of many functions of a certain standard The software, it supports C G. I. But Microsoft also offers an interface, allowing the use of C and C + + language compiler, such as generating executable files, make operations more efficient. This is Internet Server Applicati
22、on Programming Interface (Internet Ser ver Application Programming Interface, ISAPI). It can provide than traditional P e r l engines and other technology-dependent s t i n d and s t o d u t broader We b server to visit. Since then Microsoft and other third party developers through the introduction
23、of many AP S connect to the S software application, This is why A P S can connect to the I I S, as well as other Microsoft server Dynamic Technology. APS in the past, the most widely used is Inettern Database Connectivity (Internet Database Co. nnector. IPC). A S P We b developers to use Microsofts
24、platform opened up a new vista, This enables the data in the database to create dynamic web easier. In particular, it has introduced a template (template ), which includes an insert with a database query to the results of the text and marking the template files.Chapter 2 JavaScript2.1 whats JavaScri
25、ptJavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more. JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera. Befor
26、e you continue you should have a basic understanding of the following:JavaScript was designed to add interactivity to HTML pagesJavaScript is a scripting language (a scripting language is a lightweight programming language)A JavaScript consists of lines of executable computer codeA JavaScript is usu
27、ally embedded directly into HTML pagesJavaScript is an interpreted language (means that scripts execute without preliminary compilation)Everyone can use JavaScript without purchasing a licenseJavaScript gives HTML designers a programming tool HTML authors are normally not programmers, but JavaScript
28、 is a scripting language with a very simple syntax! Almost anyone can put small “snippets” of code into their HTML pages JavaScript can put dynamic text into an HTML page A JavaScript statement like this: document.write(” + name + “”) can write a variable text into an HTML page JavaScript can react
29、to events A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element JavaScript can be used to validate data A JavaScript can be used to validate form data before it is submitted to a server, this will save the server fro
30、m extra processing JavaScript can be used to detect the visitors browser A JavaScript can be used to detect the visitors browser, and depending on the browser load another page specifically designed for that browser JavaScript can be used to create cookies A JavaScript can be used to store and retrieve information on the visitors comput
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1