As per the title ...
My situation is, user of site clicks on "Login" from any of the main public pages, which opens a small popup to grab the User Id & Password, when they submit I (read the Boss) wants it to either:
a) Open a NEW window which logs in & displays user's control page.
b) Login & display control panel on the ORIGINAL page, where the usr clicked "Login"
In both cases, the little popup login window is to close.
I thought this would be simple - probably just overlooked something.
IE works fine. Firefox opens the new window as a TAB inside the teensy weensy login popup :|
Tried creating new window and used both window handle and window name as the target with no luck, still in a tab, and IE opens a blank window PLUS a windowto which it submits the form.
Neither browser seems to recognize the parent as a target for the form.
Tried "target" = _blank, _new, _parent, _top
With that, I've tried f.target=window.opener; f.target=window.opener.nam
What am I missing?
My basic logic "attached as code snippet" so not sure where it appears, but it's here somewhere.
Thanks a bundle :)
function checkForm ( f )
if ( checkLogin() )
f.target = window.opener.name;
//f.target = window.opener;
//f.target = parent;
<form action="%server_url%/cgi-bin/_front/services.cgi" method="POST" name="loginForm"
id="loginFormID" onsubmit="return checkForm( this )" target="_new">
<!-- tried above: target="_new" target="_blank" target="_parent" target="_top" etc. -->
<input type="hidden" name="action" value="login" />
UID: <input type="text" name="uid" /> <br />
PASS: <input type="text" name="pin" /> <br />
<input type="submit" name="submit" value="LOGIN" />