I have managed to write a solution for the code to find the space character and other special ones.
Here are the changes:
1) At the function actb_tocomplete, go to the line if (re.test((actb_keywords[i])){ and change it to if (re.test(escape(actb_keywords[i]))){
2) At the functions actb_remake() and actb_generate() find the line c.innerHTML = actb_parse(actb_keywords[i]); and change it to c.innerHTML = actb_parse(escape(actb_keywords[i]));
3) Finally, at the function actb_parse(n), change the line return tobuild; to return unescape(tobuild);
Basically, all that I did was to escape (encode) all the text for the code to find everything and, then, unescape (unencode) it just before displaying it.
I think that's all. Please, let me know if it didn't work because I could have forgotten something...
(just updated: I already found a bug with this... Working on it...)
Two ways to prevent SELECT to come over the layer:
* Design you page so its not a problem
* Detect layers position and boundries and set visibility to hidden for any SELECT elements within those boundries.
------------------------------------------
Hey! Stop reading my signature... stop it!
hmm... you're still reading it...
Hey this work in a great way,this solves the problem where the list of values displayed by an autocomplete filed will not be overlapped by a combo box..i.e the list of values doesn't hide behind combo box..geat idea with less complexity and serves the purpose to maximum extent...great stuff...
Sorry to burst your bubble... In IE 6 the program works, kinda... the div is not at the correct location (it's aligned to the left side of the window about 100 px above the control.... I didn't notice it immidately, nor was it obvious what it was for.
In Firebird/Mozilla or netscape prob (don't have netscape installed to test) the div is located at the end of the page (2 screens of content away and off the screen from the control!) and there's a javascript error (Highlight is not defined)
Maybe you should fix the positioning of the div.
I've done a similar control at work, but they're paranoid about stuff so can't show it to you... , but keep up the good work.
I have tested this with Opera 7.50, Mozilla 1.7.1 and IE 6 and it worked everywhere. The only problem with Opera was that the tooltip window filled almost the full width of the page.
I have also tried it on the linux, just for fun, using Mozilla 1.7 and Konqueror 3.2.0. Mozilla worked fine, but with Konqueror the functionality was rather limited. That is, the tooltip window appeared, and upon pressing Enter the highlighted entry was pasted into the textbox, but the up/down arrow keys didn't so I couldn't choose from the suggested entries.
Anyway, this looks like a very nice and useful control!