锘??xml version="1.0" encoding="utf-8" standalone="yes"?>狠狠综合久久综合88亚洲,国产亚洲日韩一区二区三区,国产成人亚洲综合无码精品 http://www.tkk7.com/liuzheng/category/24914.htmlzh-cnTue, 30 Oct 2007 09:31:21 GMTTue, 30 Oct 2007 09:31:21 GMT60XML DOM object鐨勯氱敤鍒涘緩鏂規硶http://www.tkk7.com/liuzheng/articles/156657.html鍒橀摦 鍒橀摦 Mon, 29 Oct 2007 05:27:00 GMThttp://www.tkk7.com/liuzheng/articles/156657.htmlhttp://www.tkk7.com/liuzheng/comments/156657.htmlhttp://www.tkk7.com/liuzheng/articles/156657.html#Feedback0http://www.tkk7.com/liuzheng/comments/commentRss/156657.htmlhttp://www.tkk7.com/liuzheng/services/trackbacks/156657.html var aVersions = [ "MSXML2.DOMDocument.5.0",
"MSXML2.DOMDocument.4.0"," MSXML2.DOMDocument.3.0",
"MSXML2.DOMDocument"," Microsoft.XmlDom"
];
for (var i = 0; i < aVersions.length; i++) {
try {
var oXmlDom = new ActiveXObject(aVersions[i]);
return oXmlDom;
} catch (oError) {
//Do nothing
}
}
throw new Error("MSXML is not installed.");
}


浣跨敤濡備笅錛?br /> var oXmlDom = createDocument();

]]>
鍒涘緩XMLlHttp鐨勯氱敤鏂規硶http://www.tkk7.com/liuzheng/articles/156624.html鍒橀摦 鍒橀摦 Mon, 29 Oct 2007 03:36:00 GMThttp://www.tkk7.com/liuzheng/articles/156624.htmlhttp://www.tkk7.com/liuzheng/comments/156624.htmlhttp://www.tkk7.com/liuzheng/articles/156624.html#Feedback0http://www.tkk7.com/liuzheng/comments/commentRss/156624.htmlhttp://www.tkk7.com/liuzheng/services/trackbacks/156624.html if (typeof XMLHttpRequest != "undefined") {
return new XMLHttpRequest();
} else if (window.ActiveXObject) {
var aVersions = [ "MSXML2.XMLHttp.5.0",
"MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0",
"MSXML2.XMLHttp","Microsoft.XMLHttp"
];
for (var i = 0; i < aVersions.length; i++) {
try {
var oXmlHttp = new ActiveXObject(aVersions[i]);
return oXmlHttp;
} catch (oError) {
//Do nothing
}
}
}
throw new Error("XMLHttp object could be created.");
}



浣跨敤濡備笅錛?br /> var oXmlHttp = createXMLHttp() 錛?

]]>
Advantages and Disadvantages of XMLHttphttp://www.tkk7.com/liuzheng/articles/156610.html鍒橀摦 鍒橀摦 Mon, 29 Oct 2007 02:50:00 GMThttp://www.tkk7.com/liuzheng/articles/156610.htmlhttp://www.tkk7.com/liuzheng/comments/156610.htmlhttp://www.tkk7.com/liuzheng/articles/156610.html#Feedback0http://www.tkk7.com/liuzheng/comments/commentRss/156610.htmlhttp://www.tkk7.com/liuzheng/services/trackbacks/156610.html The downside is that, unlike hidden frames, there is no browser history record of the calls that were made. The Back and Forward buttons do not tie in to XMLHttp requests, so you have effectively cut off their use. It is for this reason that many Ajax applications use a mixture of XMLHttp and hidden frames to make a truly usable interface.
Another disadvantage, which applies to Internet Explorer only, is that you depend on ActiveX controls being enabled. If the user has your page set up in a particular security zone that doesn't allow ActiveX controls, you cannot access the XMLHttp object. In that case, you may have to default to using hidden frames.

]]>
Advantages and Disadvantages of Hidden Frameshttp://www.tkk7.com/liuzheng/articles/156600.html鍒橀摦 鍒橀摦 Mon, 29 Oct 2007 02:23:00 GMThttp://www.tkk7.com/liuzheng/articles/156600.htmlhttp://www.tkk7.com/liuzheng/comments/156600.htmlhttp://www.tkk7.com/liuzheng/articles/156600.html#Feedback0http://www.tkk7.com/liuzheng/comments/commentRss/156600.htmlhttp://www.tkk7.com/liuzheng/services/trackbacks/156600.html Now that you have seen the powerful things that you can do using hidden frames, it's time to discuss the practicality of using them. As mentioned previously, this technique has been around for many years and is still used in many Ajax applications.
One of the biggest arguments for using hidden frames is that you can maintain the browser history and thus enable users to still use the Back and Forward buttons in the browser. Because the browser doesn't know that a hidden frame is, in fact, hidden, it keeps track of all the requests made through it. Whereas the main page of an Ajax application may not change, the changes in the hidden frame mean that the Back and Forward buttons will move through the history of that frame instead of the main page. This technique is used in both Gmail and Google Maps for this very reason.
The downside of hidden frames is that there is very little information about what's going on behind the scenes. You are completely reliant on the proper page being returned. The examples in this section all had the same problem: If the hidden frame page failed to load, there is no notification to the user that a problem has occurred; the main page will continue to wait until the appropriate JavaScript function is called. You may be able to provide some comfort to a user by setting a timeout for a long period of time, maybe five minutes, and displaying a message if the page hasn't loaded by then, but that's just a workaround. The main problem is that you don't have enough information about the HTTP request that is happening behind the scenes. Fortunately, there is another option.

]]>
浜岀駭鑱斿姩鑿滃崟浠g爜http://www.tkk7.com/liuzheng/articles/136664.html鍒橀摦 鍒橀摦 Tue, 14 Aug 2007 06:32:00 GMThttp://www.tkk7.com/liuzheng/articles/136664.htmlhttp://www.tkk7.com/liuzheng/comments/136664.htmlhttp://www.tkk7.com/liuzheng/articles/136664.html#Feedback0http://www.tkk7.com/liuzheng/comments/commentRss/136664.htmlhttp://www.tkk7.com/liuzheng/services/trackbacks/136664.html浜岀駭鑱斿姩鑿滃崟浠g爜(AJAX+JAVA)

鍋氶」鐩粡甯歌鐢ㄥ埌鐨?鐜板湪鍙粰鍑轟竴涓笉鐢ㄦ暟鎹簱鐨勪唬鐮?鍙綔鍙傝?
/**
*category.jsp 鍚湁AJAX紼嬪簭
*
*/
[java]
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
  <head>
    <title>浜岀駭鑿滃崟鑱斿姩婕旂ず</title>
  <script type="text/javascript">
    var req;
    window.onload=function(){//欏甸潰鍔犺澆鏃剁殑鍑芥暟

    }
   
    function Change_Select(){//褰撶涓涓笅鎷夋鐨勯夐」鍙戠敓鏀瑰彉鏃惰皟鐢ㄨ鍑芥暟
      var zhi = document.getElementById('hero').value;
      var url = "servlet/select?id="+ escape(zhi);
      if(window.XMLHttpRequest){
        req = new XMLHttpRequest();
      }else if(window.ActiveXObject){
        req = new ActiveXObject("Microsoft.XMLHTTP");
      }
      
      if(req){
        req.open("GET",url,true);
        req.onreadystatechange = callback; //鎸囧畾鍥炶皟鍑芥暟涓篶allback
        req.send(null);
      }
    }
   
    function callback(){
      if(req.readyState ==4){
        if(req.status ==200){
          parseMessage();//瑙f瀽XML鏂囨。
        }else{
          alert("Not able to retrieve description" + req.statusText);
        }
      }
    }
   
    function parseMessage(){
      var xmlDoc = req.responseXML.documentElement;//鑾峰緱榪斿洖鐨刋ML鏂囨。
      var xSel = xmlDoc.getElementsByTagName('select');
      //鑾峰緱XML鏂囨。涓殑鎵鏈?lt;select>鏍囪
      var select_root = document.getElementById('skill');
      //鑾峰緱緗戦〉涓殑絎簩涓笅鎷夋
      select_root.options.length=0;
      //姣忔鑾峰緱鏂扮殑鏁版嵁鐨勬椂鍊欏厛鎶婃瘡浜屼釜涓嬫媺妗嗘灦鐨勯暱搴︽竻0
      
      for(var i=0;i<xSel.length;i++){
        var xValue = xSel[i].childNodes[0].firstChild.nodeValue;
        //鑾峰緱姣忎釜<select>鏍囪涓殑絎竴涓爣璁扮殑鍊?涔熷氨鏄?lt;value>鏍囪鐨勫?br>        var xText = xSel[i].childNodes[1].firstChild.nodeValue;
        //鑾峰緱姣忎釜<select>鏍囪涓殑絎簩涓爣璁扮殑鍊?涔熷氨鏄?lt;text>鏍囪鐨勫?br>        
        var option = new Option(xText, xValue);
        //鏍規嵁姣忕粍value鍜宼ext鏍囪鐨勫煎垱寤轟竴涓猳ption瀵硅薄
        
        try{
          select_root.add(option);//灝唎ption瀵硅薄娣誨姞鍒扮浜屼釜涓嬫媺妗嗕腑
        }catch(e){
        }
      }
    }        
  </script>
  </head>

  <body>
  <div align="center">
  <form name="form1" method="post" action="">
  <table width="70%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">Double Select Box</td>
    </tr>
    <tr>
    <td>
    <select name="hero" id="hero" onChange="Change_Select()">
    <!--絎竴涓笅鎷夎彍鍗?->
      <option value="0">Unbounded</option>
      <option value="1">D.K. </option>
      <option value="2">NEC. </option>
      <option value="3">BOSS </option>
    </select>
    <select name="skill" id="skill">
    <!--絎簩涓笅鎷夎彍鍗?->
      <option value="0">Unbounded</option>
    </select>
    </td>
    </tr>
    <tr>
    <td> </td>
    <tr>
    </table>
  </form>
  </div>
  </body>
</html>
[/java]
2007-3-27 15:00 bufegar
/**
*SelectServelet.java 澶勭悊欏甸潰榪斿洖鐨勬暟鎹?榪斿洖XML緇橝JAX浣跨敤
*
*/

[java]
package onlinetest.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SelectServlet extends HttpServlet {

  /**
   * The doGet method of the servlet. <br>
   *
   * This method is called when a form has its tag value method equals to get.
   *
   * @param request
   *            the request send by the client to the server
   * @param response
   *            the response send by the server to the client
   * @throws ServletException
   *             if an error occurred
   * @throws IOException
   *             if an error occurred
   */
  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    response.setContentType("text/xml");
    response.setHeader("Cache-Control", "no-cache");
    String targetId = request.getParameter("id").toString();
    // 鑾峰緱璇鋒眰涓弬鏁頒負id鐨勫?br>    String xml_start = "<selects>";
    String xml_end = "</selects>";
    String xml = "";

    if (targetId.equalsIgnoreCase("0")) {
      xml = "<select><value>0</value><text>Unbounded</text></select>";
    } else if (targetId.equalsIgnoreCase("1")) {
      xml = "<select><value>1</value><text>Mana Burn</text></select>";
      xml += "<select><value>2</value><text>Death Coil</text></select>";
      xml += "<select><value>3</value><text>Unhkly Aura</text></select>";
      xml += "<select><value>4</value><text>Unholy Fire</text></select>";
    } else if (targetId.equalsIgnoreCase("2")) {
      xml = "<select><value>1</value><text>Corpexplode</text></select>";
      xml += "<select><value>2</value><text>Raise Dead</text></select>";
      xml += "<select><value>3</value><text>Brilliance Aura</text></select>";
      xml += "<select><value>4</value><text>Aim Aura</text></select>";
    } else {// 濡傛灉鏄?,鍒欒繑鍥炰笅闈㈢殑瀛楃
      xml = "<select><value>1</value><text>Rain of Chaos</text></select>";
      xml += "<select><value>2</value><text>Finger of Death</text></select>";
      xml += "<select><value>3</value><text>Bash</text></select>";
      xml += "<select><value>4</value><text>Summon Doom</text></select>";
    }

    String last_xml = xml_start + xml + xml_end;
    response.getWriter().write(last_xml);

  }

  /**
   * The doPost method of the servlet. <br>
   *
   * This method is called when a form has its tag value method equals to
   * post.
   *
   * @param request
   *            the request send by the client to the server
   * @param response
   *            the response send by the server to the client
   * @throws ServletException
   *             if an error occurred
   * @throws IOException
   *             if an error occurred
   */
  public void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {

    doGet(request, response);// 瀵逛簬post鐨勮姹傛柟寮忓拰get璇鋒眰鏂瑰紡涓鏍峰鐞?br>  }

}
[/java]

2007-3-27 15:02 bufegar
/**
*web.xml 閰嶇疆Servlet,鍙互浣跨敤MyEclipse鍒涘緩Servlet,鑷姩鐢熸垚web.xml
*
*/

[xml]
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="<a target="_blank">[url]http://java.sun.com/xml/ns/j2ee[/url]"</a> xmlns:xsi="<a target="_blank">[url]http://www.w3.org/2001/XMLSchema-instance[/url]"</a> version="2.4" xsi:schemaLocation="<a target="_blank">[url]http://java.sun.com/xml/ns/j2ee[/url]</a>   <a target="_blank">[url]http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd[/url]"></a>
  <servlet>
    <servlet-name>select</servlet-name>
    <servlet-class>onlinetest.servlet.SelectServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>select</servlet-name>
    <url-pattern>/servlet/select</url-pattern>
  </servlet-mapping>
  
  <filter>
        <filter-name>characterFilter</filter-name>
        <filter-class>filters.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>utf-8</param-value>
        </init-param>
    </filter>
   <filter-mapping>
    <filter-name>characterFilter</filter-name>
    <url-pattern>/*</url-pattern>
   </filter-mapping>
</web-app>[/xml]

鍘熸枃鍦板潃:[url]http://my.boolean.cn/read.php?130&part=3[/url]


]]>
主站蜘蛛池模板: 永久免费无码网站在线观看| 成年免费大片黄在线观看岛国| 人妻无码一区二区三区免费| 久久久精品免费视频| 最近中文字幕电影大全免费版 | 亚洲韩国精品无码一区二区三区| 久久精品国产精品亚洲色婷婷| 亚洲综合色丁香麻豆| 亚洲日韩精品无码专区加勒比 | 午夜精品一区二区三区免费视频| 亚洲黄色免费在线观看| 精品国产精品久久一区免费式| 亚洲精品国产电影| 亚洲男人天堂2017| 亚洲色偷精品一区二区三区 | ASS亚洲熟妇毛茸茸PICS| 亚洲AV无码专区在线厂| 免费看无码特级毛片| 在线视频免费观看高清| 国产精品亚洲综合一区| 亚洲综合综合在线| 婷婷国产偷v国产偷v亚洲| 东方aⅴ免费观看久久av| 成人毛片18女人毛片免费| 久久亚洲av无码精品浪潮| 亚洲无线一二三四区| 女人裸身j部免费视频无遮挡| 日本免费一区二区三区 | 亚洲国产一区二区三区| 91情国产l精品国产亚洲区| 久久亚洲中文字幕无码| 久久久久久国产精品免费免费男同| 性感美女视频在线观看免费精品| 在线观看亚洲av每日更新| 亚洲an日韩专区在线| 两个人日本免费完整版在线观看1| 免费电视剧在线观看| 国产亚洲福利精品一区| 亚洲爆乳成av人在线视菜奈实| 久久狠狠躁免费观看| 国产精品另类激情久久久免费|