Hi
I have this working with an external source using the default @ trigger how might i adapt it So the trigger is either a “@” or “#” and to be able to pass the trigger into the source script to perform two different queries
like
/source.pl?term=MyTerm&trigger=#
also is there a way to set minLength:3 and a delay?

Hawkee  -  Jan 07, 2014

This doesn't support two triggers, but you can change the default trigger in the options. Refer to the option descriptions at the top of the code.

HolyG  -  Jan 08, 2014

OK If i have this in my HTML header

Is this Trigger overriding the Trigger in the script options?

I How do I pass the '#' into the source
Either like
source: "/cgi-bin/AorHSearch1.pl?term#MyTerm",
or
source: "/cgi-bin/AorHSearch1.pl?term=MyTerm&trigger=#",

$(function() {
$('#inputbox').triggeredAutocomplete({
hidden: '#hidden_inputbox',
source: "/cgi-bin/AorHSearch.pl",
triger: "#"
});

Thank you

Hawkee  -  Jan 15, 2014

The trigger isn't passed along to the source. It just indicates that the text following it needs to be passed to the source.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.