在SharePoint 2007中实现jquery的安全性 [英] Implement security for jquery in SharePoint 2007

查看:71
本文介绍了在SharePoint 2007中实现jquery的安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在SP 3.0管理中心和母版页中创建了一个Web应用程序default.master从SP设计师添加了jquery代码。

Hi,

I have created a web application in SP 3.0 Central Administration and in the masterpage default.master added jquery code from SP designer.

<HEAD>
...
<script type="text/javascript">
        $(document).ready(function(){
            $("#hide").click(function(){
                $("#myHeader").hide();
            });
            $("#show").click(function(){
                $("#myHeader").show();
            });
        });
    </script>
...
</HEAD> 





这是一个简单的测试,一个隐藏标题的按钮和一个显示标题的按钮。

问题: - 从客户端浏览器,通过查看源代码,我可以获得此代码。



无论如何要限制此或应该我在其他一些页面中添加了jquery代码,比如CORE.js?

任何帮助都表示赞赏。



问候,

Sayan。



Its a simple test, a button hiding a header and another showing the header.
Problem:- From a client browser, by view source, I can get this code.

Is there anyway to restrict this or should I add the jquery code in some other pages like CORE.js?
Any help is appreciated.

Regards,
Sayan.

推荐答案

(document).ready(function(){
(document).ready(function(){


(#hide)。 click(function(){
("#hide").click(function(){


(#myHeader)。hide();
});
("#myHeader").hide(); });


这篇关于在SharePoint 2007中实现jquery的安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆