SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    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... http://share4vn.com/


    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 .

    thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    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


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
  •