It's an excellent autocomplete version but I have on question.
I use this script in an IFrame for searching. But the IFrame is rather small and the suggested list ist bigger than the frame. So the suggestions where not completely displayed.
Is there a possibility to show the suggestions over the border of the iframe.
When we get search result under textbox first element is by default selected .... I want it to be selected after down key press ....
how it can be done???
When we get search result under textbox first element is by default selected .... I want it to be selected after down key press ....
how it can be done???
Hi, I am using Visual Syudio 2.0. I am using AutoComplete property of DataGridView cell. I have chnaged the font style of cell. I want to change the font of the autocomplete list. How can I do it? Do you have any idea?
I wrote this into a .NET control and have written an article about it, http://www.codeproject.com/useritems/AutocompleteTextbox.asp, incase anybody is interested.
This is a really nice little textbox; it's very well written and looks good. Thanks, great work!
I have spent a few hours this afternoon converting this into a .NET user control (which I did in .net 2.0) which can be dropped into a page file like this:
3. To set the items, just do something like this in your code-behind file at any time (the string array could easily come from a database, XML source, or anywhere):
I find this implementation to be quite excellent! Does anyone know of any custom controls that would provide this same functionality, but in Windows Forms instead? Particularly, I am interested in the ability to type the delimiter (, or ; ).
first of all i think this is a very cool functionality. great work
coming to the problem...
i need to perform a post back once a user selects a value from the list. i have attached an event handler for the same in TextChanged event. but the event does not seem to fire.
Hi,
I have setup several auto complete calls on several textboxes, each actb() setup call gets executed on the 'onfocus' of each textbox.
Now this all works fine, except in a special case:
1. Start typing in box1 make a choice (via mouseclick) - fine
2. Start typing in box2 make a choice (via mouseclick) - fine
3. Go back to box1 start typing, attempt to click on an item - doesn't select it
- now this situation only occurs on the mouse event, not on enter/tab.
Simply putting an alert() call on the function 'actb_mouseclick' shows that on step 1 and 2 if the mouse is used the 'actb_mouseclick' gets called, but does not get called in step 3.
Anyone come across this? Or have an idea as to how to fix it?
hey nice autocomplete tool .. everything that i have tested so far is alryt other than "actb_lim" .. it doesnt fix the limit altough i assign it a fixed number .. so plz take a look at it ..
function change2UpperCase()
{
document.getElementById("custom_field_7").value=document.getElementById("custom_field_7").value.toUpperCase();
}//end function change2UpperCase
But right now, i having some problem.. that is when i key in 'd' but no response at all... and after i leaving the cursor on the textbox and looking at my program.... when i get back to the form, i key in 'd' and this time the autocomplete works...
Please englighten me. what could be the problem and maybe where should i take a look at ... Thank you in advance
hmmmm i think i m having the same from the post "Odd Behavior"
i changed a few part...
function getProductModel()
{
actb(document.getElementById('custom_field_7'),models);
document.getElementById("custom_field_7").focus();
}//end function getProductModel</code>
by changing the few input i m able to get the autocomplete works...
But as my knowledge on this program are limited. I'm not sure if i will cause any problem later on! As at first i thought that the event will fire when onkeydown... T_T...
Please advice if i m causing any serious problem here.. T_T
i recently attempted to implement the actb function in an asp.net web control. i was frustrated with the "Object Expected" error on the line var obj = actb(document.getElementByID(...
turns out the error was caused due to file permissions on the included actb.js, common.js files.
no other error will be generated saying anything about permissions. one way to verify this is your issue is to try to open(save) the javascript file using its URL path (ex. try to open http://<your web="" server="">/actb.js in internet explorer).
also, you could add the javascript code from the include files directly to your html page. if this does not give you the same error, then there is most likely a permissions issue with the included file(s).
anyway, hope this saves everyone some time trying to debug this error.
I know this is a known issue with IE: drop-down are above all the objects and setting the z-index is useless.
I found a solution here: http://www.codeproject.com/useritems/dropdown_div.asp
but I cannot apply this to your script.
Could you please fix actb so that it could be over drop-downs?
Here's the solution:
1) I added an Iframe of 0 pixel
2) I added 2 javascript functions in actb.js:
function ShowIframe() {
var layer = document.getElementById('tat_table');
var iframe = document.getElementById('iframe');
iframe.style.display = 'block';
iframe.style.width = layer.offsetWidth;
iframe.style.height = layer.offsetHeight;
iframe.style.left = layer.offsetLeft;
iframe.style.top = layer.offsetTop;
}
function HideIframe() {
// hide IFRAME
var iframe = document.getElementById('iframe');
iframe.style.display = 'none';
}
3) I modified actb.js in this way:
- Added ShowIframe() at the end of function actb_generate
- Added ShowIframe() at the end of function actb_remake
- Added HideIframe() at the end of function actb_removedisp