Friday, August 1, 2014

Now we see better how each part of the code work does it. The first part is called the Google File


Google Web Search API is what Google has provided API that we use to search in Google like we do on the web, Google is responsible for it, as if, let's dog door bell say we want to search in Google for use in your application. Whether it is a Web Application and Window dog door bell Application I was able to get the results that Google returns on this show, we have programs like Google by itself dog door bell was prepared to run this API has two methods together. JavaScript run through run through URL Javascript let's start with an enabled dog door bell Javascript before dog door bell better In a first step, we will learn from the example below first. Well, I will explain how each part of the code like <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Strict / / EN" "http://www.w3.org/TR/xhtml1/DTD/. xhtml1-strict.dtd "> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv =" content-type "content =" text / html; charset =. utf-8 "/> <title> Hello World - Google Web Search API Sample </ title> <script src="https://www.google.com/jsapi" type="text/javascript"> </ script>. <script language="Javascript" type="text/javascript"> / / <! google.load ('search', '1 '); function OnLoad () {/ / Create a search control var searchControl = new google.search. . SearchControl (); / / Add in a full set of searchers searchControl.addSearcher (new google.search.WebSearch ()); searchControl.addSearcher (new google.search.VideoSearch dog door bell ()); searchControl.addSearcher (new google.search. . BlogSearch ()); searchControl.addSearcher (new google.search.NewsSearch ()); searchControl.addSearcher (new google.search.ImageSearch ()); searchControl.addSearcher (new google.search.BookSearch ()); searchControl. addSearcher (new google.search.PatentSearch dog door bell ()); / / tell the searcher to draw itself and tell it where to attach searchControl.draw (document.getElementById ("searchcontrol")); / / execute an inital search searchControl.execute (. "pstudiodev");} google.setOnLoadCallback (OnLoad); / /]]> </ script> </ head> <body> <div id="searchcontrol"> dog door bell Loading </ div> </ body> </ html>. When I open this HTML file in the Browser, it will look something like this.
Now we see better how each part of the code work does it. The first part is called the Google File API for use in web pages, we first <script src="https://www.google.com/jsapi" type="text/javascript"> </ script>. We then run the Google API load modules we want to use up too. As in the example in code like we have loads modules by loading the V1 version of the API, it actually loads the module, we can now add it here. Just add the loaded For example, to use the API, Google Map, it just put the "maps", "2", it is to load Google Map API Version 2 itself, but here we are only interested in the search results of Google, as it, so we do it ". search "," 1 "is that it google.load ('search', '1 '); In the OnLoad function to be called when the page is loaded it. By the load it is. google.setOnLoadCallback (OnLoad); Here we come to see that it is not the function OnLoad better I function OnLoad dog door bell () {/ / Create dog door bell a search control var searchControl = new google.search.SearchControl (); / / Add in a full. set of searchers searchControl.addSearcher (new google.search.WebSearch ()); searchControl.addSearcher (new google.search.VideoSearch ()); searchControl.addSearcher (new google.search.BlogSearch ()); searchControl.addSearcher (new. google.search.NewsSearch ()); searchControl.addSearcher (new google.search.ImageSearch ()); searchControl.addSearcher (new google.search.BookSearch ()); searchControl.add.

MORE



No comments:

Post a Comment