I got AjaxSearch 1.8.4 working on a build of a site I’m working on about a month ago. I haven’t touched it since except to modify the CSS for it last week. I probably haven’t used the search function in about three weeks but the last time I checked it was working exactly as I set it up (not just right after setting it up, either, I would test that TVs were interacting the way I wanted, and so on).
Then yesterday morning I get a comment from one of my colleagues that "When I initially looked at the site this was working but it seems to be broken currently?" Sure enough, I try it myself (FF3.6.2 and Saf4.0.4) and there’s no "submit", either on clicking the button or hitting "Enter/Return". Viewing source, the code doesn’t look any different to me.
I’ve been adding/removing a few .js calls in the heads of interior pages (Template B), but there’s nothing on the home page (Template A) that wasn’t there the last time I checked the search (SmoothGallery/MooTools), so I have no idea what happened.
Here’s the site build:
http://www.comnet.net/Rework/
Here’s my Ajax call (show form on the page but redirect to id=15 for results):
[!AjaxSearch? &showIntro=`0` &ajaxSearch=`0` &resultsPage=`0` &AS_showResults=`0` &AS_landing=`15`!]
My template:
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post"><input type="hidden" name="advSearch" value="[+as.advSearch+]" /><label for="ajaxSearch_input"><input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] /></label><label for="ajaxSearch_submit"><input id="ajaxSearch_submit" type="image" name="sub" src="assets/images/search-button.gif" width="23" height="24" /></label></form>
`+]
[+as.showIntro:is=`1`:then=`
<p class="ajaxSearch_intro" id="ajaxSearch_intro">[+as.introMessage+]</p>
`+]
[+as.showResults:is=`1`:then=`
[+as.results+]
`+]
I’d appreciate any insight. Not knowing when it stopped working, I’m completely at a loss as to what triggered the problem.
Thanks in advance!