Javascript-who can give a Waterfall Fluid layout example and available code?

Source: Internet
Author: User
First of all, I have no Web development experience. Please help me. First of all, I learned that KissyWaterfall does not understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what it should be in Waterfall... first of all, I have no Web development experience. Please help me.

First, I learned that Kissy Waterfall
I don't understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what value should be passed to Jquery in Waterfall?

The key code is as follows:

S. ajax ({data: {'method': 'flickr. photos. search', 'api _ key': '5d93c2e473e39e9307e86d4a01381266 ', 'tags': 'Rose', 'page': nextpage, 'per _ page': 20, 'format ': 'json'}, url: 'http: // api.flickr.com/services/rest/', dataType: "jsonp", jsonp: "jsoncallback", success: function (d) {// if the data is incorrect, end if (d. stat! = 'OK') {alert ('Load data error! '); End (); return;} // if the last page is reached, load nextpage = d. photos. page + 1; if (nextpage> d. photos. pages) {end (); return ;}

I even checked the flick json for this purpose. Because it was just getting in touch, I had doubts in many places and the problem was not solved yet.

I don't know if you have any better ideas. Is there a simple way to help you achieve this?
It is best to modify several parameters. (After all, 1 is a newbie, and 2 does not have so much energy to study. I hope you will be considerate)

The problem has been disabled. cause:

Reply content:

First of all, I have no Web development experience. Please help me.

First, I learned that Kissy Waterfall
I don't understand its implementation principle. I learned json, jsonp, and other calls, but I found that there are still many things I don't understand, the biggest problem is that I don't know what value should be passed to Jquery in Waterfall?

The key code is as follows:

S. ajax ({data: {'method': 'flickr. photos. search', 'api _ key': '5d93c2e473e39e9307e86d4a01381266 ', 'tags': 'Rose', 'page': nextpage, 'per _ page': 20, 'format ': 'json'}, url: 'http: // api.flickr.com/services/rest/', dataType: "jsonp", jsonp: "jsoncallback", success: function (d) {// if the data is incorrect, end if (d. stat! = 'OK') {alert ('Load data error! '); End (); return;} // if the last page is reached, load nextpage = d. photos. page + 1; if (nextpage> d. photos. pages) {end (); return ;}

I even checked the flick json for this purpose. Because it was just getting in touch, I had doubts in many places and the problem was not solved yet.

I don't know if you have any better ideas. Is there a simple way to help you achieve this?
It is best to modify several parameters. (After all, 1 is a newbie, and 2 does not have so much energy to study. I hope you will be considerate)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.