리자

ajax modal window (ajax 모달창)

· 16년 전 · 5405

/*********************************************************************************
* dialog
**********************************************************************************/
function openBox(width, height, border, goURL , modal){
 if($(window.document).find('#dialog').size() <= 0){
  var html = "<div id='dialog' style='width:"+width+"px;height:'"+height+"px';margin:0px 0px;>"
     + "<iframe id='myiframe' name='myiframe' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' width='95%' height='98%'></iframe>"
     + "</div>";
   
  $("body").append(html);
 }
 
 $('#myiframe').attr('src', goURL);
 
 jQuery("#dialog").dialog({
            modal: false,
            autoOpen: false,
            width: width + 10,
            height : height,
            dialogClass: "openBoxCss",
            overlay: {opacity: 0.5, background: "black"}
    });
    jQuery("#dialog").dialog({autoOpen: false});
 jQuery("#dialog").dialog("open");
 $("#dialog").dialog({
  open:function() {
   $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
    }
 });
 
    return false;
}

function closeBox(){
 var d = $(window.document).find('#dialog');
 d.dialog( "close" );
 d.dialog( "destroy" );
 d.remove();
 0
}

[출처] AJAX 모달창 |작성자 super_style

[이 게시물은 관리자님에 의해 2011-10-31 16:55:28 jQuery에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
15년 전 조회 1,853
15년 전 조회 1,797
15년 전 조회 1,944
15년 전 조회 1,637
15년 전 조회 4,036
15년 전 조회 2,962
15년 전 조회 2,134
16년 전 조회 1,718
16년 전 조회 1,955
16년 전 조회 2,437
16년 전 조회 1,512
16년 전 조회 2,443
16년 전 조회 1,777
16년 전 조회 1,882
16년 전 조회 1,527
16년 전 조회 2,228
16년 전 조회 1,556
16년 전 조회 1,972
16년 전 조회 2,152
16년 전 조회 1,225
16년 전 조회 1,296
16년 전 조회 1,943
16년 전 조회 5,386
16년 전 조회 1,687
16년 전 조회 2,205
16년 전 조회 2,392
16년 전 조회 1,548
16년 전 조회 1,351
16년 전 조회 2,269
16년 전 조회 4,989
16년 전 조회 2,256
16년 전 조회 2,916
16년 전 조회 1,791
16년 전 조회 3,645
16년 전 조회 4,485
16년 전 조회 3,141
16년 전 조회 2,395
16년 전 조회 2,484
16년 전 조회 2,726
16년 전 조회 2,216
16년 전 조회 5,557
16년 전 조회 3,409
16년 전 조회 1,403
16년 전 조회 1,744
16년 전 조회 5,117
16년 전 조회 2,361
16년 전 조회 3,454
16년 전 조회 2,694
16년 전 조회 1,600
16년 전 조회 5,406
16년 전 조회 2,521
16년 전 조회 6,008
16년 전 조회 1,989
16년 전 조회 4,066
16년 전 조회 3,081
16년 전 조회 2,267
16년 전 조회 2,277
16년 전 조회 4,438
16년 전 조회 3,347
16년 전 조회 2,875
16년 전 조회 3,015
16년 전 조회 2,135
16년 전 조회 1,813
16년 전 조회 1,735
16년 전 조회 1,448
16년 전 조회 1,715
16년 전 조회 1,951
16년 전 조회 1,646
16년 전 조회 4,892
16년 전 조회 3,867
16년 전 조회 1,843
16년 전 조회 1,580
16년 전 조회 2,323
16년 전 조회 4,565
16년 전 조회 3,594
16년 전 조회 2,624
16년 전 조회 4,378
16년 전 조회 3,241
16년 전 조회 1,404
16년 전 조회 1,422
16년 전 조회 2,079
16년 전 조회 1,923
16년 전 조회 2,612
16년 전 조회 2,270
16년 전 조회 1,411
16년 전 조회 4,430
16년 전 조회 1,520
16년 전 조회 1,819
16년 전 조회 2,247
16년 전 조회 3,881
16년 전 조회 2,782
16년 전 조회 1,533
16년 전 조회 4,056
16년 전 조회 1,442
16년 전 조회 1,628
16년 전 조회 1,287
16년 전 조회 1,764
16년 전 조회 1,660
16년 전 조회 1,672
16년 전 조회 1,465