Click here to Skip to main content
15,891,941 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi to all...

I am getting in trouble for following..

I have one Gallery page in my site
the page is coded through java script...

XML
<script>

       $(document).ready(function () {

           $.ajax({
               url: "imageGallery/Thumbnail/",
               success: function (data) {
                   $(data).find("a:contains(.jpg),:contains(.png)").each(function () {
                       // will loop through
                       var images = '<a class="fancybox-button" rel="fancybox-button" href="imageGallery/' + $(this).attr("href") + '"><img src="imageGallery/' + $(this).attr("href") + '" height="160px" width="160px"/></a>';

                       $('<p></p>').html(images).appendTo('#slider')

                   });
               }
           });

           $(".fancybox").fancybox({
               autoplay: 'true',
               openEffect: 'none',
               closeEffect: 'none',
               playSpeed: 300,
               success: function () {
                   $.fancybox.play();
               }
           });
          
           $(".fancybox-button").fancybox({
               autoPlay: 'true',
               playSpeed: 3000,
               prevEffect: 'none',
               nextEffect: 'none',
               closeBtn: false,
               helpers: {
                   title: { type: 'inside' },
                   buttons: {}
               }
           });
       });


   </script>


when i am running it on Visual Studio it wporks fine..
but when i am running it through IIS it doesn't display any images..
How can i enable jquery in IIS or run this page properly through IIS!!

Thanks..
Posted

Your question makes no sense: JQuery has nothing to do with IIS - it runs on the client. Actually it does in this form: you have to publich the jquery js file so it can be downloaded.
But probably you have url problems. I suggest you use the IE Developer toolbar in IE9, or Fiddler with older IEs, to track the download process on client side. So you can discover what items can not be downloaded, and you can correct the urls.
 
Share this answer
 
v2
Comments
Ritesh Rana 26-Sep-12 15:34pm    
thanks a lot..
Sergey Alexandrovich Kryukov 26-Sep-12 17:40pm    
You've said literally my words. Apparently, I could not vote less than 5 :-)
--SA
Zoltán Zörgő 27-Sep-12 2:41am    
Thank you :)
As an addition to Zoltan's answer, Im guessing that you have not published the "imageGallery" folder either. From the source it appears that it will need to copied to the same directory where the page itself resides.
 
Share this answer
 
Comments
Ritesh Rana 27-Sep-12 5:22am    
No...its had been there..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900