Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help reagarding searching with in the site

    hi,
    i need some help,regarding searching.
    i want to place searching option with in my site,i.e i want search with in my site only
    And i already searched lot of web site for this,But i did'nt get any thing.so,if possible any body can help me please.. i need it urgent

  • #2
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The quickest solution I can think of with this script provided by Google.

    Basically the searching is done through Google, and results will only be of what Google has found on your web site. However, it is quick and painless.

    <!-- SiteSearch Google -->
    <FORM method=GET action="http://www.google.com/search">
    <input type=hidden name=ie value=UTF-8>
    <input type=hidden name=oe value=UTF-8>
    <TABLE bgcolor="#FFFFFF"><tr><td>
    <A HREF="http://www.google.com/">
    <IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
    border="0" ALT="Google"></A>
    </td>
    <td>
    <INPUT TYPE=text name=q size=31 maxlength=255 value="">
    <INPUT type=submit name=btnG VALUE="Google Search">
    <font size=-1>
    <input type=hidden name=domains value="YOUR DOMAIN NAME"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> YOUR DOMAIN NAME <br>
    </font>
    </td></tr></TABLE>
    </FORM>
    <!-- SiteSearch Google -->

    Just make sure you put your domain name where it says YOUR DOMAIN NAME.

    Sorry that its not javascript. Hope you weren’t looking just for a javascript solution. If you were, my solution wouldn’t work.

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by fivecents
    Sorry that its not javascript. Hope you weren’t looking just for a javascript solution. If you were, my solution wouldn’t work.
    JS can't search across pages, ie a site, only within a page or frameset.
    *keep it simple (TM)

  • #4
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank u very much for u r reply,but it is not working,one more thing i want results to be in another page,if it is not possible
    with javascript can u kindly tell me how to solve this problem please..it is very urgent please..

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you'll need a serverside coding language to do this properly. to be frank tho, the Google solution given to you is the best to go for.
    *keep it simple (TM)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •