내 ASP.net 페이지에서 JQuery를 사용하고 있으며 SQL에서 자동 완성 기능을 사용할 수있는 방법이 있는지 알고 싶습니다. 정확하게하려면 데이터베이스에서 "select"를 수행하고 문자열 배열을 가지며 배열을 사용하여 문자열을 사용자 유형으로 채 웁니다. 감사합니다. .JQuery AutoComplete with SQL
0
A
답변
1
jQuery 자동 완성 기능을 얻는 가장 쉬운 방법 중 하나는 jQuery UI control입니다. jQuery의 Ajax 기능을 사용하여 값 배열을 리턴하는 서버 측 함수를 호출한다.
코드
합니다 (jQueryUI 문서에서) 다음과 같습니다 (예 : SQL Server 또는 MySQL은 같은) 데이터 소스로 전화를 걸 수 있습니다 :$("#myInputBox").autocomplete({
source: "search.php",
minLength: 2,
select: function(event, ui) {
log(ui.item ?
"Selected: " + ui.item.value + " aka " + ui.item.id :
"Nothing selected, input was " + this.value);
}
});
0
을 당신은 아마하는 새로운 WCF 웹 서비스를 만들려면 저장 프로 시저/동적 쿼리를 둘러싸십시오. 그런 다음 JQuery 자동 완성을 사용하여 호출 할 수 있습니다.
관련 문제
- 1. Solr with JQuery with autocomplete
- 2. jquery autocomplete with dwr
- 3. jQuery Grid with autocomplete
- 4. jQuery Autocomplete JSON with JSON
- 5. 이미지 변경 src with jQuery autocomplete
- 6. jQuery autocomplete
- 7. jquery autocomplete
- 8. jQuery AutoComplete
- 9. jquery-autocomplete
- 10. jquery autocomplete
- 11. jquery autocomplete MVC3
- 12. jquery autocomplete : this.menu undefined
- 13. Jquery autocomplete :: clear cache
- 14. jquery autocomplete input array
- 15. jquery autocomplete extraParams
- 16. jquery autocomplete tagging
- 17. jquery autocomplete ie bug
- 18. jQuery Autocomplete 또는 Ajax AutoCompleteExtender
- 19. jquery autocomplete IE6 ascii issue
- 20. JQuery UI Autocomplete in Liferay
- 21. jQuery Autocomplete Hotmail과 같은 검색
- 22. Jquery autocomplete on/off 기능
- 23. jQuery ui autocomplete 이상한 행동
- 24. jQuery Tab with links with
- 25. MySql - autocomplete
- 26. C#으로 ASP.Net 페이지의 JQuery AutoComplete 플러그인
- 27. jQuery UI autoComplete - 다른 필드의 값을 전달하십시오.
- 28. jquery autocomplete multipleSeparator 대소 문자 구분
- 29. 선택된 값을 필요로하는 jquery autocomplete 필드?
- 30. jquery autocomplete Mozilla의 자동 완성 문제