Search This Blog

Showing posts with label AJAX search. Show all posts
Showing posts with label AJAX search. Show all posts

Sunday, August 22, 2010

All Indian Govt Site link's

Obtain: 

*   Birth Certificate <http://www.india.gov.in/howdo/howdoi.php?service=1>
*   Caste Certificate <
http://www.india.gov.in/howdo/howdoi.php?service=4>
*   Tribe Certificate <
http://www.india.gov.in/howdo/otherservice_details.php?service=8>
*   Domicile Certificate <
http://www.india.gov.in/howdo/howdoi.php?service=5>
*   Driving Licence <
http://www.india.gov.in/howdo/howdoi.php?service=6>
*   Marriage Certificate <
http://www.india.gov.in/howdo/howdoi.php?service=3>
*   Death Certificate <
http://www.india.gov.in/howdo/howdoi.php?service=2>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Apply for:


*   PAN Card <
http://www.india.gov.in/howdo/otherservice_details.php?service=15>
*   TAN Card <
http://www.india.gov.in/howdo/otherservice_details.php?service=3>
*   Ration Card <
http://www.india.gov.in/howdo/howdoi.php?service=7>
*   Passport <
http://www.india.gov.in/howdo/otherservice_details.php?service=2>
*   Inclusion of name in the Electoral Rolls <
http://www.india.gov.in/howdo/howdoi.php?service=10>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Register:


*   Land/Property <
http://www.india.gov.in/howdo/howdoi.php?service=9>
*   Vehicle <
http://www.india.gov.in/howdo/howdoi.php?service=13>
*   With State Employment Exchange <
http://www.india.gov.in/howdo/howdoi.php?service=12>
*   As Employer <
http://www.india.gov.in/howdo/otherservice_details.php?service=17>
*   Company <
http://www.india.gov.in/howdo/otherservice_details.php?service=19>
*   .IN Domain <
http://www.india.gov.in/howdo/otherservice_details.php?service=18>
*  
GOV.IN Domain <http://www.india.gov.in/howdo/otherservice_details.php?service=25>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Check/Track:


*   Waiting list status for Central Government Housing <
http://www.india.gov.in/howdo/otherservice_details.php?service=9>
*   Status of Stolen Vehicles <
http://www.india.gov.in/howdo/otherservice_details.php?service=1>
*   Land Records <
http://www.india.gov.in/landrecords/index.php>
*   Causelist of Indian Courts <
http://www.india.gov.in/howdo/otherservice_details.php?service=7>
*   Court Judgements (JUDIS ) <
http://www.india.gov.in/howdo/otherservice_details.php?service=24>
*   Daily Court Orders/Case Status <
http://www.india.gov.in/howdo/otherservice_details.php?service=21>
*   Acts of Indian Parliament <
http://www.india.gov.in/howdo/otherservice_details.php?service=13>
*   Exam Results <
http://www.india.gov.in/howdo/otherservice_details.php?service=16>
*   Speed Post Status <
http://www.india.gov.in/howdo/otherservice_details.php?service=10>
*   Agricultural Market Prices Online <
http://www.india.gov.in/howdo/otherservice_details.php?service=6>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Book/File/Lodge:


*   Train Tickets Online <
http://www.india.gov.in/howdo/otherservice_details.php?service=5>
*   Air Tickets Online <
http://www.india.gov.in/howdo/otherservice_details.php?service=4>
*   Income Tax Returns <
http://www.india.gov.in/howdo/otherservice_details.php?service=12>
*   Complaint with Central Vigilance Commission (CVC) <
http://www.india.gov.in/howdo/otherservice_details.php?service=14>
·         Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Contribute to:


*   Prime Minister's Relief Fund <
http://www.india.gov.in/howdo/otherservice_details.php?service=11>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Others:


*   Send Letters Electronically <
http://www.india.gov.in/howdo/otherservice_details.php?service=20>
*   Search More - How do I <
http://www.india.gov.in/howdo/advancedsearch.php>

Recently Added Online Services


*   Tamil Nadu: Online application of marriage certificate for persons having registered their marriages <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2691>
*   Tamil Nadu: Online District wise soil Details of Tamil Nadu <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2693>
*   Tamil Nadu: View Water shed Atlas of Tamil Nadu <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2694>
*   Tamil Nadu: E-Pension District Treasury Tirunelveli <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2695>
*   Meghalaya: Search Electoral Roll Online by Name (2008) <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2697>
*   Meghalaya: Search Electoral Roll Online by EPIC number (2008) <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2698>
*   Meghalaya: Search Electoral Roll Online by House number (2008) <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2699>
*   Himachal Pradesh: Revised Pay and Arrears Calculator-Fifth Pay <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2702>
*   Meghalaya: Search Electoral Roll Online by Part number (2008) <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2700>
*   Andhra Pradesh: Online Motor Driving School Information <
http://www.india.gov.in/howdo/onlineservice_detail.php?service=2705> 

Global Navigation



*   Citizens <http://www.india.gov.in/citizen.php>
*   Business (External website that opens in a new window) <http://business.gov.in/>
*   Overseas <http://www.india.gov.in/overseas.php>
*   Government <http://www.india.gov.in/govt.php>
*   Know India <http://www.india.gov.in/knowindia.php>
*   Sectors <http://www.india.gov.in/sector.php>
*   Directories <http://www.india.gov.in/directories.php>
*   Documents <http://www.india.gov.in/documents.php>
*   Forms <http://www.india.gov.in/forms/forms.php>
*   Acts <http://www.india.gov.in/govt/acts.php>
*   Rules <http://www.india.gov.in/govt/rules.php>
*   Schemes <http://www.india.gov.in/govt/schemes.php>
*   Tenders <http://www.india.gov.in/tenders.php>
*   Home <http://www.india.gov.in/default.php>
*   About the Portal <http://www.india.gov.in/abouttheportal.php>
*   Site Map <http://www.india.gov.in/sitemap.php>
*   Link to Us <http://www.india.gov.in/linktous.php>
*   Suggest to a Friend <http://www.india.gov.in/suggest/suggest.php>
*   Help <http://www.india.gov.in/help.php>
*   Terms of Use <http://www.india.gov.in/termscondtions.php>
*   Feedback <http://www.india.gov.in/feedback.php>
*   Contact Us <http://www.india.gov.in/contactus.php>
*   Accessibility Statement <http://www.india.gov.in/accessibilitystatement.php>

Tuesday, February 2, 2010

SEO using Google AJAX

First thing to do is to sign-up and get your Google AJAX API.
There is a very useful “Developer’s Guide” and samples of the codes to play around in the playground.

In this blog, I am using the tabbed version of Google Search and here is how I accomplish. (At the time of writing this post, content of the blog was carried from another domain that’s why Google hasn’t indexed the pages yet. So that search results will be empty for this blog for a while.)
There are 3 pieces of code, 1 for the header section of your HTML, 1 for the search box and 1 for the results area.
Code for the header section;

This piece of code has to be in the head section of your HTML before the “” tag.

<blockquote>
<script src="http://www.google.com/jsapi?key=YourAPI" type="text/javascript">
</script>
<style type="text/css">
#searchResults .gsc-control { width : 500px; }
.search-control { margin: 20px; }
</style>
<script language="Javascript" type="text/javascript">
//<![CDATA[
// Load Search and Feed APIs
google.load("search", "1");
function OnLoad() {
var controlRoot = document.getElementById("searchResults");
// Create a search control
var searchControl = new GSearchControl();
searchControl.setLinkTarget(GSearch.LINK_TARGET_SELF);
searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);

var searchFormElement = document.getElementById("searchControl");
var drawOptions = new GdrawOptions();
drawOptions.setSearchFormRoot(searchFormElement);
drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);

// this is where you create your tabbed search results
// for every URL tab, you have to use the search address and the tab label
// This Blog
var searcher = new GwebSearch();
searcher.setSiteRestriction("http://www.lycie.com");
searcher.setUserDefinedLabel("Lycie");
searchControl.addSearcher(searcher);

// google also allow you to search the entire web
searcher = new GwebSearch();
searcher.setUserDefinedLabel("Web");
searchControl.addSearcher(searcher);

// search all other blogs
searcher = new GblogSearch();
searcher.setUserDefinedLabel("All blogs");
searchControl.addSearcher(searcher);

// draw it
searchControl.draw(controlRoot, drawOptions);

}
google.setOnLoadCallback(OnLoad, true);
//]]>
</script></blockquote>

There are 3 important things to do in this code.

1. Sign up and get your Google AJAX Search API. Put your API key where it says YourAPI in the code.

<script src="http://www.google.com/jsapi?key=YourAPI" type="text/javascript">
</script>

<style type="text/css">
2. CSS styling and tab creation are handled by Google. But if you want to use more styling use the CSS section in the code.

<style type="text/css">
#searchResults .gsc-control { width : 500px; }
.search-control { margin: 20px; }

</style>

3. Creating the tabs for the search results. Whenever somebody search my blog, search results will be displayed in 3 tabs, Lycie – results from my site, Web – results from the web and All Blogs – Results from all the blogs on the web.

Here is how I do. For every URL tab you want to create use the code below.

var searcher = new GwebSearch();
searcher.setSiteRestriction("http://www.lycie.com");
searcher.setUserDefinedLabel("Lycie");
searchControl.addSearcher(searcher);

There are 2 things to change in this piece of code in order to create new tabs.

searcher.setSiteRestriction("http://www.lycie.com");
searcher.setUserDefinedLabel("Lycie");

This is where you limit your search results. In other word, you tell Google to display results only from this URL. Here I say, limit this tab’s results for this URL “http://www.lycie.com” and use the label “Lycie”

Limiting your results from an URL means, only results from that URL will be displayed in that tab. This is very useful if you have different sections on your site. Common usage for this is Forums and Galleries. If you have a forum on your site, most likely its URL is www.example.com/forums. By using the code below, you can create another tab just for results from your forums.

searcher.setSiteRestriction("http://www.example.com/forums/");
searcher.setUserDefinedLabel("Forums");

Google does not only allow URL restrictions. Google also allows you to search the entire web for videos, blogs, news, images, books and patents. Check the AJAX API’s Playground for more coding tips.
Code for the search box

Put this into your HTML wherever you want to show your search box.


<div id="searchControl">
Loading...</div>
Code for the search results

Put this into your HTML wherever you want to show your search results.


<div id="searchResults">
Loading...</div>

That’s it. Enjoy your new search engine.

Hit Counter


View My Stats