2014-02-27 3 views
0

다음과 같이 jsp가 내장되어 있습니다. 의도는 지정된 옵션을 사용하여 새 JSP를 여는 것입니다. 그러나 페이지가로드 될 때 창이 열리지 않습니다.JQuery가 새 창으로 열림

내가 잘못 했나요?

감사

<body> 
    <script type="text/javascript"> 
     $().ready(function() { 
      var siteId = getUrlVars()[PARAMS.GENERAL.SITEID]; 
      var options = "channelmode=" + 1 + 
      ",resizable=" + 1 + 
      ",menubar=" + 0 + 
      ",toolbar=" + 0 + 
      ",location=" + 0 + 
      ",titlebar=" + 1 + 
      ",status=" + 1 + 
      ",scrollbars=" + 1; 

      var name = "reporting"; 
      var appURL = "t.htm?" PARAMS.GENERAL.SITEID + "=" + siteId; 
      window.open(appURL,name,options); 
     }); 

    </script> 
+0

확실 브라우저가 새 창을 차단하지 있습니까 라인 var appURL = "t.htm?" + PARAMS.GENERAL.SITEID + "=" + siteId; 누락? – SajithNair

+0

창 또는 새 탭을 열시겠습니까? – Asif

답변

0

이가있다

window.open(appURL,name,options,target="_blank"); 
0

시도는 '+'

 <body> 
     <script type="text/javascript"> 
      $().ready(function() { 
       var siteId = getUrlVars()[PARAMS.GENERAL.SITEID]; 
       var options = "channelmode=" + 1 + 
       ",resizable=" + 1 + 
       ",menubar=" + 0 + 
       ",toolbar=" + 0 + 
       ",location=" + 0 + 
       ",titlebar=" + 1 + 
       ",status=" + 1 + 
       ",scrollbars=" + 1; 

       var name = "reporting"; 
       var appURL = "t.htm?" + PARAMS.GENERAL.SITEID + "=" + siteId; 
       window.open(appURL,name,options); 
      }); 

     </script>