Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:11:45+00:00 2026-05-23T11:11:45+00:00

I have a google site search http://www.google.com/cse/manage/create Which gives me the following working code:

  • 0

I have a google site search

http://www.google.com/cse/manage/create

Which gives me the following working code:

<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
    google.load('search', '1', { language: 'en' });
    google.setOnLoadCallback(function () {
        var customSearchControl = new google.search.CustomSearchControl('013080392637799242034:ichqh_hal4w');
        customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
        customSearchControl.draw('cse');
    }, true);
</script>

On some of my pages, I have a search box. Can I make the text entered in that search box, post to this site search script and load?

For example:

  • User is on Home.html
  • They enter text in a search box
  • Redirects them to Search.html
  • Search.html takes the text they entered and does a search with it, without them needing to retype it in the empty box

At the moment I have:

// Temporary measure
SearchBox.click(function (event) {
    SearchBox.attr('disabled', 'disabled');
    SearchBox.css("background", "#efefef");
    window.location.replace(Domainroot + "/search");
});

Which is less than ideal, but works OK. When a user clicks the search box it redirects them to the search page to save them double entering the query.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:11:46+00:00Added an answer on May 23, 2026 at 11:11 am

    Have a look at http://code.google.com/apis/customsearch/docs/js/cselement-reference.html#_methods-el

    It looks like the control you create comes with methods. It seems you are looking for the .execute(query) method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I search in the web with Google Custom Search? Because in http://www.google.com/cse ,
I have integrated a Custom Google Search on a new site I am working
I have a site on this address http://www.kela.nu and in the Google result it
I have an issue with a site I oversee: http://www.aifittings.com that I have not
I have set up http://www.footballverdict.com and it's hosted on Google App Engine. Everything works
I have signed up(paid) for Google site search. They have me a url of
I have a secured site. Will Google (and other search engines) crawl the pages
I have google analytics on my site. One page has a button which when
I have google analytics set on a site I'm working on, It has a
I have a site that when i search in google (ifiwereyou.co.uk) it takes me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.