xapges引用jquery
来源:互联网 发布:域名跳转 绕过备案 编辑:程序博客网 时间:2024/06/08 19:26
在domino的form的web的开发当中已经有说明怎样引用jquery,现在xpages怎样引用jquery呢?
demo下载 http://download.csdn.net/detail/weijia3624/8493885
一、在资源中引用jquery
<xp:this.resources>
<xp:script src="#{javascript:'/.ibmxspres/domino/'+@ReplaceSubstring(database.getFilePath(),'\\','/')+'/jquery-1.11.0.min.js'}" clientSide="true"
rendered="#{javascript:context.getUserAgent().isIE(0,8)}">
</xp:script>
<xp:script src="#{javascript:'/.ibmxspres/domino/'+@ReplaceSubstring(database.getFilePath(),'\\','/')+'/jquery-2.1.1.min.js'}" clientSide="true"
rendered="#{javascript:context.getUserAgent().isIE(9,11) || (!context.getUserAgent().isIE())}">
</xp:script>
</xp:this.resources>
二、重新定义选择器,这样就可以方便选择jquery的方法选择xpages的元素了
//原文http://openntf.org/XSnippets.nsf/snippet.xsp?id=x-jquery-selector-for-xpages
<xp:scriptBlock>
<xp:this.value><![CDATA[
//function is called using x$("#{id:inputText1}", " parameters").
//Updated 18 Feb 2012
function x$(idTag, param){
idTag=idTag.replace(/:/gi, "\\:")+(param ? param : "");
return($("#"+idTag));
}
]]></xp:this.value>
</xp:scriptBlock>
- xapges引用jquery
- 引用JQuery
- 引用 jQuery
- xapges repeat显示富域内容
- 如果Jquery不存在 引用Jquery
- Google jquery 引用
- 母版引用Jquery
- 引用jQuery库
- scripts_引用jquery文件
- Jquery在线引用地址
- jquery ui 简单引用
- yii引用jquery
- jquery在线引用地址
- 引用在线jquery库
- JQuery 在线引用
- Jquery在线引用地址
- JQuery引用检查
- Jquery 版本引用收集
- hdu1711
- C++面试之GetMemory问题
- 个人学习第一阶段——关于html和css的技巧及问题总结(一)
- i.mx6 lvds接口的DE模式液晶屏驱动调试
- VC 6 项目转 VS2010
- xapges引用jquery
- SIGALRM信号
- 揭开linux内核中container_of的神秘面纱
- STL算法 -------- 逆转和旋转
- ios-day10-03(省份和城市联动。UIPickerView的使用、使用UIPickerView的reloadComponent:方法刷新某一列)
- hdu2203
- 多线程并发处理的新思路:Parallel的使用
- leetCode191Number of 1 Bits
- BitmapFactory.Options介绍(整理自查阅)