1. 首先,这俩都是Dynamic Pages,就有另外一个Static Pages,顾名思义,html都是写好了的,不会随着调用的时间而改变。然而Dynamic是在服务器接收到请求后,处理得出的html文件,是动态变化的。
2. Client:
- A web author writes a set of instructions for creating HTML, and saves it within an .htm file. The author also writes a set of instructions in a different language. This might be contained within the .htm file, or within a separate file.
- Sometime later, a user types a page request into their browser, and the request is passed from the browser to the web server.
- The web server locates the .htm page, and may also have to locate a second file that contains the instructions.
- The web server sends both the newly created HTML stream and instructions back across the network to the browser.(服务器给回两个文件,一个html,一个instruction file)
- A module within the browser processes the instructions and returns it as HTML within the .htm page – only one page is returned, even if two were requested. (然后browser再根据instruction来形成html)
- The HTML is then processed by the browser which displays the page
3. Server:
- A web author writes a set of instructions for creating HTML, and saves these instructions within a file
- Sometime later, a user types a page request into their browser, and the request is passed from the browser to the web server
- The web server locates the file of instructions
- The web server follows the instructions in order to create a stream of HTML
- The web server sends the newly created HTML stream back across the network to the browser (服务器只给回来一个file)
- The browser processes the HTML and displays the page
JavaScript,跟Java没关系,是根据LiveScript演进的,只是套用了Java的基本句法,使得方便流通。Microsoft还有一个JScript,从IE3.0到IE6.0。
VBScript,微软的,除了IE没支持的。。
ActiveX Controls
Java Applet
Curl
5. Server技术:
CGI, Common Gateway Interface (CGI)。不好学,大部分Unix用这个在服务器生成Script.
JSP, JavaServer Pages (JSP), Combine Java 和HTML XML来生成script。
ColdFusion,很多服务器平台都可用,IIS, Netscape Enterprise Server and Unix/Apache。与ASP区别是,ASP主要用编程语言写的,比如C# VB,CF主要是用HTML的tag写的。缺点不免费。
PHP,PHP HyperText Preprocessor,最大亮点是开源免费。
ASP.NET:
ASP – a server-side technology for creating dynamic web pages that only lets you use scripting languages
ASP.NET – a server-side technology for creating dynamic web pages that lets you use any fully-fledged programming language supported by .NET
VB.NET – our chosen programming language for writing code in ASP.NET
Reference: http://www.codeproject.com/Articles/1346/Beginning-ASP-NET-using-VB-NET