3Di OpenViewer provides a number of ways to connect to a grid, let’s look at those in a little more detail.
Manual login is the normal way, that everyone using SecondLife is already used to. This mode will show a login box right within the application and will allow you to specify the login URI, the first and last name and password. You can set the default values with additional params as well.
<param name="LoginMode" value="manual" /> <!-- Optional--> <param name="ServerURI" value="http://188.8.131.52:10001" /> <param name="FirstName" value="first" /> <param name="LastName" value="last" /> <param name="Password" value="password" />
Click login is great if you want to specify all the information for the login and not allow the user to change it in any way (for example dynamically creating the login page based on already existing session information). In this case, the user can only see an empty screen with no login box; when they click on this screen, login starts automatically.
Of course in click mode, you will have to specify all the login information like above and possibly provide explanation somewhere on your site.
<param name="LoginMode" value="click" />
<param name="LoginMode" value="hide" />
openviewerCtl.Login(firstname, lastname, password, server_uri, login_location);
// " uri:regionname&x&y&z" uri:region1&128&128&25