Global It Leader!!



 
 

리눅스 변수값을 전달하려는데 접근 권한이 없다고 한다면...

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 9,361회 작성일 10-08-28 13:15

본문

실명인증 페이지나 공공 아이핀 인증시에 opener에게 결과값을 리턴하려고하면...

접근권한이 없다는 에러가 발생한다.

이때 해결 방법은 호출 도메인과 전달하는 도메인을 동일하게 설정해 주면된다.

호출 스크립트 소스
  <script type="Text/JavaScript">
  <!--
  function fnLoad(){
      document.domain = "abc.com";
   var URL = "http://www.abc.com/credit_namecheck/nc_coin.php";
   var status = 'toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,menubar=no, width= 645, height= 525, top=100,left=100';
   window.open(URL,'_blank',status);
  }
 
  // 본인 인증 창(G-PIN)
  function fnAuth() {
         document.domain = "abc.com";
      wWidth = 360;
      wHight = 120;
    
      wX = (window.screen.width - wWidth) / 2;
      wY = (window.screen.height - wHight) / 2;
    
      // Request Page Call
      var w = window.open("http://www.abc.com/G-PIN/AuthRequest.php", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight);
  }
  //-->
  </script>

인증에 성공했을때 결과값 리턴 스크립트 소스
  <script type="Text/JavaScript">
  <!--
     document.domain = "abc.com";
  // 회원가입폼 셋팅
  opener.document.getElementById('mb_name').value = "<?=$strName?>";
  opener.document.getElementById('temp_birth').value = "<?=$strJumin?>" // 생년월일저장
  opener.document.getElementById('mb_name_check').value = 'success';
  alert("실명인증이 정상적으로 확인되었습니다.");
  self.close();
  //-->
  </script>

댓글목록

등록된 댓글이 없습니다.

전체 167
게시물 검색
윈도우/리눅스 목록
번호 제목 글쓴이 조회 날짜
47 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8896 04-22
46 글꼴 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9299 04-18
45 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9713 04-18
44 글꼴 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6950 03-20
43 글꼴 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7459 03-15
42 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8696 03-10
41 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9605 02-14
40 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9617 02-14
39 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8990 01-31
38 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7922 01-16
37 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8081 01-14
36 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10655 01-14
35 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7972 01-14
34 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7967 01-13
33 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8814 09-29
열람중 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9362 08-28
31 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9297 08-28
30 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9693 08-28
29 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8671 08-25
28 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8990 07-14