Nexacro.웹-브라우저 띄우기

 

1. 정의

   - nexacro에서 웹 브라우저 띄우기

 

2. 설명

   - nexacro에서는 exe프로그램을 실행할 수 없다.

   - nexacro에서는 explorer만 띄워진다. chrome brower를 실행할 수 없다.

   - system.execBrower() : nexacro 함수이다.

     이 함수는 window api 함수중에 브라우저를 띄우는 함수를 수행시켜 준다.

     그래서, 항상 exploer만 띄워 진다.

   - chrome에서 window.open()을 하면 chrome 팝업창이 뜨고,

     explorer에서 window.open()을 하면 explorer 팝업창이 뜬다.

 

3. nexacro source

    var serverUrl = this.gfn_getServerUrl(); //  http://localhost:8080/
    if (nexacro._Browser == "Runtime")
        system.execBrowser(serverUrl + "cs/sv/survey/survey.fnc?empNo=1&empNm=김길동";

     else

        window.open(serverUrl + "cs/sv/survey/survey.fnc?empNo=1&empNm=김길동", 'popEmp', 'width=1000,

           height=900, menubar=no, status=no, toolbar=no');

 

Posted by 농부지기
,