Skip to main content

Simple customized Search form code for using Google Custom Search Engine (CSE) results hosted on Google



If you have created personalised search engine using Google's Custom Search Engine (CSE) option through website    http://www.google.com/cse/ ,    then you will be given a piece of code that need to be pasted on your website, on where you wish to see the Search box..

Google custom search results can be displayed in different modes

1. Display the result with in the page where you are displaying the Search Box
2. Display the result on a different page on your website
3. Display as frames
4. Display the result on a google hosted page.


If you are using the 4th option, ie, displaying the google custome search result on a google hosted page, use the following code to cretae the Custome search box.

<form action='http://google.com/cse' id='cse-search-box' target='_blank'>
<input name='cx' type='hidden' value='010414496501306016230:x0vzcyik-ik'/>
<input name='ie' type='hidden' value='UTF-8'/>
<input name='q' onblur='if(this.value == '') { this.value='Google Custom Search'}' onfocus='if (this.value == 'Google Custom Search') {this.value=''}' onClick='if (this.value == 'Google Custom Search') {this.value=''}' size='18' type='text' value='Google Custom Search' style="font-size:14px;color:blue"/>
<input name='sa' type='submit' value='Search'/>
</form>


Fields:

cx : Your custom search Engine Id
ie : Your encoding
q : Your search query
sa : Search button name

Here is how it works :)
Your request will be submitted to a Google page http://google.com/cse, where it is processed. Google checks its index for records matching the submitted key word. If found result is displayed.

SITE SEARCH

for more details, please logon to:
http://www.google.com/cse/

Comments

Popular posts from this blog

Payback Points - How to redeem - How to merge multiple payback accounts - Block Payback card - Payback customer care

Your SBI Debit card ending with XX0000 is deactivated only for Internet txn.

SBI account holders may have received an SMS with following message, supposed to be from State Bank of India (SBI).

Your SBI Debit card ending with XX0000  is deactivated only for Internet txn. To activate send SMS "SWON ECOM 0000" to 09223966666. No change for ATM/POS usage
** Replace the four Zeros with last 4 digits of your debit card number

Recently many of the SBI account holder has losed their money due to a hi-tech ATM robbery which happened in Thiruvananthapuram, capital city of Kerala.

Joomla and Forum Integration - Integrating Forums to Joomla

Joomla is one of the most popular CMS opensource packages. It is very easier to develop website's using Joomla. You just need to download Joomla package from Joomla's Official website www.joomla.org  and install it on your domain and later adding customizations to templates and feature and Your website is ready :). Now a days most websites provides a forum section for it users for discussing various article topics, gathering opinions etc.



Following are some best know forum opensource packages which can be integrated with Joomla and create a new forum experience for users


Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »
Member
Search This Blog