|
|
 Prize winner in Competition
"Best ASP.NET article of Jul 2007"
Comments and Discussions
|
|
 |

|
Can someone please look at this and tell ,me why the AutoSuggest asp-vb code does not work!
Well, I figured it out, it was an ID Ten T (or Id10t) problem. Note the "kingcup' double and single quote mix!!!
Change to double code and problem is fixed.
By the way either 'kingcup' or "kingcup" will work
NOTE: In the original code that can be copied it has "kingcup' in it !!
Dmitri : If you have a chance, please correct the entry
<HTML><HEAD>
<link rel="stylesheet" type="text/css" href="autosuggest.css"></link>
<script type="text/javascript" src="autosuggest.js"></script>
<script>
var customarray = ["apple", "alligator", "banana", "elephant",
"pear", "kingbird", "kingbolt", "kingcraft",
"kingcup", "kingdom", "kingfisher"];
</script>
</HEAD>
<!-- Instruction : http: <body>
<table border="4" width="100%" align = "center" bgcolor="#c0c0c0" id="table1" cellpadding = 1 cellspacing = 1 >
<tr><td colspan="1" ><p align="center">Test Auto AutoSuggest (apple, Kingbird, etc)</p></td> </tr>
<tr><td colspan="1" width="50%" >Current test list : ??<%=customarray%>??</td></tr>
<tr><td colspan="1" width="50%" >
<input type="text" id="tb" value="" style="font-family:verdana;width:300px;font-size:12px" />
<script > var obj = new autosuggest("tb",customarray ); </script>
</table>
</body>
</html>
Thanks, Henry
Detroit, USA
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
This article presents code that augments any INPUT box with an auto-suggest feature, AJAX-capable
| Type | Article |
| Licence | Zlib |
| First Posted | 24 Aug 2007 |
| Views | 370,543 |
| Downloads | 1,756 |
| Bookmarked | 197 times |
|
|