cfwindow, how do I .....
Ok I got this code setup for a little login window on page called login.cfm:
<cfif isdefined("form.HICMS")>
<script type="text/javascript">
ColdFusion.Window.hide("loginWindow");
</script>
Do Authentication ......
<cflocation url="private/" addtoken="no">
</cfif>
<cfwindow name="loginWindow" center="true" closable="false" draggable="false" modal="true" title="LOGIN!" initshow="true" resizable="false" width="400" height="180">
<cfform name="loginForm">
<cfinput type="hidden" name="HICMS" value="TRUE">
<table align="center" border="0" cellpadding="4" cellspacing="2" width="100%">
<tr>
<td align="center">
<font color="#FF0000">*</font> <label>UserName: <cfinput name="userName" type="text" id="userName" required="yes" message="You must input a Username!"></label>
</td>
</tr>
<tr>
<td align="center">
<font color="#FF0000">*</font> <label>Password: <cfinput name="passWord" type="password" id="passWord" required="yes" message="You must input a Password!"></label>
</td>
</tr>
<tr>
<td align="center">
<cfinput type="submit" name="" value="Login!">
</td>
</tr>
</table>
</cfform>
</cfwindow>
Along with a private directory with an index.cfm in it says 'hello welcome to private'.
Ok the problem: when it does the cflocation it all stays in the window, little tiny window. How do I get it to go back to the browser? tried hide window and destroy window with no luck, what am I missing here? cflocation does not work in cfwindow?
Any help is greatly appreciated.
