Programming/Web
Ajax 깜빡임 없는 refresh coding
Chan_찬
2011. 4. 4. 19:07
반응형
<script language="javascript" src="jslb_ajax.js"></script> <script language="JavaScript" type="text/JavaScript"> <!-- function on_loaded( oj ){ value = decodeURIComponent( oj.responseText ); } function timerProc(){ //current_status.html 에 갱신하고자 하는 value가 있다. sendRequest( on_loaded,'','GET','current_status.html',true,true ); //id가 ttt 인 곳에 value를 refresh 시킨다. document.getElementById( 'ttt' ).innerHTML = value; // 1초 간격으로 자신을 다시 부른다. setTimeout( "timerProc();", 1000 ); } //--> |
728x90
반응형
BIG