Practical prototype and scipt.aculo.us part 37

Practical prototype and part 37 :The information in this book is distributed on an "as is" basis, without warranty Although every pre-caution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. | 210 CHAPTER 9 WHAT YOU SHOULD KNOW ABOUT DHTML AND The lib folder contains a copy of Prototype just in case you don t have it already. We ll stick with the one we ve already got oftentimes the version bundled with is a little behind the stand-alone version. But the latest and the latest Prototype each fetched from its respective web site are guaranteed to work together. The src folder contains the files we re interested in is the main file the one that declares the version number and ensures that Prototype is already loaded. provides animations and advanced UI flourishes. provides drag-and-drop support the ability to define certain elements on a page as draggables that can be dropped onto other elements. provides several advanced UI controls among them an autocompleter a text field that offers suggestions as you type and an in-place editor allowing a user to view and edit content on the same page . provides a scrollbar-like slider a button that a user can drag to any point along a track. provides a simple API for playing sounds on a web page. is a utility file for DOM element creation. Because none of the aforementioned scripts rely on it and it provides no end-user functionality we won t be covering this part. is a utility file that s used for unit tests. Speaking of unit tests the test folder contains a bunch of unit and functional automated and manual tests. These tests assert that does what it claims to do in a cross-browser manner. We won t be bothering with this folder either. Loading on a Page There are several ways to load into a web page. All of them begin the same way that Prototype is loaded. First as in Chapter 1 create a boilerplate file and include a script tag that references CHAPTER 9 WHAT YOU SHOULD KNOW .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.