在IIS中启用JQuery [英] Enable JQuery in IIS

查看:201
本文介绍了在IIS中启用JQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...

我遇到了麻烦..

我的网站上有一个图库页面
该页面通过Java脚本进行编码...

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>



当我在Visual Studio上运行它时,它会很好..
但是当我通过IIS运行它时,它不会显示任何图像..
如何在IIS中启用jquery或通过IIS正确运行此页面!
谢谢...



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

推荐答案

(document).ready(function(){
(document).ready(function () {


.ajax({ url:"imageGallery/缩略图/", 成功:函数(数据){
.ajax({ url: "imageGallery/Thumbnail/", success: function (data) {


(数据).find("a:contains(.jpg),: contains(.png)").each(function(){ //将遍历 var images ='< a class =" rel =" href ="
(data).find("a:contains(.jpg),:contains(.png)").each(function () { // will loop through var images = '<a class="fancybox-button" rel="fancybox-button" href="imageGallery/' +


这篇关于在IIS中启用JQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆