JavaScript JavaScrip
Số trang: 0
Loại file: pdf
Dung lượng: 492.79 KB
Lượt xem: 8
Lượt tải: 0
Xem trước 10 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
JavaScript là ngôn ngữ lập trình để thao tác các trang web sử dụng trong trình duyệt. Nó là công nghệ Điều đó đặt các "động" vào động HTML. Học JavaScript là điều cần thiết cho bất cứ ai Tăng cường hoặc phát triển ứng dụng web, và dĩ nhiên, nó cũng tích hợp vào cơ cấu của phát triển web Domino. Nếu bạn đã có một nắm bắt tốt của JavaScript, tập trung của bạn trên làm thế nào để được có nên Kết hợp vào các ứng dụng JavaScript Domino. Không có phiên bản đặc biệt của JavaScript...
Nội dung trích xuất từ tài liệu:
JavaScript JavaScrip JavaScriptJavaScript is the programming language used to manipulate web pages in browsers.It is the technology that puts the dynamic into Dynamic HTML. LearningJavaScript is essential for anyone enhancing or developing web applications, and ofcourse, it is well integrated into the fabric of Domino web development.If you already have a good grasp of JavaScript, your focus should be on how toincorporate JavaScript into Domino applications. There is no special version ofJavaScript for Domino, but how you work with JavaScript in this environment mayseem a little foreign.In classic Domino applications, JavaScript worked only in browsers. Version 8.5changed this, and set the stage for using JavaScript in server-side agents. Thischapter focuses on using JavaScript in the classic sense, to manipulate form and pageelements in browsers. Code samples are intended to illustrate concepts and strategiesbut not finished products. Use the samples as starting points for your own work, andcertainly go on to explore JavaScript frameworks like Dojo and JQuery.This chapter includes these topics: Inserting JavaScript code into Domino applications • Using JavaScript to enhance forms and pages • Writing your own Ajax functions •Using JavaScript in web applicationsJavaScript is used pervasively in web applications. Of course, you can write Dominoapplications without coding a line yourself—Domino will insert the few lines itneeds anyway. JavaScript JavaScript provides another coding option for many tasks. Field validation, for example, can be done with @formulas or with JavaScript. Unfortunately, not everything you might want to do can be done with a single language, so web applications end up as a mixture of @formulas, LotusScript (or Java), HTML, CSS, and JavaScript. Contemporary web applications use JavaScript extensively to improve performance and page behavior, so if you dont know much about the language, grab a book or look through one of the many online JavaScript tutorials. A few hours of study should be enough to get you going. Full mastery of JavaScript will take considerably longer as it is a rich and powerful scripting language. It is also useful to grasp the essentials of the Document Object Model (DOM), whichDownload from Wow! eBook is intended to represent and organize elements of a web page and also to provide an API for accessing those elements with a programming language like JavaScript. The structure and naming conventions for the DOM are fairly standard across all browsers, but there are a few differences; some objects and methods are supported by some browsers and not by others. A few illustrations of such differences are presented in this chapter. Also, spend a little time learning about the Browser Object Model (BOM), which is similarly intended to represent the browser and to provide access to browser objects (like the window object). Although there is good similarity here, browsers are less standardized than we might like, and this can impact how you write your JavaScript. For this reason, it is important to test your JavaScript with multiple browsers. The primary purpose of this chapter is to focus on using JavaScript within a Domino Designer context. The examples may help you to learn some JavaScript, but this chapter is not intended as a primer for the language. Keep it simple, comment the complex Programming is half engineering and half art. Be kind to the next developer who has to work with your code. Format your scripts with indentations, use sensible variable names, and keep statements and functions relatively simple. Also leave tracks. Add a few comments in your functions. Use a page within the template to document complex strategies. Yes, it takes a bit of time, but it is the professional thing to do. [ 156 ] Chapter 6Be alert for disabled JavaScript and otheroptions in browsersIn the past, some users disabled JavaScript in their browsers, and older Dominoapplications may have provided workarounds or notices that were displayedwhenever JavaScript support was disabled or unavailable. Those days are long gone;enabled JavaScript supp ...
Nội dung trích xuất từ tài liệu:
JavaScript JavaScrip JavaScriptJavaScript is the programming language used to manipulate web pages in browsers.It is the technology that puts the dynamic into Dynamic HTML. LearningJavaScript is essential for anyone enhancing or developing web applications, and ofcourse, it is well integrated into the fabric of Domino web development.If you already have a good grasp of JavaScript, your focus should be on how toincorporate JavaScript into Domino applications. There is no special version ofJavaScript for Domino, but how you work with JavaScript in this environment mayseem a little foreign.In classic Domino applications, JavaScript worked only in browsers. Version 8.5changed this, and set the stage for using JavaScript in server-side agents. Thischapter focuses on using JavaScript in the classic sense, to manipulate form and pageelements in browsers. Code samples are intended to illustrate concepts and strategiesbut not finished products. Use the samples as starting points for your own work, andcertainly go on to explore JavaScript frameworks like Dojo and JQuery.This chapter includes these topics: Inserting JavaScript code into Domino applications • Using JavaScript to enhance forms and pages • Writing your own Ajax functions •Using JavaScript in web applicationsJavaScript is used pervasively in web applications. Of course, you can write Dominoapplications without coding a line yourself—Domino will insert the few lines itneeds anyway. JavaScript JavaScript provides another coding option for many tasks. Field validation, for example, can be done with @formulas or with JavaScript. Unfortunately, not everything you might want to do can be done with a single language, so web applications end up as a mixture of @formulas, LotusScript (or Java), HTML, CSS, and JavaScript. Contemporary web applications use JavaScript extensively to improve performance and page behavior, so if you dont know much about the language, grab a book or look through one of the many online JavaScript tutorials. A few hours of study should be enough to get you going. Full mastery of JavaScript will take considerably longer as it is a rich and powerful scripting language. It is also useful to grasp the essentials of the Document Object Model (DOM), whichDownload from Wow! eBook is intended to represent and organize elements of a web page and also to provide an API for accessing those elements with a programming language like JavaScript. The structure and naming conventions for the DOM are fairly standard across all browsers, but there are a few differences; some objects and methods are supported by some browsers and not by others. A few illustrations of such differences are presented in this chapter. Also, spend a little time learning about the Browser Object Model (BOM), which is similarly intended to represent the browser and to provide access to browser objects (like the window object). Although there is good similarity here, browsers are less standardized than we might like, and this can impact how you write your JavaScript. For this reason, it is important to test your JavaScript with multiple browsers. The primary purpose of this chapter is to focus on using JavaScript within a Domino Designer context. The examples may help you to learn some JavaScript, but this chapter is not intended as a primer for the language. Keep it simple, comment the complex Programming is half engineering and half art. Be kind to the next developer who has to work with your code. Format your scripts with indentations, use sensible variable names, and keep statements and functions relatively simple. Also leave tracks. Add a few comments in your functions. Use a page within the template to document complex strategies. Yes, it takes a bit of time, but it is the professional thing to do. [ 156 ] Chapter 6Be alert for disabled JavaScript and otheroptions in browsersIn the past, some users disabled JavaScript in their browsers, and older Dominoapplications may have provided workarounds or notices that were displayedwhenever JavaScript support was disabled or unavailable. Those days are long gone;enabled JavaScript supp ...
Tìm kiếm theo từ khóa liên quan:
lập trình máy tính code lập trình kinh nghiệm lập trình ngôn ngữ lập trình thủ thuật lập trình mẹo lập trìnhTài liệu liên quan:
-
Giáo trình Lập trình hướng đối tượng: Phần 2
154 trang 277 0 0 -
Bài thuyết trình Ngôn ngữ lập trình: Hệ điều hành Window Mobile
30 trang 268 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 267 0 0 -
Bài giảng Tin học lớp 11 bài 1: Giới thiệu ngôn ngữ lập trình C#
15 trang 240 0 0 -
Giáo trình Lập trình cơ bản với C++: Phần 1
77 trang 232 0 0 -
Bài giảng Một số hướng nghiên cứu và ứng dụng - Lê Thanh Hương
13 trang 227 0 0 -
Giáo án Tin học lớp 11 (Trọn bộ cả năm)
125 trang 218 1 0 -
Thủ thuật giúp giải phóng dung lượng ổ cứng
4 trang 217 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 209 0 0 -
15 trang 200 0 0