Google Ajax Search APIµÄ»ù±¾Ê¹Ó÷½·¨
Google Search API
²Î¿¼Êé¼®£ºGoogle API´óÈ«—±à³Ì?¿ª·¢?ʵÀý
Êé¼®¶Ô¼¸Ê®ÖÖGoogle³£ÓÃAPI½øÐÐÁËÊáÀíºÍ½éÉÜ£¬¸¨ÒÔÐÐÖ®ÓÐЧµÄ´úÂëʵÀý
http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/
1£©Google Site Search
GoogleÕ¾µãÄÚǶËÑË÷µÄʹÓ÷½·¨
<%@ page language="java" contentType="text/html; charset=GBK"%>
<html>
<head>
<title>Ê×Ò³</title>
</head>
<body>
Õ¾ÄÚÈ«ÎÄËÑË÷£¬¹È¸èºÏ×÷Ìṩ
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom"
target="google_window">
<table border="0" bgcolor="#ffffff">
<tr>
<td nowrap="nowrap" valign="top" align="left" height="32"></td>
</tr>
<tr>
<td nowrap="nowrap"><input type="hidden" name="domains"
value="njmars.net"></input> <label for="sbi" style="display: none">ÊäÈëÄúµÄËÑË÷×Ö´Ê</label>
<input type="text" name="q" size="20" maxlength="255" value=""
id="sbi"></input> <label for="sbb" style="display: none">Ìá½»ËÑË÷±íµ¥</label>
<input type="submit" name="sa" value="Google ËÑË÷" id="sbb"></input></td>
Ïà¹ØÎĵµ£º
ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1ÊÇupdatepanelµÄid
ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1ÊÇupdatepanelµÄid
......
ÕâÁ½Ìì¸Õ½â¾öÁËajax¶àä¯ÀÀÆ÷¼æÈݵÄÎÊÌ⣬Ö÷Òª¾ÍÕë¶ÔFirefoxµÄ£¬¿ªÊ¼»¹ÒÔΪFirefox²»Ö§³ÖajaxÄØ£¨±ðЦÎÒѽ£¬²»ÔõôÁ˽âFirefoxҲûÓùý£¬ºÇºÇ£©£¬¶à¿÷¿´ÁËÏÂÃæµÄÎÄÕ²ÅÈÃÎÒÁ˽âajaxµÄÊÊÓ÷¶Î§¡£ÆäʵֻҪ·ûºÏw3cµÄ±ê×¼¾Í¿ÉÒÔÔÚFirefoxµÈÕâЩä¯ÀÀÆ÷ÉÏÕý³£ÏÔʾ£¬ËùÒÔ»¹ÊÇÓ¦¸ÃºÃºÃÁ˽âÒ»ÏÂw3cµÄ±ê×¼¹æÔòѽ¡£²»¹ýÒª½ ......
ÎļþÃû£ºajax.js
/**
* È¡µÃµ±Ç°Ò³ÃæµÄurl
* ¿ÉÒÔÔÚµ÷ÓÃajax_queryÇ°ÐÞ¸Ä
**/
var url = location.href.substr(0, location.href.length-location.search.length);
/**
* ¸øFunction¶ÔÏóÌí¼ÓÒ»¸öÈ¡µÃº¯ÊýÃûµÄ·½·¨
**/
Function.prototype.Name = function() {
var s = Func ......
AJAXÊÇweb20µÄ»ùʯ£¬ÏÖÔÚÍøÉÏÁ÷Ðм¸ÖÖ¿ªÔ´µÄAJAX¿ò¼Ü£¬±ÈÈ磺jQuery,Mootools,Dojo,Ext JSµÈµÈ£¬ÄÇôÎÒÃǵ½µ×ÔÚʲôÇé¿öϸÃʹÓÃÄǸö¿ò¼Ü£¿ÒÔÏÂÊÇÒ»×éÕª³µÄÊý¾Ý£º
AjaxianÔÚ2007Äêµ×¶ÔAjax¹¤¾ß½øÐÐÁ˵÷ ......