TAILIEUCHUNG - Ajax in Oracle JDeveloper phần 10

Trong phần này, chúng ta sẽ tạo ra một ứng dụng Google Search Ajax sử dụng dịch vụ Google tìm kiếm địa phương. thêm Google Ajax Search API thư viện JavaScript. Chỉ định Google Ajax Search API quan trọng trong các thuộc tính src cho các thẻ script. | Creating a Google Ajax Web Search Application 199 Local Web Blog News Book Fig. Tabbed Draw Mode The search results may be displayed in one of the three expansion modes open closed or partial. In the open expansion mode the search results are displayed fully. In the closed mode the search results are not displayed until a UI element such as an arrow is clicked. The partial search result displays partial results. The default expansion mode is partial. Creating a Google Ajax Web Search Application In this section we shall create a Google Ajax Search application using the Google Local search service. To the add the Google Ajax Search API JavaScript library. Specify the Google Ajax Search API key in the src attribute for the script tag. script src http uds api file v key ABQIAAAAItAEL-H-GuOHsDfD7MxmlhSFcmgG4ILrfBhrLV-hrgg2-UNeQhR4CSVn6vmsU_8IvmmjnIcWuaTufg type text javascript script Create a JavaScript function onLoad to add a search control and search service. In the onLoad function create a search control object. var searchcontrol new GSearchControl Set the result set size to which typically returns 8 results. T Create a GlocalSearch searcher object for the Google Local search service. var localsearch new GlocalSearch Add the searcher to the search control. localSearch 200 10 Web Search with Ajax Set the location for which the local search is to be performed with the setCenterPoint location method. Berlin Germany Create a GdrawOptions object to specify the draw options for the search results. var drawOptions new GdrawOptions Set the draw mode to linear. AR Specify a div element to display the search control results. div id searchcontrol Loading div Activate the search control and display the results in the searchcontrol div. .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.