Essentials of Javascript - Cultural View
Essentials of Javascript - Cultural View Essentials of Javascript - Cultural View
Douglas Crockford 81 Works • JavaScript: The Good Parts ISBN 978-0596517748. External links • Douglas Crockford's homepage [1] • Douglas Crockford's LinkedIn page [7] • Douglas Crockford's Lectures on Javascript [72] References [1] http://crockford.com/ [2] Douglas Crockford speaker biography (http://www.almaden.ibm.com/cs/new_paradigms/crockfor.html), New Paradigms for Using Computers conference, IBM Almaden Research Center, August 22, 1996 [3] The Expurgation of Maniac Mansion: A Memoir by Douglas Crockford (http://www.crockford.com/wrrrld/maniac.html) [4] JSON: The Fat-Free Alternative to XML (http://www.json.org/fatfree.html), Douglas Crockford, December 6, 2006 [5] RFC 4627: The application/json Media Type for JavaScript Object Notation (JSON) (http://tools.ietf.org/html/rfc4627) [6] Coders at Work:Douglas Crockford (http://www.codersatwork.com/douglas-crockford.html), Peter Seibel's Coders at Work website [7] http://www.linkedin.com/in/douglascrockford
DWR (Java) 82 DWR (Java) Developer(s) David Marginian / Joe Walker / Dojo Foundation Stable release 2.0.6 / February 12, 2009 Preview release 3.rc2 / February 12, 2008 Development status Active Written in Java and JavaScript Operating system Cross-platform Size 1.08 MB (archived) Type Ajax technology License Apache 2.0 Licence Website http://directwebremoting.org/ DWR, or Direct Web Remoting, is a Java open source library that helps developers write web sites that include Ajax technology. It allows code in a web browser to use Java functions running on a web server as if those functions were within the browser. It consists of two main parts: • Code to allow JavaScript to retrieve data from a servlet-based web server using Ajax principles. • A JavaScript library that makes it easier for the web site developer to dynamically update the web page with the retrieved data. DWR takes a novel approach to Ajax by dynamically generating JavaScript code based on Java classes. [1] Thus the web developer can use Java code from JavaScript as if it were local to the web browser; whereas in reality the Java code runs in the web server and has full access to web server resources. For security reasons the web developer must configure exactly which Java classes are safe to export (which is often called web.xml or dwr.xml). This method of remoting functions from Java to JavaScript gives DWR users a feel much like conventional RPC mechanisms like RMI or SOAP, with the benefit that it runs over the web without requiring web browser plug-ins. DWR does not consider the web browser / web server protocol to be important, and prefers to ensure that the programmer's interface is natural. The greatest challenge to this is to marry the asynchronous nature of Ajax with the synchronous nature of normal Java method calls. In the asynchronous model, result data is only available some time after the initial call is made. DWR solves this problem by allowing the web developer to specify a function to be called when the data is returned using an extra method parameter.This extra method is called CallBack Method. Here is a sample Callback: MJavaClassOnJs.getListProducts(selectedCategory,{ callback:function(returnedList){ dwr.util.addOptions(myComboId,returnedList,"productId","productName") } }) The callback is that function inside the Json object passed as an additional parameter to the remoted function. With version 2.0 DWR supports Reverse Ajax [1] where Java code running on the server can deliberately send dedicated JavaScript to a browser.
- Page 33 and 34: JavaScript syntax 30 Operators The
- Page 35 and 36: JavaScript syntax 32 alert( Boolean
- Page 37 and 38: JavaScript syntax 34 Conditional op
- Page 39 and 40: JavaScript syntax 36 With The with
- Page 41 and 42: JavaScript syntax 38 Methods A meth
- Page 43 and 44: JavaScript syntax 40 Inheritance Ja
- Page 45 and 46: JavaScript syntax 42 See also • C
- Page 47 and 48: JavaScript Style Sheets 44 } fontSi
- Page 49 and 50: JavaScript engine 46 JavaScript eng
- Page 51 and 52: Ajax (programming) 48 Ajax (program
- Page 53 and 54: Ajax (programming) 50 • Ajax-powe
- Page 55 and 56: ?: 52 ?: In computer programming, ?
- Page 57 and 58: ?: 54 Furthermore, the ternary oper
- Page 59 and 60: ?: 56 ?: in style guidelines Some c
- Page 61 and 62: Appcelerator Titanium 58 See also
- Page 63 and 64: Bookmarklet 60 Bookmarklet A bookma
- Page 65 and 66: Bookmarklet 62 References [1] Domai
- Page 67 and 68: Client-side JavaScript 64 implement
- Page 69 and 70: Client-side JavaScript 66 Reference
- Page 71 and 72: dhtmlx [1] Comparison of JavaScript
- Page 73 and 74: ility / ion Comparison of JavaScrip
- Page 75 and 76: Comparison of JavaScript frameworks
- Page 77 and 78: Comparison of JavaScript frameworks
- Page 79 and 80: Comparison of JavaScript-based sour
- Page 81 and 82: Comparison of JavaScript-based sour
- Page 83: Douglas Crockford 80 Douglas Crockf
- Page 87 and 88: EMVC 84 EMVC Developer(s) Ed Hertzo
- Page 89 and 90: Brendan Eich 86 References [1] Stev
- Page 91 and 92: JSDoc 88 JSDoc JSDoc is a syntax fo
- Page 93 and 94: JSDoc 90 History The earliest examp
- Page 95 and 96: JSSP 92 JSSP JSSP, or JavaScript Se
- Page 97 and 98: JScript 94 JScript is sometimes ref
- Page 99 and 100: JScript 96 [9] http://msdn2.microso
- Page 101 and 102: JSON 98 JSON Filename extension .js
- Page 103 and 104: JSON 100 Using JSON in Ajax The fol
- Page 105 and 106: JSON 102 /> state='NY' postalCode='
- Page 107 and 108: JSON 104 parseResponse({"Name": "Ch
- Page 109 and 110: JSON 106 [21] Ben-Kiki, Oren; Evans
- Page 111 and 112: JsonML 108 ["person", {"created":"
- Page 113 and 114: Lightbox (JavaScript) 110 Lightbox
- Page 115 and 116: Lively Kernel 112 Lively Kernel Liv
- Page 117 and 118: Lively Kernel 114 The Lively Wiki T
- Page 119 and 120: Lively Kernel 116 }); } External li
- Page 121 and 122: Minification (programming) 118 Mini
- Page 123 and 124: Objective-J 120 Objective-J Paradig
- Page 125 and 126: John Resig 122 John Resig John Resi
- Page 127 and 128: Reverse Ajax 124 External links •
- Page 129 and 130: Seed (programming) 126 Seed (progra
- Page 131 and 132: Seed (programming) 128 See also •
- Page 133 and 134: Comparison of Server-side JavaScrip
Douglas Crockford 81<br />
Works<br />
• JavaScript: The Good Parts ISBN 978-0596517748.<br />
External links<br />
• Douglas Crockford's homepage [1]<br />
• Douglas Crockford's LinkedIn page [7]<br />
• Douglas Crockford's Lectures on <strong>Javascript</strong> [72]<br />
References<br />
[1] http://crockford.com/<br />
[2] Douglas Crockford speaker biography (http://www.almaden.ibm.com/cs/new_paradigms/crockfor.html), New Paradigms for Using<br />
Computers conference, IBM Almaden Research Center, August 22, 1996<br />
[3] The Expurgation <strong>of</strong> Maniac Mansion: A Memoir by Douglas Crockford (http://www.crockford.com/wrrrld/maniac.html)<br />
[4] JSON: The Fat-Free Alternative to XML (http://www.json.org/fatfree.html), Douglas Crockford, December 6, 2006<br />
[5] RFC 4627: The application/json Media Type for JavaScript Object Notation (JSON) (http://tools.ietf.org/html/rfc4627)<br />
[6] Coders at Work:Douglas Crockford (http://www.codersatwork.com/douglas-crockford.html), Peter Seibel's Coders at Work website<br />
[7] http://www.linkedin.com/in/douglascrockford