Hello!
I have been developing a search engine for some templates of my site, I need to use ajax mode, I have searched information about it, and there is not enough information.
My trouble is the folowing:
I have this code in search form:
[[!AdvSearchForm? &landing=`35` &help=`0` &clearDefault=`1` &withAjax=`1` &ajaxResultsId=`537` &addCSS=`0` &liveSearch=`1`]]
Where Landing is for normal search and ajaxResultsId (document id) is for searching by ajax mode
And I have this code in document content (537):
[[!AdvSearch? &hideContainers=`1` &fields=`pagetitle` &hideMenu=`0` &withFields=`pagetitle` &perPage=`20` &sortby=`pagetitle[ASC]` &minChars=`3` &ids=`[[!GetOnlyChildren]]` &withAjax=`1`]]
Where the snippet GetOnlyChildren returns ids where the search will be made.
And I found some script I added:
<script type="text/javascript">
//<![CDATA[
advsea[advsea.length]='{"asid":"as0","hid":"537"}';
//]]>
</script>
So, this is the mistake when the keypress event is done:
Uncaught ReferenceError: URI is not defined
at doSearch (advsearch.min.js?_=1484750863:8)
at advsearch.min.js?_=1484750863:8
Any Suggestion?
Thanks