|
Hi Geordie,
understood your concerns - I'll try to fix it in the next release.
Regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
This issue will be fixed in the upcoming release (sent to CodeProject on 10th April - will be published soon).
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Hi there, thanks for script...
I have successfully got it loading from an XML file with its collection of Title/Value pairs. However, when I select a Title, its associated value cannot be access by JQuery, eg none of these can access a Title's underlying value:
alert($('#tb_name').attr("value"));
alert($('select option:selected').text());
alert($('#tb_name').selectedIndex());
alert($('#tb_name').attr("name"));
alert($('#tb_name').attr("key"));
I have tried making the text input box a SELECT box, but it doesn't change anything. I don't think the script assigns it a corresponding value once a title has been selected. How do I access the different values of a select that is loaded with this script?
One must remember that the Value of a text input field is what's visible, but for a select box, it is invisible.
Also, I have found that unless the ItemDelimiter is a comma, the script can't differentiate between the two, and just has them merged in the text field output.
|
|
|
|
|
there is also an issue for me, whereby if:
this.actb_startcheck = 0;
..then if I use the down arrow on an empty box, the result is a whole lot of 'undefined' list items in the list.
Would also be great if there were a Callback function to execute once an item is Chosen
|
|
|
|
|
I guess it is dependant on how you populate the keys/value - is it done through the client-side array or a webservice?
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Hi,
adrian33 wrote: However, when I select a Title, its associated value cannot be access by JQuery,
auto-suggest control has it's own API, and cannot be accesed by jQuery. To retrieve the value of last selected key:
for(var i = 0; i < actb.actb_keywords.length; i++)
{
if(actb.actb_bool[i]) c++;
if(c == actb.actb_pos)
{
word = actb.actb_values[i];
break;
}
}
where actb is the autosuggest object.
adrian33 wrote: Also, I have found that unless the ItemDelimiter is a comma, the script can't differentiate between the two, and just has them merged in the text field output.
Don't quite understand - can you please provide an example?
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Thank you a million for flexible, solid code. It has been a great tool for our Intranet site.
Is there a way to make the top row not look highlighted when the suggest list is initially brought up? Right now, you need to press the down arrow once to choose the first item, but because the first item already looks highlighted, but nothing changes when you do that so you don't know if you've really chosen the first item or not.
Thank you again!
|
|
|
|
|
Hi Grant
Set the actb_noDefault variable to true - this will help.
Regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
I had that set, but it didn't seem to help. I was a little more observant and here's a better explaination.
I have these variable set as such:
this.actb_fullRefresh = true;
this.actb_noDefault = true;
this.actb_startcheck = 3;
So upon typing the 3rd character, the suggest box comes up with nothing selected, great! But after the 4th character, the suggest box has less entries but the first one is highlighted. Every character typed after that keeps the first item highlighted, whatever that item may be.
Hmmm...
|
|
|
|
|
Grant Scheffert wrote: So upon typing the 3rd character, the suggest box comes up with nothing selected, great! But after the 4th character, the suggest box has less entries but the first one is highlighted. Every character typed after that keeps the first item highlighted, whatever that item may be.
Sounds like a bug. I'll try to replicate this issue - will get back to you when I have the solution
Dmitry..
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Solution: in the script file, find a actb_tocomplete method, and the following line in it:
if(this.actb_display)
(17th line from the start of method). Change this line to:
if(this.actb_display && (this.actb_pos >= 1))
This should help.
- Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
That worked beautifully! You turned really great code into really, really great code!
|
|
|
|
|
This fix will be included into the next release.
Grant Scheffert wrote: That worked beautifully! You turned really great code into really, really great code!
Thanks Can you please vote for the article? Thank you much in advance!
Best regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Hi ,
I love what you have done here excellent work!
I was wondering though, I implemented the auto suggest to my e commerce web site, that now searches for product items... like amazon style.. How can I get the results to auto submit, without needing to populate the search box first than click the submit button. Cant we just either mouse click or enter on the item and then is submits the result?
Also Is regards to the Auto Suggest, I noticed you can get it to Search First Words Only, Any word in the sentence, but not multiple words in same sentenced that are in order.
ie "Canon EOS 5D Digital Camera" If I Search for "Canon 5D" it will not work... I need to type EOS 5D or Canon EOS etc.. It should allow this multiple words in one sentence...
Any help would be appreciated..
|
|
|
|
|
Hello,
videoguys wrote: I love what you have done here excellent work!
Thanks Can you please vote for the article?
videoguys wrote: How can I get the results to auto submit, without needing to populate the search box first than click the submit button.
Take a look at actb_penter method; at the very end of it, you should place something like:
document.forms["myform"].submit();
videoguys wrote: Also Is regards to the Auto Suggest, I noticed you can get it to Search First Words Only, Any word in the sentence, but not multiple words in same sentenced that are in order.
ie "Canon EOS 5D Digital Camera" If I Search for "Canon 5D" it will not work... I need to type EOS 5D or Canon EOS etc.. It should allow this multiple words in one sentence...
This is an interesting proposal, but could take considerable time. Right now I'm not ready to invest time in this, until someone is ready to fund this change.
Best regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Dmitry,
Thanks for your answers..
OK I would be willing to invest in this change for our website what $$ would be involved.
|
|
|
|
|
Hi again,
videoguys wrote: OK I would be willing to invest in this change for our website what $$ would be involved.
not much, although it'll take some time to augment the seggestion mechanics; please e-mail me at dmitrykhudorozhkov@yahoo.com.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
|
I have jsut sent an email to you..
Now one more thing, back to the "submit function", what line do i need to add this code?
Sorry I'm not too familiar with Java. I have the latest version of auto suggest...
|
|
|
|
|
|
Hi Dmitry,
I would like to thank you also for your efforts to make Zichun's code better. I just wonder that after select one of the suggestion with arrow keys and press enter the form is submitting. I don't want this, only select and put it into the input field. I tried to figure out the functionality of the penter function and try to modify the switch(code)... part's 13rd case but I cannot change this behaviour.
Would you be so nice and help me in this topic?
Thank you!
Tamás
modified on Tuesday, March 24, 2009 12:31 PM
|
|
|
|
|
I can face with this problem only in Firefox, in IExplorer it is fine. Doesn't send the form when select with enter.. So my problem is now only with FF. Thanks in advance!
T
|
|
|
|
|
Not a autosuggest issue; probably you have an action in your form tag and a button input type=submit inside.
That will submit the form when you hit Enter.
Change the input from submit to button and the form will not be submitted.
Regards
|
|
|
|
|
We put the script here: http://docs.liballeg.org
But for example if you type in "color", then the scrollbar will cut off the rightmost part of text. Is there an easy way I can fix this?
|
|
|
|
|
Hi,
allefant wrote: Is there an easy way I can fix this?
You can look at the line 298 of autosuggest.js :
this.cur_w = this.actb_curr.offsetWidth - (msie ? 2 : 6);
Change it to:
this.cur_w = this.actb_curr.offsetWidth - (msie ? 2 : 6) + 8;
- you'll get what you want (or try to play with the number in the place of 8).
Best regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|