* Pranta "By using a file list Xt function Xt variables and some javascript you can create a search function for a folder of files. Use the query (?) to match any one character
Use the asterisk (*) to match any sequence or string of characters."
- graham

now question is, in where do i put this string??? the html script & js is bellow:

<div class="search_results" id="results"><xt:filelist sort_type="name" sort_dir="asc" folder="/YOUR_FOLDER" template="" per_page="10" filter="{_$srch|dummyentry}*" /></div>
<form id="srchfrm" onsubmit="return validateForm()" action="<xt:url />" method="get">
<div class="search_form">
<input name="srch" value="{_$srch|}"/>
<br />
<input type="submit" value="search" />
</div>
</form>
<script type="text/javascript">
var dflt = '\<div style=\"text-align:center\"\>SEARCH MY FILES\</div\>';
var nrslts ='\<div style=\"text-align:center\"\>NO RESULTS\</div\>';
if ("{_$srch|}" != "")
{var rslts=document.getElementById("results").innerHTML;
if (rslts == "")
{document.getElementById("results").innerHTML= nrslts;}}
else
{document.getElementById("results").innerHTML= dflt;};
function validateForm()
{var inp=document.forms["srchfrm"]["srch"].value;
if (inp==null || inp==""){return false;}}
</script>
2014-12-20 06:51 · (0)
* Pranta * Pranta Note, I prefer to use (?) than (*).
2014-12-20 06:53 · (0)
* onedc * Pranta right there at the filter filter="{_$srch|dummyentry}*" before the closing quotes . there is the *
2014-12-20 10:17 · (0)

Online: Guests: 1