Results 1 to 7 of 7

Thread: Site Search?!

  1. #1
    Join Date
    Dec 2008
    Location
    Portsmouth UK
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question Site Search?!

    Im looking for any such script that will allow users of a website search anything based only upon that website, not the rest of the web.

    Any ideas?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    What?? That doesn't do anything, it's just a form.

  3. #3
    Join Date
    Dec 2008
    Location
    Portsmouth UK
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Red face oops!

    @ snookerman, sorry i just realised what i had copied across!

    Anyway ive come up with this (below), which as you can see is great for searching anything on the web using the google search engine.
    What im after is a script that will allow users to search content upon my website only.

    Heres my current coding:

    <form method="get" action="http://www.google.com/search">
    <input type="text" name="q" size="30" value="" />
    <input type="submit" value="search" />
    </form>


    I really appreciate any help on this! thankyou.

  4. #4
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    You can accomplish this with JavaScript, I made a script for it myself once. But one of the downside to it is that you can only search what Google has indexed, but if you're site has been on the internet for a while, this shouldn't be too much of a problem.

    I'll see what I can do for you...

    EDIT: I finished the script, you can view a demo and get the code here: http://x96wd.tech.officelive.com/hel...te-search.html

    Hope this helps!
    Last edited by X96 Web Design; 02-28-2009 at 05:18 PM. Reason: update
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  5. The Following User Says Thank You to X96 Web Design For This Useful Post:

    danny_matthews (02-28-2009)

  6. #5
    Join Date
    Dec 2008
    Location
    Portsmouth UK
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thank you, that really does help.

    Ideally id like the search results to open up within my own page as apposed to google. is that atall possible?

  7. #6
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    You're welcome!

    From this script, not really. For that, I'd recommend you use this script by JavaScript Kit: http://javascriptkit.com/script/script2/jse/index.shtml

    For this one, you just have to add all the pages you want to your own little "index" of your site. It's very customizable and very useful.
    Last edited by X96 Web Design; 02-28-2009 at 11:45 PM. Reason: politeness
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  8. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by danny_matthews View Post
    Thank you, that really does help.

    Ideally id like the search results to open up within my own page as apposed to google. is that atall possible?
    Sure, just not using the scripts that you've been posted. There are two ways to do this:

    1) Use the Google Search API
    2) Use Google Custom Search Engine

    Both of these allow you to harness Google's services but provide them in a branded (though this might be somewhat limited depending on the solution you choose) and integrated way.

Tags for this Thread

Bookmarks

Posting Permissions

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