开发者

Jscrollpane ajax wont load in IE

开发者 https://www.devze.com 2023-02-12 09:18 出处:网络
I am loading a custom scroll panel in to jScrollpane using their AJAX loading script, it works in everything except IE, any ideas on what to do, no errors show up.

I am loading a custom scroll panel in to jScrollpane using their AJAX loading script, it works in everything except IE, any ideas on what to do, no errors show up.

     <script type="text/javascript" src="../../JS/jquer开发者_StackOverflowy-1.4.4.min.js"></script> 
     <script type="text/javascript" src="../../JS/jquery.jscrollpane.min.js"></script> 
     <script type="text/javascript" src="../../JS/projpagecode.js"></script>
     <script type="text/javascript" src="../../JS/jquery.mousewheel.js"></script> 
     <script type="application/javascript">

     ////////////////////////////////////////////////////////////
     ////////// CODE CREATE CUSTOM SCROLL BAR    ////////////////
     ////////////////////////////////////////////////////////////
    $(function()
        {
            var api = $('.scroll-pane').jScrollPane(
                {
                    showArrows:false,
                    maintainPosition: false,
                    autoReinitialise: true
                }
            ).data('jsp');
            $('#moreprojects').bind(
                'click',
                function()
                {
                    api.getContentPane().load(
                        'blank.html',//
                        function()
                        {
                            api.reinitialise();
                        }
                    );
                    return false;
                }
            );
        });







    </script>


Are you viewing over http or does your test URL start with "file://"? I believe that Ajax may only work for "http://" URLs in IE...

0

精彩评论

暂无评论...
验证码 换一张
取 消