Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 733 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
733
Dung lượng
6,09 MB
Nội dung
[...]... both fully support JavaScriptJavaScript in a Browser Client-side JavaScript Client-side JavaScript is the most common form of the language The script should be included in or referenced by an HTML document for the code to be interpreted by the browser Suppose you load a web page with a JavaScript- generated banner The browser begins interpreting the HTML code and then encounters a JavaScript script... course in basic JavaScript to help readers with no prior knowledge of JavaScript as well as those who require a brief refresher This chapter covers all the fundamental elements of JavaScript and will prepare the reader to continue on with the material in this book How to Read This Book As the title suggests, this book is geared towards advanced JavaScript programming and has the experienced JavaScript programmer... one -second- long requests per second Each of these ten requests is a CGI script executing on the server Helpers, Plug-ins, Applets, and CGI Web page authoring consists of several layers The more powerful the layer, the more complex it is to program The fundamental layer is HTML As we explained earlier, JavaScript extends HTML to a dynamic user/page interaction Helpers, plug-ins, and applets extend JavaScript s... of this book and is very difficult to learn without detailed documentation n 5 What is JavaScript? JavaScript is an easy-to-use object scripting language designed for creating live online applications that link together objects and resources on both clients and servers While Java is used by programmers to create new objects and applets, JavaScript is designed for use by HTML page authors and enterprise... the server JavaScript s design and concepts represent the next generation of software for the Internet JavaScript is: n Designed for creating network-centric applications n Complementary to and integrated with Java n Complementary to and integrated with HTML n Open and cross-platform With JavaScript, an HTML page might contain a form that processes data on the client side A server-side JavaScript might... HTML on the fly A page might contain JavaScript scripts that run on both the client and the server Who Can Benefit from JavaScript? Generally speaking, web surfers benefit most from JavaScript, because they have the opportunity to enjoy the language’s capabilities in the form of games, animation, interaction, and so forth Netscape Communications benefited from JavaScript early on, because it gave them... Netscape Navigator fully support JavaScript Many other companies believe that they will benefit from JavaScript and its descendants The words of Rose Ann Giordano, vice president of the Internet Business Group at Digital Equipment Corp., demonstrate it: “Tools like JavaScript will unleash a new wave of creativity and transform the Internet in ways no one can predict JavaScript and other developments... also mentioned how JavaScript matches his company’s plans in a press release: JavaScript is an exciting technology because it represents the next generation of software designed specifically for the Internet Hewlett-Packard is committed to open standards and is a supporter of JavaScript because it complements Hewlett-Packard’s open systems architecture.” 1 Chapter Introduction to JavaScript 6 n Chapter... December 1995, Sun Microsystems took over LiveScript development and changed its name to JavaScript On the one hand, JavaScript is related to Java in its C++ object flavor On the other hand, JavaScript s vernacular is much reduced compared to Java, in order to make it suitable for less experienced programmers and scripters JavaScript s first and foremost advantage is in its ease of learning Additionally,... Passing Values Between Java and JavaScript Getting a Handle for the Browser Window Accessing JavaScript Objects and Properties Calling JavaScript Methods Other Methods in the JSObject Class JavaScript Exception JavaScript to Java Communication Accessing Java Directly Controlling Java Applets . Interface) 4
What is JavaScript? 5
Who Can Benefit from JavaScript? 5
The History of JavaScript 6
JavaScript in a Browser 6
Client-side JavaScript 6
Browser.