Get Current Server Name from URL using Javascript in Domino Web Application
1 2 //Get Server 3 loc1 = location.href; 4 in1 = loc1.indexOf(".nsf") + 4; 5 var server1 = Left(loc1,in1); 6
DZone Snippets > detnyre > Lotus
12993 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Derek Etnyre http://www.dereketnyre.com
1 2 //Get Server 3 loc1 = location.href; 4 in1 = loc1.indexOf(".nsf") + 4; 5 var server1 = Left(loc1,in1); 6