SLIDE 6
- Prof. Dr. Dr. h.c. mult. Gerhard Krüger, Albrecht Schmidt: Web Engineering, WS99/00
Kapitel 5- Seite 21
File Upload II The Mail Sent
From albrecht Thu Jan 20 17:36:21 2000 Received: from teco.edu (teco154pc [129.13.170.154])by teco03a.teco.uni- karlsruhe.de (8.8.5/8.8.5) with ESMTP id RAA12998 for <albrecht@teco.edu>; Thu, 20 Jan 2000 17:36:21 +0100 (MET) Message-Id: <200001201636.RAA12998@teco03a.teco.uni-karlsruhe.de> Date: Thu, 20 Jan 2000 17:36:16 +0100 From: Albrecht Schmidt albrecht@teco.edu X-Mailer: Mozilla 4.6 [en] (WinNT; I) To: albrecht@teco.edu Subject: Form posted from Mozilla Content-type: multipart/form
- data; boundary=-----8731104
- ----8731104
Content-Disposition: form-data; name="upfile"; filename="C:\Bootlog.txt" Content-Type: text/plain [0012DFB6] Loading Device = C:\WINDOWS\HIMEM.SYS [0012DFB8] LoadSuccess = C:\WINDOWS\HIMEM.SYS ... EndTerminate = KERNEL
Content-Disposition: form-data; name="note" Bootlog
- ----8731104
- Prof. Dr. Dr. h.c. mult. Gerhard Krüger, Albrecht Schmidt: Web Engineering, WS99/00
Kapitel 5- Seite 22
Browser Script
HTML file contains content (visualization) and script (execution)
extends HTML with control mechanisms
is interpret by the browser different scripting languages, e.g.
ECMAScript – standardized language (similar to JavaScript/JScript ) JavaScript, JScript(Netscape, Internet Explorer) VBScript (Internet Explorer)
mainly used for
(small) calculations without accessing the server input validation, input pre-processing animations, e.g. menus, images
additional windows (e.g. adverts)
- Prof. Dr. Dr. h.c. mult. Gerhard Krüger, Albrecht Schmidt: Web Engineering, WS99/00
Kapitel 5- Seite 23
ECMAScript
Standard
ECMA-262
ECMAScriptLanguage Specification
2nd edition (August 1998)
"This ECMA Standard defines the ECMAScript scripting
language, a general purpose, cross-platform programming language.“
This ECMA Standard is based on several originating
technologies, the most well-known being JavaScript (Netscape Communications) and Jscript (Microsoft Corporation).
http://www.ecma.ch/
ftp://ftp.ecma.ch/ecma-st/Ecma-262.pdf
- Prof. Dr. Dr. h.c. mult. Gerhard Krüger, Albrecht Schmidt: Web Engineering, WS99/00
Kapitel 5- Seite 24
JavaScript – the Language
"JavaScript is a lightweight, object-based scripting language"
variables are not typed data types
Numbers (64Bit floating point) Booleans Strings Objects, Arrays
control structures
conditional execution ( if/else, switch/case) loops ( do/while, for, for/in, while)
functions/methods regular expressions – RegExp() – similar to Unix case sensitive