返回列表 發帖
本帖最後由 felix0131 於 2010-6-7 17:23 編輯

wmh 大大你好唷,我是使用asp語法
資料有抓出來,搜尋結果呈現藍底白字的十筆資料,用鍵盤無法上下移動,不知asp哪一段語法錯誤該如何改呢^^"
感謝唷~

index.html
===========================================
$("#imageSearch").autocomplete("images.asp", {
                width: 200,
                max: 4,
                highlight: false,
                scroll: true,
                scrollHeight: 300,
                formatResult: function(data, value) {
                        return value.split(".")[0];
                }
        });
==========================================

images.asp( images.php來改 )
==========================================
<%
term=trim(replace(request("q"),"'","")) '$term = $_REQUEST['q'];
Set RSsearch_keyword_check = Server.CreateObject("ADODB.Recordset")'$images = array_slice(scandir("images"), 2);圖檔名稱
RSsearch_keyword_check.Open "SELECT distinct top 10 name FROM ajax_search with (nolock) where name  like '" & term & "%' order by name asc",Conn,3,2
while not RSsearch_keyword_check.EOF
response.write RSsearch_keyword_check("name") &"<br>"
RSsearch_keyword_check.MoveNext
wend
%>

TOP

返回列表 回復 發帖