2013年10月3日 星期四

Dojo 1.8 & Domino 8.5.3

Quick-n-Dirty: Dojo 1.8 & Domino 8.5.3


If you want to use Dojo 1.8 with Domino 8.5.3, you can do the following:
1. Grab the Dojo JAR file from a ND9 installation:
\osgi\shared\eclipse\plugins\com.ibm.xsp.dojo_9.0.0.jar
2. Create a folder “dojo-1.8.0” in your notes data directory
\domino\js\dojo-1.8.0
3. Unpack the JAR file
4. Copy the content of the subfolder \resources\dojo-version of the unpacked JAR file in this folder:

5. Restart HTTP task.
6. Enjoy!

    
    

    


轉自blog@hasselba.ch

2013年8月12日 星期一

Xpage 程式更新 viewPanel 備忘

getComponent('viewPanel9').getData().refresh();

2013年8月1日 星期四

JavaScript search() 方法

String.search

 example

var stringValue = "This is my test string to search";
var result = stringValue.search(/is|test|string/);
//if () {....} 
//true return 6 false return -1
var str = "This is a sample text";
var re = /nothing|text|string/g
if (str.search(re) != -1) {
    midstring = " contains ";
} else {
    midstring = " does not contain ";
}