0

目前我正在迁移一个网站(vs2003 到 vs2010),它已成功构建,但每次我在 IE8 上运行它时都会返回“出现错误:访问被拒绝”。这是代码:

$(function() {

            $('#container-1').tabs();
            $('#container-2').tabs(2);
            $('#container-3').tabs({ fxSlide: true });
            $('#container-4').tabs({ fxFade: true, fxSpeed: 'fast' });
            $('#container-5').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
            $('#container-6').tabs({
                fxFade: true,
                fxSpeed: 'fast',
                onClick: function() {
                    alert('onClick');
                },
                onHide: function() {
                    alert('onHide');
                },
                onShow: function() {
                    alert('onShow');
                }
            });
            $('#container-7').tabs({ fxAutoHeight: true });
            $('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
            $('#container-9').tabs({ remote: true });
            $('#container-10').tabs();
            $('#container-11').tabs({ disabled: [3] });

            $('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                $(this).parents('div').eq(1).disableTab(3);
                return false;
            });
            $('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                $(this).parents('div').eq(1).triggerTab(3);
                return false;
            });
            $('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                $(this).parents('div').eq(1).enableTab(3);
                return false;
            });

        });

我已经检查了 IE8 高级设置中的显示每个错误,到目前为止,它提供了有关错误的信息:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NETCLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C;.NET4.0E)
Timestamp: Mon, 6 May 2013 02:48:48 UTC


Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost:1038/HRSystems/login.aspx?  ReturnUrl=%2fHRSystems%2fScripts%2fjquery-1.1.3.1.pack.js


Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost:1038/HRSystems/login.aspxReturnUrl=%2fHRSystems%2fScripts%2fjquery.history_remote.pack.js

login.aspx 将成功运行,但它是空的,这很奇怪,但我们正在使用的当前网站运行良好。

提前致谢。

4

0 回答 0