Click here to Skip to main content
13,143,774 members (32,218 online)
Rate this:
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...

       $(document).ready(function () {
               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>';
               autoplay: 'true',
               openEffect: 'none',
               closeEffect: 'none',
               playSpeed: 300,
               success: function () {
               autoPlay: 'true',
               playSpeed: 3000,
               prevEffect: 'none',
               nextEffect: 'none',
               closeBtn: false,
               helpers: {
                   title: { type: 'inside' },
                   buttons: {}


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!!

Posted 26-Sep-12 9:23am
Rate this: bad
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.
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 :-)
Zoltán Zörgő 27-Sep-12 2:41am
Thank you :)
Rate this: bad
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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2017
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