Search code examples
javascriptjquerydatabasequotesbusiness-catalyst

Building a Quote Database without Server Side


I want to build a searchable database of quotes. The idea is I would type in a keyword to a search box and I would have quotes with those keywords. I would assign key words to the quotes. I am using a hosted CMS (Adobe Business Catalyst) and cannot use server side scripting. How is the best way to go about this? Is it possible to do this with javascript and jquery?


Solution

  • You could put all of the quotes on to the page statically in a JSON object, or even just as HTML elements, ready to be shown, but hidden. Then search through them with your keywords, and un-hide the ones that are relevant to the search.

    Depending on how many quotes you have, the page could become large and take a long time to load, but that's just something to keep in mind for performance.