Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to implement more than two categories? #261

Open
chochocolate opened this issue Jan 21, 2017 · 0 comments
Open

Is it possible to implement more than two categories? #261

chochocolate opened this issue Jan 21, 2017 · 0 comments

Comments

@chochocolate
Copy link

Hi, I like your plugin and I'm triying to implement it in our Shop. I would like to have more than two categories. It works very well until I add the third Category. I do not understand why it works with TWO categories bur not with THREE. Could you please help me? Below is my Code.

I also would like to submit the form (to execute the search) direct after select one of the suggested words, after an enter at one of the suggested words. Currently I have to click at the button Search or click two times enter, one to select the word and one to submit the form with the suggested word.
Is there any posibility to submit the form from Jquery after an event like "onSelectItemEvent" ?

Thanks in advance
Liliana

Here my test code:

<script> $( window ).load(function() { var options = { url: "ajax/testcate.json", list: { match: { enabled: true }, maxNumberOfElements: 30 ,onSelectItemEvent: function() {$( "#quick_find" ).submit();} } , theme: "yellow-light", categories: [ { listLocation: "MyCate1", header: "-- Autoteile --", maxNumberOfElements: 5 }, { listLocation: "MyCate2", header: "-- Zubehör --", maxNumberOfElements: 5 }, { listlocation: "MyCate3", header: "-- Werkzeug --", maxNumberOfElements: 5 } ] }; $("#search_words").easyAutocomplete(options) }); </script>

-- json:
{
"MyCate1": ["palabras", "somethingelse", "algo", "Parameter"],
"MyCate2": ["preceding", "parts","conditions","Position", "Funktion"],
"MyCate3": ["table", "index", "values", "String", "Position", "Prototype"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant