자동 완성 기능

2007/11/14 13:53
네이버나 구글처럼 자동 완성 기능이 필요 할때 있습니다.

그럴때 사용하라고 만들어 봤습니다.

 
사용법 : 비 prototype 사용용
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title>AJAX Auto-Complete Test</title>
 <link rel="stylesheet" media="screen" type="text/css" href="AutoComplete.css" />
<script src="./AutoComplete_prototype.js"></script>
</head>
<body>
 <input id="searchText" style="width: 200px" type="text" />
 <input id="searchButton" type="submit" value="Search"/>
 <script>
  var objAutoComplete = new AutoComplete("searchText", "objAutoComplete" );
 </script>
</body>
</html>
 
 
사용법  : prototype 사용용
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title>AJAX Auto-Complete Test</title>
 <link rel="stylesheet" media="screen" type="text/css" href="AutoComplete.css" />
 <script src="./AutoComplete.js"></script>
 <script src="./prototype.js"></script>
</head>
<body>
 <input id="searchText" style="width: 200px" type="text" />
 <input id="searchButton" type="submit" value="Search"/>
 <script>
  var objAutoComplete = new AutoComplete("searchText", "objAutoComplete" );
 </script>
</body>
</html>




--  DEMO






2007/11/14 13:53 2007/11/14 13:53
Posted by Junios

트랙백 보낼 주소 : http://junios.net/tc/trackback/198

<< PREV : [1] : ... [81] : [82] : [83] : [84] : [85] : [86] : [87] : [88] : [89] : ... [187] : NEXT >>

BLOG main image
Junios World by Junios

카테고리

전체 (187)
주저리 (60)
Tips (8)
적어놓기 (7)
Hacking (1)
Programming (110)
(1)

최근에 받은 트랙백

글 보관함

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Total : 121508
Today : 20 Yesterday : 60