I would like to know if it's possible to use this autocomplete feature with an access database instead of an array...Thanks a lot if you have any code for me because I can't find THE solution...
Another flaw in IE6 when using block styles. They hide behind the tag. This has been fixed with IE7, and I have even found work arounds for IE6. Unfortunately, I cannot get those work arounds to work with your script. Great script buy the way.
BTW, your script does work in IE7.
I was wondering if anyone has asked you about this flaw yet and has anyone been able to come up with a fix. Your script is a bit over my head when it comes to tweeking it to fix this issue. Any help would be great.
Thanks,
Kevin
CSS and Javascript that fixed my CSS Menu
#nav li ul { position: absolute; width: 10em; left: -999em; }
#nav li:hover ul { left:auto; }
#nav li:hover ul, #nav li.sfhover ul { left:auto; }
I'm looking for a way to dropdown the list manually (by user pressing arraw down) or by clicking a combobox "down-icon".
Is this possible?
I have tried to change actb_checkkey so that it calls autogenerate when keycode 40 is received and some other small changes but have not been able to get it to work.
Is it possible to bring the drop down box to the top of the page, i.e. there are other controls under the textbox and whenever the list of suggestions comes up it gets hidden by the other controls present on the page. so I need to know, if the list of suggestions(dropdown box) can come above all other controls.
I figured out how to do this. You have to change the z-index of the table that is created. Within actb.js, it creates a table at lines 105 and at 180. After these lines, add this:
Ok, so I've tried onblur and onchange to submit my search form. It does work, however it only submits what I've typed and not what the autocomplete has input in the box.... anyone have a solution? Would I need to modify the script or can I create another script to submit the text field form AFTER the autocomplete fills in the form?
Hi
Did you by any chance get the solution for the on keyboard enter probelm. Im also facing the same issue. After selecting a value from the auto populated list and I hit enter the submit does not happen. It just refreshes the page. The value is not going to the backend. If you have solved this let me know....I require the solution really urgent....I ve been scrating my mind for the past 2 days...
Hi i tried to change de keyword and i use obj.actb_keyword but it's doesnt work....i like to used with AJAX ...
whe TEXTFIELDX is on focus...i get it the keyword from DB and i tried to use obj.actb_keyword to refresh the autcomplete....but it's doen't work....can anyone have any solution?
I just downloaded this autocomplete function which is pretty cool. And I ran into the same problem, perhaps you've already fixed it, but for anybody that looks for an answer on this, the issue is that on the sample code it says
obj.actb_keyword = new Array('this','is','a','new','set','of','keywords');
if you go to the javascript file, you'll realize that the variable name is
actually actb_keyword so, changing the code to this variable would be enough to solve the problem.
obj.actb_keywords = new Array('this','is','a','new','set','of','keywords');
this would have problems if other controls also want handle keydown or keypress. I'm sure you must have some reasons to do it, but what are the reasons? Anyway, great stuff.
Hi
I'm trying to add the onChange to the input box, in order to get its value and automatically fill some extra input box of the form.
I'm using the function addEvent defined in common.js, but I can't manage to make it work. Here's a snippet of my code:
function refreshFields() {
alert("hello!");
}
var obj = actb(document.getElementById('tb'),comuni);
//add the onchange event to call refreshFields() function
addEvent(obj,"change","refreshFields()");
Adding an onChange event does not appear to work
on IE 6.
(nor does adding it directly to the input tag).
Both do work with FireFox....
Is there any way to get it to work?
Is it possible to only allow users to type the terms given in the keyword list?
At present users can type anything in the box and move on to the next field.
Can it reject any characters that don't spell out an exising keyword? If it could throw away the incorrect character and keep showing the choice(s) that would be helpful. eg. typing 'alligar' would cause actb_curr.value to be reset to 'alliga' discarding the 'r' while continuing to show the choice list. Then it would behave more like a Select box not permitting unknown keywords. (Especially useful when actb_firstText = true).
I use this script with TEXTAREAs and it work fine.
I have configured "this.actb_delimiter" with SPACE, DOT and COMMA but now I want make the carriage-return a delimiter. I have tried this :
this.actb_delimiter = new Array(' ',',','.',unescape("%D"));
but it's not good.
How known to do this ?
Thank's
GZ
Style assignation is done by : and not with =
Line 17 : this.actb_hStyle = 'text-decoration:underline;font-weight="bold"';
replace by :
this.actb_hStyle = 'text-decoration:underline;font-weight:bold';
GZ
As suggested in the implementation part of this article , this script should implement multiple textBoxes but it's not working. I think that you are saving the keword list in one global variable , instead of private list for each object.
Here is the implementation that i was trying(I think that you will recongnize it )
var customarray=new Array('an apple','alligator','elephant','pear','kingbird','kingbolt', 'kingcraft','kingcup','kingdom','kingfisher','kingpin');
var customarray2 = new Array('something','randomly','different');
var obj = actb(document.getElementById('tb'),customarray);
var obj2 = actb(document.getElementById('tb2'),customarray2);
//setTimeout(function(){obj.actb_keywords = custom2;},10000);