Suggest Framework
Copyright (c) 2005 Matthew Ratzloff
Version 0.2
Overview
--------
Suggest Framework allows developers to easily add "suggest" functionality
to their websites and projects, which can vastly improve the user experience
by speeding up phrase-based searching. Any number of search boxes can be
used on a page, each configurable with a variety of options.
Suggest Framework is also compatible with nearly all mainstream browsers,
including Internet Explorer 5+ (Win/Mac), Firefox (Win/Mac), and Opera 8+.
It... sort of works with Safari.
Installation
------------
You only need one copy of SuggestFramework.js on your server in order to
use it throughout. You can customize the look of the suggest dropdowns
with CSS; these styles should be included in your sitewide stylesheet and
adjusted per-page if necessary.
Note: The JavaScript file has been compressed for speed using Dean Edwards's
Packer utility, which can be found at <http://dean.edwards.name/packer/>.
Usage
-----
Include the following two lines in the head of the page:
<script type="text/javascript" src="/path/to/SuggestFramework.js"></script>
<script type="text/javascript">window.onload = initializeSuggestFramework;</script>
Now you have five additional attributes available for any named textbox:
action The dynamic page that accepts input by GET and returns a
JavaScript array of relevant data. Required.
capture The column (from 1) that will replace the user input. Generally
this should be the same database field that the user is searching
against. Optional; default is 1.
columns The number of columns to display in the dropdown. For example,
you might search for employees by name and display their ID
on the right. Optional; default is 1.
delay The search delay, in milliseconds. A lower delay increases
responsiveness but puts more strain on the server. Optional;
default is 1000 (1 second).
heading If set to true, uses first array value as a non-selectable
header. Useful when you have two or more columns. Optional;
default is false.
The page that processes the user input (defined in "action") accepts two
parameters:
type The name of the textbox
q The query phrase
Suggested examples for PHP and ColdFusion have been included, although
any server-side language will work. For more than one column, a multi-
dimensional array is expected. For example,
new Array(new Array("A1", "B1"), new Array("A2", "B2"));
Finally, there are four CSS classes:
.SuggestFramework_List The dropdown container
.SuggestFramework_Heading The optional dropdown headings
.SuggestFramework_Highlighted The highlighted suggestion
.SuggestFramework_Normal Non-highlighted suggestions
Release History
---------------
0.2 - Initial beta release. Revised to be procedural instead of object-oriented
in order to increase compatibility. Compatible with Internet
Explorer 5+ (Win/Mac), Firefox (Win/Mac), and Opera 8+. Partial
compatibility with Safari.
0.1 - Unreleased alpha version. Compatible with Internet Explorer 5.5+ (Win),
Firefox (Win/Mac), and Opera 8+. Not compatible with Safari.
没有合适的资源?快使用搜索试试~ 我知道了~
开源php搜索引擎-蜘蛛程序
共73个文件
php:45个
html:10个
txt:6个
4星 · 超过85%的资源 需积分: 28 113 下载量 8 浏览量
2008-11-05
10:26:12
上传
评论 8
收藏 94KB ZIP 举报
温馨提示
采用PHP+Mysql的轻量级PHP开源搜索引擎/蜘蛛程序,功能为蜘蛛自动爬行站点,创建关键词及索引,可作为站点搜索或者创建站点的分类搜索。
资源推荐
资源详情
资源评论
收起资源包目录
php搜索引擎.zip (73个子文件)
sphider-1.3.4
settings
database.php 487B
conf.php 4KB
search.php 4KB
languages
es-language.php 963B
sr-language.php 1KB
tr-language.php 1KB
it-language.php 989B
en-language.php 1KB
cnt-language.php 819B
pt-language.php 915B
nl-language.php 946B
pl-language.php 1KB
fi-language.php 1KB
se-language.php 906B
hr-language.php 979B
cn-language.php 817B
bg-language.php 956B
ee-language.php 988B
sk-language.php 1KB
fr-language.php 989B
ru-language.php 1KB
lv-language.php 1KB
cz-language.php 1KB
si-language.php 1007B
ro-language.php 1KB
de-language.php 1010B
fa-language.php 1KB
hu-language.php 971B
cns-language.php 817B
ar-language.php 1KB
changelog 10KB
include
commonfuncs.php 14KB
searchfuncs.php 17KB
categoryfuncs.php 2KB
common.txt 623B
js_suggest
SuggestFramework.js 15KB
SuggestFramework.css 501B
suggest.php 3KB
README.txt 3KB
sphider-logo.png 986B
sql
upgrade_to_1.2.6.sql 221B
upgrade_new.sql 150B
upgrade_to_1.2.sql 171B
tables.sql 4KB
upgrade_to_1.2.5.sql 160B
install.txt 6KB
upgrading.txt 335B
admin
messages.php 7KB
db_backup.php 4KB
spiderfuncs.php 23KB
db_main.php 6KB
admin.css 6KB
log
configset.php 23KB
backup
install.php 4KB
admin.php 46KB
spider.php 18KB
auth_old.php 761B
tmp
ext.txt 198B
auth.php 1KB
templates
dark
search_form.html 2KB
footer.html 16B
header.html 617B
search.css 2KB
categories.html 2KB
search_results.html 3KB
standard
search_form.html 2KB
footer.html 16B
header.html 617B
search.css 2KB
categories.html 2KB
search_results.html 4KB
upgrade
upgrade.php 3KB
upgrading.txt 682B
共 73 条
- 1
chen80426
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页