SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2007
    0 Post(s)
    0 Thread(s)

    customize the google custom search

    Hi to all

    I am using google custom search .through wizard i enter the sites from i want to search .

    its working

    But i want to give the user options below the search box that he selection the option which site he want to search .For that i have e.g 5 sites

    like this site...

    Search Box------------------Search Button

    site1-checkbox site2checkbox site3checkbox

    when user enter any word in search box he have choice to select the site1 or site2... from where he want to search.

    is it possible .which function is use to restrict the site .


  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    104 Post(s)
    4 Thread(s)
    The checkboxes and the search parameters are sent to the server. You can see that at the end of the address bar when you perform a search.

    The server then uses the ticked checkbox information to return the search of the appropriate sites. No javascript needs to be used for that at all.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

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