달력

5

« 2025/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2016. 5. 25. 14:30

dhtml openPopup 사용시 modal 셋팅 카테고리 없음2016. 5. 25. 14:30

/**
 * Popup Open
 */
function cm_openPopup(id, url, width, height, title, x, y){ 
 //--debugger
 console.log("## id : "+id);
 if(!dhxWins.isWindow(id)){
  if(x == "" || x == null || typeof x == "undefined"){
   if(y == "" || y == null){
    w1 = dhxWins.createWindow(id, 10, 10, width, height);
    dhxWins.window(id).setModal(true);
   }else{
    w1 = dhxWins.createWindow(id, 10, y, width, height);
    dhxWins.window(id).setModal(true);
   }   
  }else{
   if(y == "" || y == null || typeof y == "undefined"){
    w1 = dhxWins.createWindow(id, x, 10, width, height);
    dhxWins.window(id).setModal(true);
   }else{
    w1 = dhxWins.createWindow(id, x, y, width, height);
    dhxWins.window(id).setModal(true);
   }   
  }
  w1.setText(title);
  w1.attachURL("../"+url);    
 }
}

 

출처 : http://docs.dhtmlx.com/

:
Posted by 상문이