Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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...
 
<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 26-Sep-12 10:23am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2
Comments
Ritesh Rana at 26-Sep-12 15:34pm
   
thanks a lot..
Sergey Alexandrovich Kryukov at 26-Sep-12 17:40pm
   
You've said literally my words. Apparently, I could not vote less than 5 :-)
--SA
Zoltán Zörgő at 27-Sep-12 2:41am
   
Thank you :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Ritesh Rana at 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)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100