'javaScript'에 해당되는 글 12건

  1. 2007.12.26 페이지 다시 읽기 (reload)
  2. 2007.12.12 [sample] 가상의 input 만들어내 Action을 발생시키기

현재 웹페이지를 다시 읽어오는 것이다.

일반적인 다시 읽기
window.location.reload();
이렇게 하면 컴퓨터의 캐쉬에서 우선 파일을 찾아봅니다. 없으면 서버에서 받아옵니다.


적극적인 다시 읽기
window.location.reload(true);
true 라는 파라미터를 입력하면, 무조건 서버에서 직접 파일을 가져 오게 됩니다. 캐쉬는 완전히 무시됩니다.


소극적인 다시 읽기
history.go(0);
이렇게 하면, 캐쉬에서 현재 페이지의 파일들을 항상 우선적으로 찾습니다.

 

 var cCateList = new Array();
        cCateList[0] = new sCategory("N", "6", "test", "y", "3"); ..
..
..

 for (var i=0; i < cCateList.length; i++) {
   // I 추가, M 수정, D 삭제, N 변경안됨 , Z : 클라이언트에서 입력 후 삭제
   if (cCateList[i].type == "I" || cCateList[i].type == "M" || cCateList[i].type == "D" || cCateList[i].type == "N") {
      var input = document.createElement('input');
      input.type = 'hidden';
      input.name = 'folderChannels';
      input.value = serialize(cCateList[i]);
    
      formObj.appendChild(input);
      aInputObject.push(input);
      input = document.createElement('input');
      input.type = 'hidden';
      input.name = 'channelNames';
      input.value = cCateList[i].title;
           
      formObj.appendChild(input);
      aInputObject.push(input);
   }


위소스는 정말 신선하게 다가왔다. 어떻게 저렇게 만들어 submit까지 날려버리는지
최초개발자분에게 박수를 보내고 싶다 .
1 2 

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!