国产色综合网,国产a区久久久,精品女同一区二区三区在线播放http://www.aygfsteel.com/ghostwu/CommentsRSS.aspxzh-cnTue, 05 Aug 2008 05:59:00 GMTTue, 05 Aug 2008 05:59:00 GMTcnblogsre: yui --------autocomplete學(xué)習(xí)二http://www.aygfsteel.com/ghostwu/archive/2008/08/05/119533.html#220146raul86raul86Tue, 05 Aug 2008 05:59:00 GMThttp://www.aygfsteel.com/ghostwu/archive/2008/08/05/119533.html#220146能不能給我一份動(dòng)態(tài)查詢的例子,郵箱是raul_1986@126.com.

]]>
re: yui --------autocomplete學(xué)習(xí)二http://www.aygfsteel.com/ghostwu/archive/2007/11/03/119533.html#157860daiqiaobindaiqiaobinFri, 02 Nov 2007 17:14:00 GMThttp://www.aygfsteel.com/ghostwu/archive/2007/11/03/119533.html#157860this.connMgr 為空或不是對(duì)象
請(qǐng)問樓主是怎么回事啊?

]]>
re: yui --------autocomplete學(xué)習(xí)二http://www.aygfsteel.com/ghostwu/archive/2007/11/03/119533.html#157859daiqiaobindaiqiaobinFri, 02 Nov 2007 17:11:00 GMThttp://www.aygfsteel.com/ghostwu/archive/2007/11/03/119533.html#157859服務(wù)器端:

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);
//務(wù)必清空頁面緩存
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測(cè)試文件</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>

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

]]>
主站蜘蛛池模板: 塔河县| 东莞市| 桑日县| 醴陵市| 博白县| 东兰县| 金湖县| 高唐县| 民丰县| 徐汇区| 万年县| 深圳市| 比如县| 江华| 德惠市| 韶关市| 上高县| 乐平市| 五华县| 西华县| 广汉市| 高陵县| 辉县市| 桐柏县| 呈贡县| 内黄县| 专栏| 石阡县| 咸丰县| 军事| 水城县| 乐陵市| 东乌珠穆沁旗| 英山县| 陆良县| 伊吾县| 赤峰市| 洛宁县| 潢川县| 太康县| 江津市|