Ajax in Oracle JDeveloper phần 2

Sao chép một bản của ấn phẩm này hoặc các bộ phận có quy định chỉ được phép theo quy định của Luật Bản quyền tác giả của Đức ngày 09 Tháng Chín 1965, trong phiên bản hiện tại của nó, và cho phép sử dụng luôn luôn phải được lấy từ Springer. Vi phạm phải chịu trách nhiệm để bị truy tố theo Luật Bản quyền tác giả Đức. | JDeveloper Integrated JavaScript Editor 11 Creating the JavaScript file separately has an advantage as the integrated JavaScript Editor may be availed of. Create a JavaScript file by selecting File New and in the New Gallery window Web Tier HTML JavaScript File. Copy some JavaScript code to the JavaScript file. Create a JSP file to add the JavaScript file to with File New. In the New Gallery window select Web Tier JSP in Categories and select JSP in Items. The JavaScript file and the JSP file are shown in Fig. . Fig. JavaScript File One of the features of the JavaScript editor is syntax highlighting. To add syntax highlighting select Tools Preferences and in the Preferences window select Code Editor Syntax Colors. Select JavaScript in the Language list. The Font Style Foreground color and Background color may be set for the different JavaScript constructs in the Syntax Colors window as shown in Fig. . 12 1 What is Ajax Fig. Setting Syntax Highlighting JavaScript editor also provides code completion. As the JavaScript syntax varies in the different browsers we need to specify the browser for which code completion is to be implemented. Select JavaScript Editor in the Preferences window and select a Target Browser for code completion as shown in Fig. . Fig. Selecting Target Browser JDeveloper Integrated JavaScript Editor 13 In the JavaScript file right-click and select Source Completion Insight or Source Smart Completion Insight for code insight as shown in Fig. . Fig. Using Code Insight Another feature of the JavaScript editor is Go To Declaration using which a JavaScript variable or function may be navigated to from a usage of the JavaScript variable function. For example select a usage of the variable xmlHttpRequest right-click and select Go To Declaration to go to the declaration of the xmlHttpRequest variable as shown in Fig. .

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
112    6    1    16-06-2024
Đã 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.