Skip to main content

Logon.html (v5.0.x) and Uniface Command line paramaters


The Uniface Anywhere example webpages that can be found after installation of the HOST at <installdir>\\web and reachable by http://hostname/uanywhere/ has changed with the introduction of version 5.0.0 and is now using JavaScripting.

The supplied example webpages are browser aware and will start (when possible) the correct UA-Client for the used client environment.

All relevant application startup parameters for the client are now located in one html file called “logon.html”.
These parameters are in the form of:

// controlArgs.set([variable]);


When making use of these arguments be aware of the following:

  • The relevant line needs to be uncommented by removing the // in front of the argument that is required.
  • Special characters (like <space>, <_>, <?> etc.) used in values, needs to be escaped for interpretation by the browser


To automatically escape characters, Javascript has the function: encodeURIComponent.

In next example we want to pass the Uniface arguments:

“/adm=c:\\u9702\\uniface\\adm /dir=c:\\ua-9702 /asn=c:\\UA-9702\\_usys.asn”

to the application defined in:

“controlArgs.set([ “app”, “IDF 9702” ]);”

in the logon.html page.



Example on how to use encodeURIComponent in the Logon.html page:

controlArgs.set([ “args”,encodeURIComponent(“/adm=c:\\\\u9702\\\\uniface\\\\adm /dir=c:\\\\ua-9702 /asn=c:\\\\UA-9702\\\\_usys.asn”)]);

Be aware that you will still have to escape backslashes with a backslash, as encodeURIComponent does not encode the backslash.



Be the first to reply!