Google Custom Search With separate result page

1,398 views
Skip to first unread message

Rajesh

unread,
Apr 21, 2011, 2:33:27 AM4/21/11
to Google AJAX APIs
Hi,
I need two separate pages for my search engeen in my website,
One default html page with search button and other html page would be
for
showing the result.

Thanks.

Jeremy Geerdes

unread,
Apr 21, 2011, 8:29:34 AM4/21/11
to google-ajax...@googlegroups.com
There are a number of ways to do this. The advice that we give will depend very much on what you're comfortable programming. The best option would be to set up an HTML form and then a server-side script that will query the API and return a results page to the client.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

> --
> You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com.
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
>

Message has been deleted

omr

unread,
Apr 21, 2011, 9:14:16 AM4/21/11
to Google AJAX APIs
[This message has been reposted to correct a typo.]

.

The "Iframe" implementation option provides one way to quickly
implement your search box and separate results page for Custom
Search. ... Alternatively, it is also possible to use the Custom
Search Control on a separate results page.

.

If you haven't yet created your CSE, do so here when you're ready to
begin:

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

After creating your CSE, go to the "My search engines" page:

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

Your CSE should be listed there. Click its "control panel" link.
Then click "Look and feel" (in the left column).

Choose the "Iframe" option. Then click "Save" and "Get Code...".

On the "Get Code" page, specify the URL of your results page, and
specify an advertisement placement option. Then use the two code
snippets provided: Use the first code snippet for your search
box(es), and put the second code snippet on your results page.

.

Alternatively you can use the Custom Search Control on a separate
results page. An example implementation is described in this blog
post:

http://googleajaxsearchapi.blogspot.com/2010/03/search-form-and-results-on-two.html

-- omr

omr

unread,
Jun 17, 2011, 6:36:37 AM6/17/11
to Google AJAX APIs
UPDATE:

The Custom Search "Iframe" implementation is now "deprecated" and no
longer supported:

http://www.google.com/support/customsearch/bin/answer.py?hl=en&answer=70381

On the Custom Search control panel's "Look and feel" page, check out
the new "two page" implementation and alternatively the "results only"
implementation.

-- omr
Reply all
Reply to author
Forward
0 new messages