title: How to dynamically load all of the image from a folder for an image slideshow - jquery
body: <p>Basically what I am after is a way to dynamically load all of the images in a folder (held on the server) into my nivo slider. 
  Currently the script in nivo slider requires me to reference each photo individually. For example:</p>
  
  <pre><code>&lt;div class="slider-wrapper theme-default"&gt;
          &lt;div class="ribbon"&gt;&lt;/div&gt;
          &lt;div id="slider" class="nivoSlider"&gt;
              &lt;img src="images/toystory.jpg" alt="" /&gt;
              &lt;a href="http://dev7studios.com"&gt;&lt;img src="images/up.jpg" alt="" title="This is an example of a caption" /&gt;&lt;/a&gt;
              &lt;img src="images/walle.jpg" alt="" data-transition="slideInLeft" /&gt;
              &lt;img src="images/nemo.jpg" alt="" title="#htmlcaption" /&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>(the above code was pulled out from the html file). </p>
  
  <p>As novice users will be maintaining the website, there will be no ability for them to go in and manually change the code each time they add or remove photos from the directory. </p>
  
  <p>At this point I dont mind whether all or some of the photos are loaded when the page loads. </p>
  
  <p>I have had a bit of trouble finding any information about how to solve this problem. Once of the closest sources I have been able to find has been on this site (<a href="https://stackoverflow.com/questions/5117421/how-to-load-images-dynamically-or-lazily-when-users-scrolls-it-into-view">How to load images dynamically (or lazily) when users scrolls them into view</a>).</p>
  
  <p>Though to be honest, I am quiet new to jquery (and programming in general), and am struggling with some of the basics. Therefore please take a dummies approach when answering the question for me.</p>
  
  <p>Currently I have the images folder (stores all of the images), a jscript file, and a css file which are stored on the server. I then add html to a webpart (as sharepoint is used to madify the webpage) to make the slider appear.  </p>
  
  <p>Can the code be done all client-side or does in need to be done both server and client side?</p>