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
9,43 MB
Nội dung
[...]... 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 in mind However, the first few chapters do provide basic primers on both HTML and JavaScript Those with limited JavaScript experience should... 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... 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 ... 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 capabilities even more Helpers Browsers are very powerful in converting HTML tags into attractive pages, as well as interpreting JavaScript scripts to animated commercials, but they have some deficiencies in other... application into it At this stage we will not discuss plug-ins, because a full chapter is dedicated to these mechanisms and their powerful connections with JavaScript 1 Chapter Introduction to JavaScript 4 n Chapter 1 Java Applets OK, so you have tried HTML, JavaScript, helpers, and plug-ins (in this order) and you are still not satisfied with your web page Let’s say you want to place a rotating globe on .