Hi does any body know how to change the font color from black to white when moving over the list....I have customized the code and applied the hcolor to purple so now the characters in side cannot be seen...so when i move over the options the color of the character should change to white for visibility...if any one has idea plz reply ....its very very urgent....
You helped me my job........ i am trying this code from past 4 days. i thought to try in google once. unexpectedly i saw your code and i have tried it's working excellent....
i request you one more thing is i want the same futhure's of the another textbox which present in the same page.... can you suggest me...
Hi,
suppose there is elephant in custom aray and user types elepha then why do after pressing enter elephant get selected .
Rather if user press up and down arrow then it should get selected.
Any help on this will be helpful.
OK so i've been working on this code solid for 24 hours now and could really do with some help, I'm sure it's nothing much, but I don't have much experience with javascript.
<%@LANGUAGE="VBSCRIPT"CODEPAGE="65001"%>
<!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">
<%
dim objRs
dim arrPDFs
dim javascriptArrayValues
Function GetPDFsArray()
Set connString = Server.CreateObject("ADODB.Connection")
set objRS = Server.CreateObject("ADODB.Recordset")
connString.ConnectionString ="dsn=floor;uid=floor;pwd=floor;"
connString.Open
mySQL = "SELECT * FROM Companies"set objRs = connString.Execute(mySQL)
If NOT objRs.EOF OR NOT objRs.BOF Then
GetPDFsArray = objRs.GetRows()
Else
GetPDFsArray = ""
End If
End Function
'Get array
arrPDFs = GetPDFsArray
If isArray(arrPDFs) Then
for i=0 to uBound(arrPDFs,2)
javascriptArrayValues=javascriptArrayValues & """" & arrPDFs(0,i) & """" & ","
next 'i
javascriptArrayValues=Left(javascriptArrayValues,Len(javascriptArrayValues)-1)
Else
javascriptArrayValues = "Error: No results for array"
End If
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<input type="text" name="pdfDesc" id="pdfDesc" autocomplete="off" />
<script>
customarray = new Array(<%=javascriptArrayValues%>);
actb(document.getElementById("pdfDesc"),customarray);
</script>
</head>
<body>
</body></html>
As I said the page loads, but the autocomplete does nothing.
Thanks in advance to anyboby that takes the time to read this.
I'd like to be able to show the autocomplete list from within a different javascript function. Is there a function I can call?
My scenario is this: the user uses an on-screen keyboard which fires events to fill the textbox. The autocomplete works great when using an actual keyboard, but when they click the keys on the on-screen keyboard (input buttons), the list is not generated. If there is a way I can show the autocomplete list from what is already in the textbox, that would be excellent!
Well I eventually got this great bit of Javascript to pull the list of keywords from a .txt file via AJAX's XMLHttpRequest() to save hitting on the database every pageload. I plan on running a cronjob to update the file once a day from the database with the most popular keywords. Tested in IE6, IE7, Firefox 2 and Opera. The only problem I have encountered so far is the keydown, keypress etc event not working properly in Opera 9. Anyone had any success/failure in Opera with the keydown events too?
Thanks again for this great code. I am using it on a new site of my own due to go live very soon which will be a commercial site so thought I better ask if this will be okay.
Zichun, I desperately need your help! I'm working on a site using your control (easily the best one on the web, I hope you don't mind). And I'd like to call it from within a jQuery ThickBox. http://jquery.com/demo/thickbox/
The two problems I am experiencing are:
1. The auto complete renders from the "non-scrolled" location of the thickbox's text field i assigned it to. If you're scrolled down, you can't see it at all.
2. The auto complete control renders behind both the thickbox and the transparent gray that darkens the page.
I tried messing with z-index stuff, but I couldn't figure it out.
I have to use the thickbox, and I love your auto complete so much that I can't use a different one. Any help or guidance you can give me would be good. My email is henderson.mark@gmail.com, please contact me ASAP!
i am using an asp.net textbox that has an onChange event client side attach to it. when adding this widget the onChange event doesn't raised. is there any reason why
Well I am using this feature and it works great.Only limitation is that it does not support '&' (eg: A&A does not appear on typing 'a' , it does appear on typing a& ) though it supports most other special characters. Just wanted to know where I could change in the code to escape this character.
Hi,
I m doing my engineering graduate project named "Digital library search-Thirukkural" in tamil.I need to finish the auto complete module in it.Can this work with tamil languauge. Also i am doing the project in java and ms-access.Please elaborately explain how to include this in my project.Urgent plzzzzz
But is there an easy amendment to allow the script to use the multiple text searches to be applied to one outcome?
i.e. if I use the comma as the delimeter in this example:
an, app,
I would like both those separated words to be applied to the search and return the result "an apple" and replace the 2 searched words with the result "an apple"