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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Fernandina Beach, FL
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make a search option?

    Can anyone tell me how to make a basic search option, just a input box and a submit button. I don't even know what language to use. Any help would be great!

    Thanks, Drew.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi,

    if you are just searching inside a page you could use something like the scripts here:

    http://www.codingforums.com/showthre...?threadid=6036

    if you need to search a whole site you'll need to use a server side language like PHP etc...

    heres a helpful link from JavaScript kit:
    http://www.javascriptkit.com/howto/search.shtml

    hope this helps...
    redhead

  • #3
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    There is also the option of using JavaScript to search a file where you yourself input the information allowed to be searched. The site from my signature link has an example of this in the search bar on the left. (Try just typing in 'a' to see a good example)

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    262
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The simple option

    Press control and f on any web page - type in the word or words and press enter.

    On a serious note, I'd go for the JavaScript option if you are only searching a small site.

    I have a tool that I use, works like this.

    A js file that contains the following: words to be searched by, link explanation, link
    This is repeated for all search words/sentances etc.

    A popup window split into 2 frames, 1 where you type the word or words and the other where the results display. All links open in the parent window.
    Therapy is expensive, popping bubble wrap is cheap, you choose.

  • #5
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Yeah, tommy, that is about the same as the one on my site. You make a good point to use JS on a small site.

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Master.com do seem to do a lot... but it isn't for me.


    Ionsurge.
    http://www.mudsplat.com - Web design, print, and marketing solutions.


  •  

    Posting Permissions

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