TAILIEUCHUNG - Beginning Ajax with ASP.NET- P24

Beginning Ajax with P24:Thank you for purchasing Beginning Ajax with . We know that you have a lot of options when selecting a programming book and are glad that you have chosen ours. We’re sure you will be pleased with the relevant content and high quality you have come to expect from the Wrox Press line of books. | Atlas Integration with Services Try It Out Retrieving Profile Property Names Take a look at some code for getting the names of the properties from a profile. function GetProfile var profObj OnGetProfile function OnGetProfile var propArray Array propArray if null propArray for m in propArray alert m How It Works Consider what happens in the code 1. An alias to the class is created. 2. The callback on completion is assigned to the method OnGetProfiles. 3. The asynchronous call is made through the .load method call. 4. When the callback is made the code gets the .properties property. The property contains the profile information for a user and the application. 5. The code loops through the returned properties and displays them to the user. Figure 12-3 shows the output of getting the profile properties. Figure 12-3 321 Chapter 12 Loading Profile Data Now that you have seen how to get the names of the profile properties you need to get the actual data within the profile for the logged-in user. To get the data you go through a set of steps similar to those you used in getting the profile names. Try It Out Retrieving Profile Data The following JavaScript code running in a web browser retrieves profile values for the properties you retrieved in the previous section function GetProfileData var profObj OnGetProfileData function OnGetProfileData txtName .value txtAddress .value txtCity .value txtAddressState .value txtZipCode .value How It Works This code performs the following steps 1. Creates an alias for the class. 2. Creates the method to callback once the data .

TỪ KHÓA LIÊN QUAN
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.