一区二区三区亚洲视频,亚洲综合国产精品第一页,亚洲综合色婷婷在线观看http://www.tkk7.com/ghostwu/CommentsRSS.aspxzh-cnTue, 05 Aug 2008 05:59:00 GMTTue, 05 Aug 2008 05:59:00 GMTcnblogsre: yui --------autocomplete學習二http://www.tkk7.com/ghostwu/archive/2008/08/05/119533.html#220146raul86raul86Tue, 05 Aug 2008 05:59:00 GMThttp://www.tkk7.com/ghostwu/archive/2008/08/05/119533.html#220146能不能給我一份動態查詢的例子,郵箱是raul_1986@126.com.

raul86 2008-08-05 13:59 發表評論
]]>
re: yui --------autocomplete學習二http://www.tkk7.com/ghostwu/archive/2007/11/03/119533.html#157860daiqiaobindaiqiaobinFri, 02 Nov 2007 17:14:00 GMThttp://www.tkk7.com/ghostwu/archive/2007/11/03/119533.html#157860this.connMgr 為空或不是對象
請問樓主是怎么回事啊?

daiqiaobin 2007-11-03 01:14 發表評論
]]>
re: yui --------autocomplete學習二http://www.tkk7.com/ghostwu/archive/2007/11/03/119533.html#157859daiqiaobindaiqiaobinFri, 02 Nov 2007 17:11:00 GMThttp://www.tkk7.com/ghostwu/archive/2007/11/03/119533.html#157859服務器端:

AutoComp.java-------------------------------

package ajaxdemo1;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class AutoComp extends HttpServlet {
private static final String CONTENT_TYPE = "text/xml; charset=UTF-8";

//Initialize global variables
public void init() throws ServletException {
}

//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
response.setContentType(CONTENT_TYPE);
//務必清空頁面緩存
response.addHeader("Cache-Control","no-cache");

System.out.println("url = " + request.getRequestURL() + "?" + request.getQueryString());
String query = request.getParameter("query");

PrintWriter out = response.getWriter();
out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.print("<Resultset>");
for(int i=0;i<40;i++){
out.print("<Result>");
out.print("<Title>title"+i+"</Title>");
out.print("<Summary>Hello World"+i+"!</Summary>");
out.print("</Result>");
}
out.print("</Resultset>");
out.close();
}

//Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
doGet(request, response);
}

//Clean up resources
public void destroy() {
}
}

index.jsp================================

<%@ page contentType="text/html; charset=GBK" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>AJAX測試文件</title>

<link rel="stylesheet" type="text/css" href="build/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="build/autocomplete/assets/skins/sam/autocomplete.css" />
<script type="text/javascript" src="build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="build/animation/animation.js"></script>
<script type="text/javascript" src="build/autocomplete/autocomplete.js"></script>
<script type="text/javascript" src="build/yahoo/yahoo.js"></script>
<script type="text/javascript" src="build/event/event.js"></script>
<script type="text/javascript" src="build/connection/connection.js"></script>

<!--begin custom header content for this example-->
<style type="text/css">
/* custom styles for this example */
#ysearchautocomplete{
margin-bottom:2em;
width:25em;
}
</style>

</head>
<body class="yui-skin-sam">

<form action="http://localhost:8080/ajax" onsubmit="return YAHOO.example.ACXml.validateForm();">
<h3>Yahoo! Search:</h3>
<div id="ysearchautocomplete">
<input id="ysearchinput" type="text" name="p">
<div id="ysearchcontainer"></div>
</div>
</form>

<script type="text/javascript" >
YAHOO.example.ACXml = new function(){

// Instantiate an XHR DataSource and define schema as an array:
// ["Multi-depth.object.notation.to.find.a.single.result.item",
// "Query Key",
// "Additional Param Name 1",
// ...
// "Additional Param Name n"]

this.oACDS = new YAHOO.widget.DS_XHR("http://localhost:8080/ajax/autocomp", ["Result", "Title", "Summary"]);
this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_XML;
//this.oACDS.queryMatchContains = true;
//this.oACDS.scriptQueryAppend = ""; // Needed for YWS
// Instantiate AutoComplete

this.oAutoComp = new YAHOO.widget.AutoComplete("ysearchinput","ysearchcontainer", this.oACDS);

// Display up to 20 results in the container
this.oAutoComp.maxResultsDisplayed = 10;

// Require user to type at least 1 characters before triggering a query
this.oAutoComp.minQueryLength = 1;

// Every key input event will trigger an immediate query...
this.oAutoComp.queryDelay = 0;

// ...or queries will be sent after 3 seconds have passed
// since the last key input event
//this.oAutoComp.queryDelay = 3;
// Do not automatically highlight the first result item in the container
this.oAutoComp.autoHighlight = false;

// Enable a drop-shadow under the container element
this.oAutoComp.useShadow = true;

// Enable an iFrame shim under the container element
this.oAutoComp.useIFrame = true;

this.oAutoComp.formatResult = function(oResultItem, sQuery) {
return oResultItem[0] + " " + oResultItem[1];
};


// Stub for AutoComplete form validation
this.validateForm = function() {
// Validation code goes here
return true;

};

};
</script>

</body>
</html>

daiqiaobin 2007-11-03 01:11 發表評論
]]>
re: java線程 ---- 基礎得不能再基礎的東西,謹以作筆記[未登錄]http://www.tkk7.com/ghostwu/archive/2007/05/17/95422.html#118019小豬小豬Thu, 17 May 2007 02:58:00 GMThttp://www.tkk7.com/ghostwu/archive/2007/05/17/95422.html#118019 我都別你搞迷糊了啊!能否給我提供一些關于java和jsp的資料啊!
謝謝了啊!
郵箱:zkco123@126.com

小豬 2007-05-17 10:58 發表評論
]]>
主站蜘蛛池模板: 亚洲男人的天堂www| 免费的一级片网站| 亚洲精品乱码久久久久久自慰| 苍井空亚洲精品AA片在线播放 | 亚洲日韩精品无码专区加勒比| 91免费国产自产地址入| 久久亚洲一区二区| 免费国产黄网站在线观看| 亚洲一区免费观看| 中文免费观看视频网站| 亚洲1区1区3区4区产品乱码芒果| 国产h视频在线观看网站免费| 亚洲一线产区二线产区精华| 一二三四免费观看在线视频中文版| 亚洲天堂男人影院| 免费永久看黄在线观看app| 国产精品亚洲av色欲三区| 亚洲国产成人精品女人久久久 | 亚洲一级片在线观看| 青青草免费在线视频| 亚洲a无码综合a国产av中文| 亚洲高清成人一区二区三区 | 亚洲一区免费视频| 亚洲日本一线产区和二线产区对比| 日本一区二区三区日本免费| 人成电影网在线观看免费| 亚洲av综合avav中文| 99视频在线精品免费观看6| 国产av无码专区亚洲av毛片搜| 亚洲中文字幕在线第六区| 污视频在线免费观看| 亚洲美国产亚洲AV| 亚洲精品午夜无码专区| 男女做羞羞的事视频免费观看无遮挡 | 伊人久久综在合线亚洲2019| 免费电影在线观看网站| 久久久久免费视频| 亚洲一区中文字幕在线观看| 亚洲日本中文字幕一区二区三区| 99爱在线观看免费完整版| 久久精品国产亚洲av品善|