Đang chuẩn bị liên kết để tải về tài liệu:
Building OpenSocial Apps- P3

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Building OpenSocial Apps- P3: Nhà phát triển của Thư viện Series từ Addison-Wesley cung cấp hành nghề lập trình với độc đáo, tài liệu tham khảo chất lượng cao hướng dẫn về các ngôn ngữ lập trình công nghệ mới nhất và họ sử dụng trong công việc hàng ngày của họ. Tất cả các sách trong thư viện của Nhà phát triển được viết bởi chuyên gia công nghệ các học viên những người có kỹ năng đặc biệt tại các tổ chức và trình bày thông tin một cách đó là hữu ích cho các lập trình viên khác | 74 Chapter 5 Communication and Viral Features Update the UI for the failures for var i 0 i failure.length i clicked current_list.list_dom myspace.com failure i if clicked clicked.style.backgroundColor red So there is a lot going on here.The callback for requestShareApp is especially important. The first thing that really happens is that the various types of errors are trapped and an error message is displayed if one is found. If there was no error we cycle through the list of currently selected users revert the background of the corresponding div tags to white and reset the list. There are now two possibilities the user either canceled the pop-up or hit Send. If the pop-up was canceled there s no more work to do. If the pop-up wasn t canceled the user must have hit the Send button so we need to figure out who the actual recipients were.We do this by accessing the responsevalues object in the Responseitem that s passed back to us. responsevalues contains two arrays One success contains the list of users who were successfully sent an invite.The other failure contains the list of users who had an error occur when the invite was sent. Both arrays contain the integer IDs of the specified users. There are a couple of things to note when accessing the success and failure arrays. First users who already have the app installed won t get the invite but neither will they show up in either array. Second the IDs in the array are integers so they don t exactly match the IDs that are sent by the API in the format myspace.com 6221 . Back to the function at hand.We extract the success and failure arrays and loop through them.We turn the background color of all the successful recipients to green and that of all the failures to red.You ll notice that we have to append myspace.com to the beginning of each ID so it matches up with the IDs we fetched from the API. It may be useful to add a More button to your app something like Select Random 20 that will randomly select 20 of the user s

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.