*
Home Forum Blog About
Artist

For your music & video
promotions
..Contact Or Mail Us Via..
08071389491 (+234) 08071389491 Or
Bidexking2015@gmail.com

Notice! Notice!! Notice!!!

please don't request for codes here. Any request here will be ignored please just click on the below link to request for codes for Quick reply Thank You. http://guruztip.xtgem.com/Forum

WELCOME TO DAH FORUM

* Login Signup
Home » Coding Helps » XtGem coding help » HELP NEEDED » View post
* GuruzLord * Beecoded
For the search code
Place this html code where you wish the search results to be shown
You can add classes and styles to the div and your own settings for the filelist
but do not add any other html code inside the div
This will show all files that BEGIN with the search string
<div class="search_results" id="results"><xt:filelist sort_type="name" sort_dir="asc" folder="/YOUR_FOLDER" template="" per_page="10" filter="{_$srch|Redbullet}*" /></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>

Copy code

Place this javascript on the page below the search box code.You can set the default text and the text for no results in this script
<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>

Copy code
#
 
0
Posted 17-05-10 22:40
Home » Coding Helps » XtGem coding help » HELP NEEDED » View post
Online: Guests: 3
Copy And Share Site Link :
    62034 total views, 10views today

  • Home
  • |
  • About
  • |
  • Blog
  • |
  • Gallery
  • |
  • Contact
  • |
  • Disclaimer
  • |
  • FASQ
  • |
  • Profile
  • |
  • Credits
  • |
  • partners
  • |
  • Advertise
  • |
  • Terms of Services

Copyright © 2016 - All Rights Reserved

Get Huge Traffic And Members To Your Website Now With Just A Click... Click Here Now!

Duck hunt