Oracle神諭

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評(píng)論 :: 0 Trackbacks
          <script type="text/javascript" language="javascript">
          var http_request = false;
          function makeRequest(url) {
          http_request = false;
          if (window.XMLHttpRequest) { // Mozilla, Safari,...
          http_request = new XMLHttpRequest();
          if(http_request.overrideMimeType){
          http_request.overrideMimeType('text/xml');
          }
          } else if (window.ActiveXObject) { // IE
          try {
          http_request = new ActiveXObject("Msxml2.XMLHTTP");
          } catch (e) {
          try {
          http_request = new ActiveXObject("Microsoft.XMLHTTP");
          } catch (e) {}
          }
          }
          if (!http_request) {
          alert('Giving up Sad Cannot create an XMLHTTP instance');
          return false;
          }
          http_request.onreadystatechange = alertContents;
          http_request.open('GET', url, true);
          http_request.send(null);
          }
          function alertContents() {
          if (http_request.readyState == 4) {
          if (http_request.status == 200) {
          alert(http_request.responseText);
          } else {
          alert('There was a problem with the request.');
          }
          }
          }
          </script>
          <span style="cursor: pointer; text-decoration: underline" onclick="makeRequest('test.html')"> 發(fā)出請(qǐng)求</span>

          原文地址:http://www.hibernate.org.cn/viewtopic.php?t=15156
          posted on 2005-09-26 12:58 java世界暢談 閱讀(541) 評(píng)論(0)  編輯  收藏 所屬分類: DHTML

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 海盐县| 称多县| 赤水市| 大港区| 南城县| 天门市| 绥滨县| 五原县| 田林县| 黔江区| 阿瓦提县| 南丰县| 余姚市| 红安县| 来凤县| 剑阁县| 神农架林区| 道孚县| 福泉市| 绥德县| 南阳市| 土默特左旗| 延长县| 武夷山市| 大连市| 东乡| 安义县| 元朗区| 县级市| 丰城市| 贡嘎县| 凤凰县| 大荔县| 兰溪市| 金秀| 鞍山市| 太仓市| 东海县| 阳西县| 同心县| 辽宁省|