易截截图软件、单文件、免安装、纯绿色、仅160KB

仿百度ajax搜索提示(jsp)

<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>index</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
  <style type="text/css">
  body{
   font-size:0.75em;
   border:0;
   margin:250px 0 0 0;
   padding:0;
   }
  #content{
   width:450px;
   margin:auto;}
  
  #key{
   width:300px;
   margin:0;
   padding:4px 0 0 5px;
   }
  
  .key_abnormal{
   border-bottom:1px solid white;
   border-left:1px solid #8298BF;
   border-top:1px solid #8298BF;
   border-right:1px solid #8298BF;
   }
   .key_normal{
   border-bottom:1px solid #8298BF;
   border-left:1px solid #8298BF;
   border-top:1px solid #8298BF;
   border-right:1px solid #8298BF;
   }
  
  #search_suggest{
   margin:0;
   padding:0;
   width:300px;
   height:auto;
   border:1px solid black;
   }
  
  .suggest_hidden{
   display:none;
   }
  .item_normal{
   width:100%;
   overflow:hidden;
   padding-left:5px;
   paddi


相关文档:

ajax知识点

1.XMLHttpRequest对象
  open("method","URL""[,asyncFlag[,"userName"[, "password"]]])
    建立对服务器的访问。其中method参数可以使用GET、POST及PUT,URL参数既可以使用绝对地址,也可以使用相对地址,此外还包括与建立连接相关的三个参数
&nbs ......

用Servlet过滤器去除JSP页面中的乱码


import java.io.IOException;   
  
import javax.servlet.Filter;   
import javax.servlet.FilterChain;   
import javax.servlet.FilterConfig;   
import javax.servlet.ServletException;   
import javax.servle ......

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/ht ......

jquery Ajax 传递汉字到 servlet 时出现乱码的问题


jquery Ajax 传递汉字到 servlet 时出现乱码的问题
2009年11月25日 星期三 下午 02:28
jquery Ajax 传递汉字到 servlet 时出现乱码的问题
在js中对需要的传送的参数进行编码
encodeURI(encodeURI(param))
在服务器接受后对其进行解码
String param = URLDecoder.decode(request.getParameter("param"),"utf-8");
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号