« Received an interesting e-mail today... | Main| My guests are leaving tomorrow... »

A Sametime Links hint and tip.

Category
My understanding of Javascript isn't great enough to understand this, but it's a nice one that can cause hours of frustration if it gets you. Let's look at the following code:
<html>
<head>
<LINK REL=STYLESHEET HREF="CODEBASE/stlinks.css" TYPE="text/css">
<SCRIPT src="CODEBASE/stlinks.js"></SCRIPT>
<SCRIPT>
    setSTLinksURL("CODEBASE");
</SCRIPT>
<SCRIPT>
    writeSTLinksApplet("Anonymous User","",false);
</SCRIPT>

</head>
<body>
<SCRIPT>
    writeSametimeLink("CN=Carl Tyler/OU=US/O=Instant","Carl Tyler",false);
</SCRIPT>
</body>
</html>

Some fools (like me) might try and reduce this to the following:
<html>
<head>
<LINK REL=STYLESHEET HREF="CODEBASE/stlinks.css" TYPE="text/css">
<SCRIPT src="CODEBASE/stlinks.js"></SCRIPT>
<SCRIPT>
    setSTLinksURL("CODEBASE");
    writeSTLinksApplet("Anonymous User","",false);
</SCRIPT>

</head>
<body>
<SCRIPT>
    writeSametimeLink("CN=Carl Tyler/OU=US/O=Instant","Carl Tyler",false);
</SCRIPT>
</body>
</html>

See how:
</SCRIPT>
<SCRIPT>
was removed, well that simple removal process means that Sametime Links on this page will never login, I have no idea why, as I don't know the inner workings of JavaScript within a browser, but it is something to keep an eye out for if your ST Links page loads the applet but never logs in.

Comments

Gravatar Image1 - Dear Carl

I Found that Anonymous login is not working with my sametime sever. The setups are as given

stconfig.nsf ==> Anonymous access
=================================
Anonymous Access Settings for this Sametime Community:
Anonymous Users can register themselves: false
Use Authenticated Binding: true
Default Anonymous domain: Guest
Default Anonymous name prefix: User
Anonymous Users to Community Services is Enabled: true
Anonymous Users can Browse: true
Anonymous Users can Resolve: true
Anonymous Users can View Groups: true


Page.html
=====================
<html>
<head>

<LINK REL=STYLESHEET HREF="{ Link } TYPE="text/css">

<SCRIPT src="{ Link }

<SCRIPT>
setSTLinksURL("{ Link }
</SCRIPT>
<SCRIPT>

writeSTLinksApplet('User','',false);


</SCRIPT>
</head>
<body>

<SCRIPT>
writeSametimeLink("ajish","Ajish Jacob",true)
</SCRIPT>
</body>
</html>
===========================

Kindly advise

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::rolleyes:;-)