国产V亚洲V天堂A无码,亚洲 无码 在线 专区,久久精品国产亚洲AV电影网 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 發表評論
]]>
主站蜘蛛池模板: 亚洲人成无码网站| 四虎永久精品免费观看| 亚洲成AV人片在线观看WWW| 日韩精品免费一线在线观看| 国产男女猛烈无遮挡免费视频网站 | 国产极品美女高潮抽搐免费网站| 亚洲日产2021三区在线 | 久久最新免费视频| 在线亚洲97se亚洲综合在线 | 国产日产亚洲系列| A毛片毛片看免费| 亚洲国产美女精品久久久久∴| 亚欧洲精品在线视频免费观看| 亚洲老妈激情一区二区三区| 成人黄网站片免费视频| 久久精品7亚洲午夜a| 一区二区三区在线免费看| 67pao强力打造67194在线午夜亚洲| 亚洲黄色免费在线观看| 国产成人亚洲精品| 国产一级淫片免费播放| 国产免费区在线观看十分钟 | 免费A级毛片av无码| 亚洲综合小说久久另类区| 免费av欧美国产在钱| 黄色三级三级免费看| 国产av无码专区亚洲av桃花庵| 97免费人妻在线视频| 亚洲日韩国产AV无码无码精品| 免费a级毛片无码a∨性按摩| 13小箩利洗澡无码视频网站免费| 综合自拍亚洲综合图不卡区| 日韩免费视频网站| 好吊色永久免费视频大全| 亚洲一区二区影院| 国产视频精品免费| 性无码免费一区二区三区在线| 亚洲成人免费电影| 亚洲电影日韩精品| 亚洲无砖砖区免费| 老司机免费午夜精品视频|