Because the Db2 has restricted access I'm sure that in the new window I
will see the custom
login form.
The custom login form contains the js code to capture the userid and
password from the url that i insert in the fields for userid and password.
At this point the situation is:
- homepage window with fields userid and password filled
- Second window with the custom login form and the fielda for userid and
password filled.
At this point, on the onload event of the custom login form, always whit
js I make the submit of the form , close the new window and make a
redirection on my destination (Db2) on the window containing the home page.
To do this I use this js function:
function updateParent()
{
newURL = document.forms[0].RedirectTo.value;
opener.document.location = newURL;
window.close();
}
The field RedirectTo was filled with js.
All work fine until I set the flag "Use SSL"
on the destination db (DB2).
The problem is on the function write in this post.
Dependig on the browser i have this results:
+Netscape 4.5 e 4.7 6.2 --> no problem
+Netscape 6.0 Explorer 5.5 ------------> the destination was open in the
new window, without making the close and the redirection of the opener.
+Explorer 5.0 ----------> I receive a js error "Access denied"
on the row: "opener.document.location = newURL;"
+Opera 5 --------------> it close the new window, but the redirection
don't work.
If I uncheck the "use SSL" all work fine !!
If i check "use SSL" on the DB1, my homepage, there was no problem.
It was something about the security of the browser using js to work with
two windows and SSL connection ?
Any suggestion ? Idea ?
Thank you and....
Excuse me for my BAD english...
Bye
Andrea Colajacomo
Rome, Italy