Re: [libraryh3lp] Embeddable FAQ search form?

32 views
Skip to first unread message

Amy Shelton

unread,
Oct 31, 2012, 10:14:20 AM10/31/12
to Greg, libra...@googlegroups.com
Dear Greg,

At the moment, we don't have an embeddable form ready-made. However,
you can roll your own with a couple of calls to the FAQ API.

To search:
http://your-faq-site/instant

Of course, you'll need to replace your-faq-site with your actual faq site.

Optionally, you can pass in two arguments. These are q and topic. q is
a string containing the patron's query. topic restricts the search for
the text in q to a specific topic.

E.g. http://your-faq-site/instant?q=hours&topic=general

Responses are JSON.

To see a specific question:
http://your-faq-site/questions/id?format=json

Again, you'll need to replace your-faq-site with your actual faq site.
And you'll need to replace id with the question's id, which can be
found in the JSON response from instant (see above).

Hope that helps. :-)

In terms of an embeddable search form for your FAQ, what sort of
behavior did you have in mind for the display of the results?

Very best,
Amy

On Tue, Oct 30, 2012 at 2:50 PM, Greg <ewoo...@gmail.com> wrote:
> Hi,
>
> Is there a way to generate code for a form that will search our FAQ from an
> external page? I've monkeyed with it, but our CMS won't let me link to the
> .js files that the form calls.
>
> Thanks for considering,
> Greg
>
> --
> You received this message because you are subscribed to the Google Groups
> "libraryh3lp" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/libraryh3lp/-/0g4PV77GkZAJ.
> To post to this group, send email to libra...@googlegroups.com.
> To unsubscribe from this group, send email to
> libraryh3lp...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/libraryh3lp?hl=en.
Reply all
Reply to author
Forward
0 new messages