Ajax无刷分页
js文件:
var where=" where pd_Isjifen=0 and pd_Isok=1"; //查询条件
var psize=16; //查询数据数目
var pindex=0;//当前页数
var order=" order by pd_Update desc,type_sort,pd_brand,pd_typeid"; //排序条件
var temp=0; //模板名称
var Pcount=0;
//获取参数
function getUrlPara(paraName)
{
var str=window.location.search;
if (str.indexOf(paraName)!=-1)
{
var pos_start=str.indexOf(paraName)+paraName.length+1;
var pos_end=str.indexOf("&",pos_start);
if (pos_end==-1)
{
return str.substring(pos_start);
}
else
{
return str.substring(pos_start,pos_end)
}
}
else
{
return "";
}
}
//设置查询条件
function Set_Where()
{
var country=getUrlPara("country");
if(country!='')
{
where+=" and pd_country='" + unescape(country) + "'";
}
var search=getUrlPara("search");
if(search!='')
{
where+=" and " + Get_where(unescape(search));
}
var cell=getUrlPara("cell");
if(cell!='')
{
where+=" and pd_Is" + cell + "=1";
}
var days=getUrlPara("days");
if(days!='')
{
where+=" and DATEDIFF([day], pd_update, GETDATE()) <= " + days;
}
var tp=getUrlPara("tp");
if(tp!='')
{
where+=" and pd_Isimport='" + (parseInt(tp)-1)+"'";
order=" order by pd_Update desc,type_sort desc,pd_brand,pd_typeid";
}
var brand=getUrlPara("brend");
if(brand!='')
{
where+=" and pd_brand='" + unescape(brand) + "'";
}
}
function Get_where(str)
{
return " (charindex(RTRIM('" + str + "'),RTRIM(pd_keyword))>0 or charindex(RTRIM('" + str + "'),RTRIM(pd_name))>0 or charindex(RTRIM('" + str + "'),RTRIM(pd_search))>0 or pd_brand='" + str + "' or pd_itemno='" + str + "')";
}
//获取数据
function Get_div()
{
var div="查询数据超时,请刷新页面重新查询!";
where=where.replace(/\
相关文档:
ajax弹出提示信息
1、 输入域:
<h2>工具提示</h2>
<hr>
<a href="#" onmouseover="over(0)" onmouseout="out()">物品一</a><br><br>
<a href="#" onmouseover="over(1)" onmouseout="out()">物品二 ......
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......
九十年代中期,WWW以迅猛之势转眼跻身传播信息的主要渠道之一。浏览器的身影开始无处不在,用户也随之开始适应这种信息传播方式。显然,WWW提供的应用平台能够赢得历史上任何一个平台都无法比及的用户量。但当时很难实现这样的目标是因为一些标准(HTML、HTTP等)都不很完善,这些标准设计的时候都没有考虑到高度交互和富客 ......
http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php
I was rather depressed over a year ago when Google deprecated their SOAP Search API with their AJAX Search API. Essentially Google was saying that they didn want anyone programmatically accessing Google search ......