SharePoint 通讯录查询

利用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" οnkeyup="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" οnkeyup="searchChange(this);"/
id="contactSearch1" name="contactSearch1"
οnkeyup="searchChange1(this);"/><br/>
bottom:-30px; padding-bottom:30px;" src="results1.aspx?ReturnAll=Yes"
scrolling="auto" frameborder="no">

 

 

转载于:https://www.cnblogs.com/lijizhi1222/archive/2009/04/01/1427221.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值