What are you trying to do ? create an input form for a search ?
Here is a board for the AjaxSearch snippet. To get the search input form in your template do as follow:
adds [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`xxx`!] inside your template (in the header for instance)
* This call renders, on all pages, a search form.
* Results will be displayed on page #xxx
* To display the results without the search form, the document #xxx should contain a non-ajaxSearch snippet call:
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]
And then, if you would like change the look and field of the input form, you need to change the ajaxSearch/templates/layout.tpl.html file.
With you example, try for instance:
<!--SearchBar -->
<div class="dd" style="position:absolute;">
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="main_imgs/search.png" align="center" valign="middle" style="padding-top:4px;">
<input type="hidden" name="advSearch" value="[+as.advSearch+]" />
<input id="ajaxSearch_input" style="background:none; border:none; display:block; padding-left:10px;" size="16" height="22px" class="cleardefault" type="text" border="0" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
</td>
<td width="54px" valign="middle">
<input id="ajaxSearch_submit" style="background:none; border:none; width:54px; height:22px; background-color:#f8712f; color:#333333; font-size:12px; font-weight:bold;" type="submit" name="sub" value="[+as.submitText+]" />
</td>
</tr>
</table>
</form>
`+]
</div>
<!--End SearchBar -->
[+as.showIntro:is=`1`:then=`
<p class="ajaxSearch_intro" id="ajaxSearch_intro">[+as.introMessage+]</p>
`+]
[+as.showResults:is=`1`:then=`
[+as.results+]
`+]Or download the attached file, remove the ".txt" extension, drop the "alexLayout.tpl.html" file into the assets/snippets/ajaxSearch/templates directory. And replace the AS snippet call of your template by:
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`xxx` &tplLayout=`@FILE:assets/snippets/ajaxSearch/templates/alexLayout.tpl.html`!]
Don’t forget to replace xxx by the id of your landing document.
See below inside my signature for the wiki documentation about ajaxSearch, otherwise for the AS demo site is
here
You are a lucky man, I was waked up early today