Blame view

js/crep.js 499 Bytes
56c75c13   Geoffrey PREUD'HOMME   [Navigation] Ouvr...
1
2
3
4
5
  function file(fichier) {
      if (window.XMLHttpRequest)
          xhr_object = new XMLHttpRequest();
      else if (window.ActiveXObject)
          xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
7ab7e900   Jean Wasilewski   file function added
6
      else
56c75c13   Geoffrey PREUD'HOMME   [Navigation] Ouvr...
7
8
9
10
11
12
13
          return (false);
      xhr_object.open("GET", fichier, false);
      xhr_object.send(null);
      if (xhr_object.readyState == 4)
          return (xhr_object.responseText);
      else
          return (false);
7ab7e900   Jean Wasilewski   file function added
14
15
  }
  
56c75c13   Geoffrey PREUD'HOMME   [Navigation] Ouvr...
16
17
18
  function loadNewDoc(doc) {
      $("#mainContainer").html(file(doc));
      return false
dd72b86c   Geoffrey PREUD'HOMME   Removed uneeded f...
19
  }