제목 : 아 질문이요 -_-) ; Ajax Control 
    
    
        
            
                | 글번호: |  | 694 | 
            
                | 작성자: |  | 이민구 | 
            
                | 작성일: |  | 2007/12/14 오전 11:35:00 | 
            
            
                | 조회수: |  | 4918 | 
            
        
     
 
    
	
	
    
	1.마스터 페이지느에는 ScriptManager 컨트롤이 있습니다 . 
2.마스터 페이지를 상속받아 만든 페이지에는 ScriptManagerProxy 가 있습니다. 
3.그리드가 . UpdatePanel 안에 있습니다 . 
4.UpdateProgress 안의 ProgressTemplate 페이지 중앙에 .나오는 
   레이어를 자바 스크립트로 넣었습니다 . 
[익스플로러 7.0] , ASP.2.0 , 
ErrMessage :   ~[주소] 인터넷 사이트를 열수 없습니다. 작업이 중단됩니다. 
                      alert 창으로 나온다음에 . 
                      창이 닫힙니다 
자바 스크립트 코드 
/*Loding .... 중*/ 
function getGifLoding(){
  this.centerX ;  
  this.centerY ; 
  
  this.objectWidth ;
  this.objectHeight ;  
  
  this.set_objectWidthHeigth = function(width,height){
     this.objectWidth = width ; 
     this.objectHeight = height ; 
  }
  
  this.get_dcumentCenter = function(){
     this.centerX = screen.availHeight / 2 - parseInt(this.objectHeight) ; 
     this.centerY = screen.availWidth  / 2 - (parseInt(this.objectWidth)/2) ; 
  }
  
  /*Loding 중이라는 레이어 중심으로이동*/
  this.setLodingDiv = function(){
    var div ; 
    div = document.createElement("div") ; 
    div.id = "esp_divNowLoding" ; 
    div.style.border = "1px black solid" ; 
    div.style.backgroundColor = "white" ; 
    div.style.position = "absolute" ; 
    div.style.width = "160px" ; 
    div.style.height = "100px" ;   
    div.style.left = this.centerY ; 
    div.style.top = this.centerX ;
    document.body.appendChild(div);   
  } 
  
  /*만들어진 레이어에 . 이미지 첨부*/
  this.setLodingDivInsertImage =function(imgSrc){
    var objectImage = document.getElementById("esp_divNowLoding") ;
    
    objectImage.innerHTML = "<img src='"+imgSrc+"'/>" 
  }
/*실제 실행 하는 함수*/
  this.loding = function(imgSrcs){
     this.set_objectWidthHeigth("160","100") ; 
     this.get_dcumentCenter() ; 
     this.setLodingDiv() ; 
     this.setLodingDivInsertImage(imgSrcs) ; 
  }
<!-- Aspx 단 -->
<asp:UpdateProgress id="listUpdateG" 
       runat="server" 
        AssociatedUpdatePanelID="listUpdate"> 
<ProgressTemplate>
<script type='text/javascript'>  
   function Lodings() {
    var gets = new getGifLoding() ;   
   gets.loding("../SiteReference/image/loading.gif") ; }
    Lodings() ;
</script> 
</ProgressTemplate>
</asp:UpdateProgress> 
  
  PS. 신기 하네요 .... 
자바 스크립트 에러도 아닌. 인터넷 사이트를 열수없습니다 나오는게 ... 
자바 스크립트만 단일 테스트 하면 . 
잘됩니다 . - _-) ; 정말 신기 하군요 ... 
충돌되는건지 . - _-);; ㅎㅎㅎㅎ 
ASPX 단만 실행 해도 잘되고요 .. 두게 붙이면 안되네요 .. ㅎㅎ 
에러 메시지 라도 나오면 - _-) 하겠는데 뭐 이상한 메시지가 나오고 ㅋㅋ 
    
	
    
    
 
    
    
    
    
	
        
        
            
                | 
        
            |  |  
            | choiyw2 2007-12-17 오전 9:37:25
 
 | 자스에 ; 가 없는곳이 있네요 
 뭐 그건 글타치고 화면이 꺼진다라 -0-;
 
 updatepanel 안에 자스가
 
 겹치면 엄청 긴 alert창이 뜨는 오류는 경험해봤지만
 
 아예 안뜬다는건... ㄷㄷ 메소드명이 겹친다던지...뭐..;
 
 좋은 월요일~ 수고하세요 ㅋ
 
 
 |   |  
        |  |  
            | uri9148 2007-12-24 오후 4:23:49
 
 | 자스는 js 로 뺴서 실행 시킵니다 . 테오 사이트에서 올렸을시 .몇분이 테스트 해주었는데  역시 같은 에러 나옵니다 . 그쪽에서도 이것떄문에 말이좀있었습니다 - _-) 자스역시 제가만든건대 .  아마 document.body.appendChild(div);   를 할수없습니다 . 업데이트 페널안에서 . Dom 객체를 동적 추가시 오류가나는거 같습니다 .
 시간있으면 MS 사에 한번 물어볼 생각입니다 .
 신기한오류라서 올린거라서 . ㅋㅋ
 레이어를 만들어서 보였다 안보였다는 가능합니다 ... ㅋㅋ 그럼. 수고하세요
 
 
 |   |  
        |  |  
            | uri9148 2007-12-24 오후 4:25:07
 
 | 참고로 자스에 ; 없어도 잘실행됩니다 ^^ |   |  
            |  |  
 |