Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add ajax calls to Mootools class
    text
    copied!<p>I have modified (very slightly) the Mootools class noobSlide (<a href="http://www.efectorelativo.net/laboratory/noobSlide/" rel="nofollow noreferrer">http://www.efectorelativo.net/laboratory/noobSlide/</a>) to create a flickr style photostream.</p> <p>Here is the modified html (note you can see the original on the above page)</p> <pre><code>print("code sample");&lt;h2&gt;Sample 2&lt;/h2&gt; &lt;div class="sample"&gt; &lt;div class="mask4"&gt; &lt;div id="box2"&gt; &lt;span&gt;&lt;img src="img1.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img2.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img3.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img4.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img5.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img6.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;span&gt;&lt;img src="img7.jpg" alt="Photo" /&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;p class="buttons"&gt; &lt;span id="prev1"&gt;&amp;lt;&amp;lt; Previous&lt;/span&gt; &lt;span id="next1"&gt;Next &amp;gt;&amp;gt;&lt;/span&gt; &lt;/p&gt; </code></pre> <p>Here is the JS</p> <pre><code>print("code sample");//SAMPLE 2 var hs2 = new noobSlide({ box: $('box2'), items: [1,2,3,4], size: 500, interval: 3000, buttons: { previous: $('prev1'), next: $('next1') } }); </code></pre> <p>What I would like to know is how to add an ajax call to this, I have about 50 images and I only want to load about 5 (actually I suppose I only need to load 2) at a time.</p> <p>So I would like some help on how to add ajax to noobslide using the native mootools ajax class/function</p> <p>thnkx</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload