Tài liệu Using Additional Ajax Libraries: Working with Adobe’s Spry Framework

Thảo luận trong 'Thiết Kế Web' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    173
    Điểm thành tích:
    0
    Xu:
    0Xu
    Up to this point we have talked a lot about jQuery and how
    you can use it and extend it with your own JavaScript. True,
    jQuery is very powerful, but it is not the only Ajax library you can
    use. In fact, there are loads of great libraries you can use. If you
    Project 5: Working with JavaScript 265
    are a user of Adobe’s Dreamweaver then you can take advantage
    of their Spry Ajax framework.
    Spry is an open-source library that can be easily extended
    in much the same way as jQuery. There is, however, some great
    functionality built into the core framework that you can apply
    directly to your web sites.
    Spry can be downloaded from http://labs.adobe.com/technologies/
    spry/home.html. The files contain a core script and several
    additional
    scripts that extend the functionality of the core. Expand the downloaded
    ZIP file and extract the files to your web site into a new root folder called
    SpryAssets.
    You are going to add to the “contactus.html” page. This time, you
    are going to add content as follows to the first tab, “Who We Are,” to
    allow users to see who is located at the company (Figure 5.8Proj).
    1. The control you are going to create allows you to select the
    person’s name and see additional information such as his or
    her title, email, and phone number. Data change and come
    from many sources. In this instance, the data are coming from
    another web page. You can use both XML and HTML as data
    sources within the Spry framework. In this example you are
    going to use a web page for the source data.
     
Đang tải...