惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
Vercel News
Vercel News
H
Help Net Security
Martin Fowler
Martin Fowler
美团技术团队
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
T
Tailwind CSS Blog
WordPress大学
WordPress大学

博客园 - hdbb30

ASP.Net调用Excel组件错误的问题解决 创建强命名程序集 缩小数据库日志文件 SharePoint首页添加天气预报 - hdbb30 - 博客园 工作流产品比较 运用Google Ajax搜索API ASP.NET状态保存方法 ASP.NET保持用户状态的九种选择 ASP.NET中Cookie编程的基础知识 生成中文的验证码(ASP.NET C#) Asp.Net 动态生成验证码 用ASP.NET构建完整E-mail发送系统 弹出确认对话框的自定义Web服务器控件ConfirmButton GRIDVIEW 用法 Net/WEB开发常用的方法、函数 Asp.Net 动态生成验证码 ASP.NET程序中常用的三十三种代码 在DataGrid中利用CheckBox全选所有行 ASP.NET中17种正则表达式
SharePoint 通讯录查询 - hdbb30 - 博客园
hdbb30 · 2009-04-01 · via 博客园 - hdbb30

利用Form Web Part方便查询通讯录。


<div style="height:400px;">
        <script type="text/javascript">
            var timeout = -1;
            function searchChange(textbox) {
                var text = textbox.value;
                if (timeout != -1) clearTimeout(timeout);
                timeout = setTimeout("commitSearch('" + text + "')", 400);
            }
            function commitSearch(text) {
                var frame = document.getElementById("contactFrame");
                if (text == "") frame.src = "Results.aspx?ReturnAll=Yes";
                else frame.src = "Results.aspx?Search=" + text;
            }
        </script>
    <div class="ms-listdescription">Use the text field below to search for contacts by First Name, Last Name, Full Name, or Company.</div>
    <input type="text" style="border:1px gray solid;" id="contactSearch" name="contactSearch" onkeyup="searchChange(this);"/><br/>
        <iframe id="contactFrame" style="width:100%; height: 100%; margin-bottom:-30px; padding-bottom:30px;" src="Results.aspx?ReturnAll=Yes" scrolling="auto" frameborder="no">
        </iframe>
        </div>

转载:

http://www.eggheadcafe.com/software/aspnet/32427323/add-multiple-form-box-to.aspx

Hey all Hope someone out there can help
I was wondering how would one add a second or third form text box to
the default page of the contact management template for wss. also i
would need the commit search to include boxa + boxB in the search
criteria of results.aspx. for instance if i wanted [ john ] +
[ Arizona ] the results would look for any items that have both those
criteria. hope this is clear. i would be greatful for any help
thanks .

this is the code by default:
var timeout = -1;
function searchChange(textbox) {
var text = textbox.value;
if (timeout != -1) clearTimeout(timeout);
timeout = setTimeout("commitSearch('" + text + "')", 400);
}

function commitSearch(text) {
var frame = document.getElementById("contactFrame");
if (text == "") frame.src = "results1.aspx?ReturnAll=Yes";
else frame.src = "results1.aspx?Search=" + text;
}

for contacts by First Name, Last Name, Full Name, or Company.</div>
id="contactSearch" name="contactSearch" onkeyup="searchChange(this);"/
id="contactSearch1" name="contactSearch1"
onkeyup="searchChange1(this);"/><br/>
bottom:-30px; padding-bottom:30px;" src="results1.aspx?ReturnAll=Yes"
scrolling="auto" frameborder="no">