2012-12-11 4 views
-2

IE9를 실행하는 IIS 7.5가 설치된 랩톱에 웹 사이트를 게시했습니다. 인터넷에 연결하면 웹 사이트가 정상적으로 작동합니다. 이상한 것은 그것이 기계가 인터넷을 가지고 있는지 또는 파이어 폭스에서 잘 작동한다는 것입니다. 도움이 될만한 몇 가지 기타 정보. Windows 7 64 비트 실행. 파이어 폭스 최신 버전. IE9. 필요한 것이 무엇이 다른지 잘 모릅니다. IE 권한 검사를 시도했지만 놓친 부분이있어 도움을 얻을 수 있습니다.IE9에서 인터넷 연결없이 Javascript가 작동하지 않습니다.

<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="utf-8" /> 
<title>@ViewBag.Title</title> 
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
<meta name="viewport" content="width=device-width" /> 
@*----------------- JQUERY UI for Accordion Starts here-------------------- *@ 
<link href="../../Content/themes/Blue/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" 
    type="text/css" /> 
<script src="../../Scripts/jquery-1.8.2.js" type="text/javascript"></script> 
<script src="../../Scripts/jquery-ui-1.9.1.custom.js" type="text/javascript"></script> 
@* -----------JQUERY UI for Accordion Ends here--------------------- *@ @*----------------- JQUERY UI for Delete Dialog Starts here-------------------- *@ 
<script src="../../Scripts/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script> 
@* <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>*@ 
<script src="../../Scripts/external/jquery-ui.js">></script> 
@*----------------- JQUERY UI for Delete Dialog Ends here-------------------- *@ 
@Styles.Render("~/Content/css") 
@Scripts.Render("~/bundles/modernizr") 
@* 
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> 
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> 
*@ @* ----------- Scripts added for Devexpress but commented because JQUERY UI not working --------------------- *@ 
@* 
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.4.4.js")"></script> 
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")"></script> 

*@ @* ----------- Scripts added for Devexpress ends here--------------------- *@ 
@Html.DevExpress().GetScripts(
     new Script { ExtensionSuite = ExtensionSuite.GridView }, 
     new Script { ExtensionSuite = ExtensionSuite.PivotGrid }, 
     new Script { ExtensionSuite = ExtensionSuite.HtmlEditor }, 
     new Script { ExtensionSuite = ExtensionSuite.Editors }, 
     new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, 
     new Script { ExtensionSuite = ExtensionSuite.Chart }, 
     new Script { ExtensionSuite = ExtensionSuite.Report } 
     //new Script { ExtensionSuite = ExtensionSuite.Scheduler } 
) 
@Html.DevExpress().GetStyleSheets(
     new StyleSheet { ExtensionSuite = ExtensionSuite.GridView }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.PivotGrid }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.HtmlEditor }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.Editors }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.Chart }, 
     new StyleSheet { ExtensionSuite = ExtensionSuite.Report } 
     //new StyleSheet { ExtensionSuite = ExtensionSuite.Scheduler } 
) 
@* ---------------------------------JQUERY Scripts for Delete confirmation Starts here --------------------------------*@ 
<script type="text/javascript"> 
    // increase the default animation speed to exaggerate the effect 
    $.fx.speeds._default = 500; 
    $(function() { 
     $("#dialog").dialog({ 
      autoOpen: false, 
      show: "blind", 
      hide: "explode", 
      width: 250, 
      resizable: false, 
      modal: true, 
      buttons: 
      { 
       "Delete": function() { 
        $.post(deleteLinkObj[0].href, function (data) { //Post to action 
         //Check data the return from the middle layer, if it is just true, deletion is successful 
         if (data == '@Boolean.TrueString') { 
          deleteLinkObj.closest("tr").hide('fast'); //Hide Row 
          $("#dialog").dialog("close"); //See it used #dialog instead of (this) because the scope (context) has changed in the "Delete" callback 
          $(this).empty(); 
          $("#StatusMsg").html("Deleted"); 
          location.reload(); //refreshes the page 
         } 
         else { 

          //Show the errror on the dialog content. Data is used to show the error 
          //expecting the Error handlers in middle layer will return the meaning ful error message 
          $("#dialog").html(data); 
          //Hide confirmation button inorder to show the user to only the content of error in the same 
          //dialog box and allow to cancel this dialog 
          $(":button:contains('Delete')").css("display", "none"); 
          $("#StatusMsg").html("Not Deleted"); 
         } 
         //location.reload(); 
        }); 

       }, 
       "Cancel": function() { 
        //This reset of the Delete button is need since if it wsas invoked and jumped into show error routine, 
        // then that routine would have removed the Delete button. 
        $(":button:contains('Delete')").css("display", "inline"); 
        $(this).dialog("close"); 
        $("#StatusMsg").html(""); 
       } 
      } 
     }); 

     var deleteLinkObj; 
     var deletMsg; 
     $('a.inputFakeDelete').click(function() { 

      //Here the message is built using the delete button properties id and name. 
      //So every page calling this jquery need to have the link button embedded with these properties 
      //eg: id = Grade, name = the name of the grade from the model 
      deletMsg = "Are you sure you want to delete this " + this.id; 
      if (this.name == "") { 
      } 
      else { 
       deletMsg = deletMsg + " '" + this.name + "'" //"Are you sure you want to delete the " + (this).id + " '" + (this).name + "'?"; 
      } 
      deletMsg = deletMsg + "?" 


      $("#dialog").html(deletMsg) 
      deleteLinkObj = $(this); //to use in the dialog javascript 
      $("#dialog").dialog("open"); 
      return false; 
     }); 
    }); 
</script> 
@*----------------------------------JQUERY Scripts delete confirmation Ends here --------------------------------*@ 
@*----------------------------------JQUERY Scripts for record cuirrent filer --------------------------------*@ 
<script type="text/javascript"> 
    var currentValue = 0; 
    function handleClick(currentfilter) { 
     //alert('Old value: ' + currentValue); 
     //alert('New value: ' + currentfilter.value); 
     currentValue = currentfilter.value; 

     //Redirect the page so that will reload with new parameters 
     window.location = 'http://' + window.location.host + currentValue; //Add 'http://' since host will not include this 

    } 
</script> 
@*----------------------------------JQUERY Scripts for record cuirrent filer ends here --------------------------------*@ 
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> 
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> 

오류 페이지는 그냥 특정 웹 페이지를 찾을 수 있다고 말한다. 고객 /이 내 문제에 대한 수정했다 경우 확실하지 않다

+1

은 모두 로컬 스크립트입니까? – charlietfl

+2

게시물에 코드를 게시하십시오. 이미지의 코드는 SEO 친화적이지 않으며 다른 사람을 도울 수 없습니다. – elclanrs

+1

jQuery UI가 원격 호스트에서 연결 되었습니까? –

답변

0

삭제 (그리고 기계가 내 자신 아니므로 테스트하기 위해 조금 어렵습니다)하지만, 나중에 우리가 다음 aspnet_regiis.exe를 사용하여 .NET을 재구성하고 문제는 사라진 것처럼 보입니다.

관련 문제