title: ajax call not working when deployed in live domain
body: <p>My ajax call is working on localhost but not when i upload the files in domain. Using ajax I am searching all jpg/png files in a folder called 'images' and showing them in my webpage. The code is - </p>
  
  <pre><code>&lt;script&gt;
  
  //Use ajax to load all images (jpe?g|png|gif) from a folder to a page called Gallery
  //images folder should be in the same folder as the file
        var folder = "../images/";
        $.ajax({
            url : folder,
            success: function (data) {
                $(data).find("a").attr("href", function (i, val) {
                    if( val.match(/\.(jpe?g|png|gif)$/) ) {
  
  // create 'img' element using JS and dynamically add image source and class
                        var imgSrc = document.createElement('img');
                        imgSrc.src= folder + val;
                        imgSrc.className = 'imageThumbnails';
                        $("#spanImage").append(imgSrc);
                    }
                });
            }
        });
  &lt;/script&gt;
  </code></pre>