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 Coder
    Join Date
    Nov 2008
    Posts
    24
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Help search option toggle

    Hi everyone,

    I'm planning to put a search option on my site where users can choose whether to use the search option to search the site itself or choose the google search option to search web in general. Like in friendster(dot)com, users can choose the friendster search option or the google web search anytime by just clicking the toggle tabs. Outcome is like this : Search: Web | Friendster..

    If anyone can provide a code for this, it will really be much appreciated..

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    nadec23 (03-30-2009)

  • #3
    New Coder
    Join Date
    Nov 2008
    Posts
    24
    Thanks
    14
    Thanked 0 Times in 0 Posts
    What I mean is, the toggle code for setting the options on search like in friendster(dot)com..

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    They are setting the selected index of a hidden drop down as web, when we choose the web option, and then sending the submitted data to a G-CSE. When we choose to search within that site, on the other hand, they are making that drop down visible and then passing the submitted result to their own search page.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New Coder
    Join Date
    Nov 2008
    Posts
    24
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    They are setting the selected index of a hidden drop down as web, when we choose the web option, and then sending the submitted data to a G-CSE. When we choose to search within that site, on the other hand, they are making that drop down visible and then passing the submitted result to their own search page.
    so how do we gonna do it? maybe someone here can share a code..

  • #6
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You may "view the source" in firefox, and/or use firebug to inspect the elements.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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