HTML for Component S_GETLOCATIONPORT:

LANSA

HTML for Component S_GETLOCATIONPORT:

function getLocationPort()
{
var ServerPort;
if (document.LANSA.AS_HOSTURL.value == "") document.LANSA.AS_HOSTURL.value = location.hostname;
if (location.port == "") ServerPort = 80;
if (document.LANSA.AS_HOSTPRT.value == "") document.LANSA.AS_HOSTPRT.value = ServerPort;
}