Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2
Đang chuẩn bị liên kết để tải về tài liệu:
Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2
Thanh Thanh
40
12
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'creating applications with mozilla-chapter 5. scripting mozilla- p2', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 5. Scripting Mozilla- P2 Figure 5-2. Toggling the state of menu items in xFly The following section explains more about hooking scripts up to the interface. Needless to say when you use a method like getElementsByAttribute that operates on all elements with a particular attribute value you must be careful not to grab elements you didn t intend like a button elsewhere in the application that gets disabled for other purpose . Notes 1 You can use other DOM methods but these methods are most commonly used in the XPFE. Mozilla s support for the DOM is so thorough that you can use the W3C specifications as a list of methods and properties available to you in the chrome and in the web content the browser displays. The full W3C activity pages including links to the specifications implemented by Mozilla can be found at http www.w3.org DOM . 5.3. Adding Scripts to the UI Once you are comfortable with how JavaScript works in the context of the user interface layer and are familiar with some of the primary DOM methods used to manipulate the various elements and attributes you can add your own scripts to your application. Though you can use other techniques to get scripts into the UI one of the most common methods is to use Mozilla s event model which is described in the next few sections. 5.3.1. Handling Events from a XUL Element Events are input messages that pass information from the user interface to the application code. Capturing this information or event handling is how you usually tell scripts when to start and stop. When the user clicks a XUL button for instance the button listens for the click event and may also handle that event. If the button itself does not handle the event e.g. by supplying executable JavaScript in an event handler attribute then the event bubbles or travels further up into the hierarchy of elements above the button. The event handlers in Example 5-3 use simple inline JavaScript to show that the given event e.g. the window loading in the .
TÀI LIỆU LIÊN QUAN
Getting Started: Creating Applications with µVision
OSGi in Action: Creating Modular Applications in Java
Modular Java Creating Flexible Applications with OSGi and Spring
Programming in Go: Creating Applications for the 21st Century, Rough Cuts
Professional Flash Mobile Development: Creating Android and iPhone Applications
Ebook Developer’s Guide
The Creating Views
THIẾT KẾ CÁC ỨNG DỤNG GUI BẰNG WINDOWS FORMS
Ebook Professional android application development
HLSL and Pixel Shaders for XAML Developers
crossorigin="anonymous">
Đã 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.