Okay, one last kick at this horse.
It turns out that this is not really an issue at all and works fine. I just headed down the wrong road when I was working with the logon.aw url instead of the correct logonOp.aw.
You can indeed post to the logonOp.aw page from an external form and open the app up in a chromeless window at the same time.
Add a script in the head of your external html page:
<script language="JavaScript">
function doSubmit() {displayWindow = window.open('', "newWin", "scrollbars=1,menubar=0,toolbar=0,resizable=1,location=0,status=0");
document.submitForm.submit();document.submitForm.reset();}</script>
and in the body of your page put the following code to build the form:
<form action="http://xxx.xxx.xx.xxx:8080/AwareIM/logonOp.aw?domain=xxx" method="post" name="submitForm" target="newWin" id="submitForm">
<table width="402" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="27" background="images/LoginTop.jpg"> </td>
</tr>
<tr>
<td background="images/LoginBody.jpg"><p class="Text"><br />
<span class="style3">Username:</span>
<input name="userName" type="text" size="24" />
</p>
<p><span class="Text"> </span><span class="style3">Password:</span><span class="Text">
<input name="password" type="password" size="24" />
</span> </p>
<label></label>
<p>
<input type="button" name="button" value="Submit" onclick="doSubmit()" />
</p></td>
</tr>
<tr>
<td height="10" background="images/LoginBottom.jpg" class="TextSmall"></td>
</tr>
<tr>
<td height="10" class="TextSmall"><p><br />
</p></td>
</tr>
</table>
</form>
You can either point back to this page on logoff or use the logoff.jsp page.
Unfortunately, you can only use this for a published app, not when it is in testing mode as it doesn't seem to accept testingMode=false but no big deal.
If you still want to use the method put forth by support earlier, I would suggest that you prevent the user from bookmarking the logonOp.aw?domain=xxx page as it will open up in a new browser next time. One way to do this is to add the following script to the logon.html template in the Tomcat/AwareIM folder. This prevents the user from being able to access the right click context menu in order to add the page to their favourites.
<script type="text/javascript">
var msg="Right click disabled";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
I must admit though that one problem with using this url is that if the user mis-types their credentials, they are returned to the logonOp.aw page without the domain specified. This is fine if your business space is the default space, otherwise, they are going to be out of luck when trying to login. (and you are going to receive a phone call or email that your system is broken)
Cheers,
Pete