> Hey Everyone,
>       Thanks a lot for your response. (We are using NES, JRUN,
> JavaServlets & JDBC.) We found a solution to our problem of Security
> alerts saying that "The page you are about to view is unsecure" when
> trying to view some of our pages in spite of us having purchased a digital
> certificate from verisign for our website. We had all our files or links
> reference to URLs that said https://. Yet we were seeing these alerts in
> Internet Explorer.
>
> The old code :   var newWindow = window.open("", acctid, option);
> The code that solved the problem:   newWindow = window.open("/blank.html",
> acctid, option);
>
> The solution is we have to specify a static html file in the window.open
> even if we are submitting via a form and generating a dynamic html file.
>
> So We think it is a BUG in I.E. With the combination of opening a new
> window, with no static page specified in the window.open in javascript,
> and SSL causes those SECURITY ALERTS. IF any one of you face this problem
> try this. We spent several hours trying so many different things until we
> figured this was the cause.
>
>
> The code:
>
> The solution was, this was the code prior to solving our problem:
> <HTML>
> <HEAD>
> <Script Language="Javascript">
>
> function openMainWindow(form) {
>       var option = "Height=400,width=700,menubar=1";
>       acctid = form.newacctid.value + form.newepisode.value;
>       var newWindow = window.open("", acctid, option);
>       newWindow.focus();
>       form.target=acctid;
>       return true;
> }
> </SCRIPT>
> </HEAD>
> <BODY>
> <FORM ACTION="/servlet/NewCaseReportHandler" METHOD=post TARGET="hello"
> onSubmit="javascript: return openMainWindow(this);">
> <INPUT TYPE=hidden NAME="newacctid" VALUE="">
> <INPUT TYPE=hidden NAME="newepisode" VALUE="">
> <INPUT TYPE=hidden Name=actiontotake Value="newcase">
> <INPUT TYPE=submit NAME="SUBMIT" VALUE="SUBMIT">
> </FORM>
> </BODY>
> </HTML>
>
> The code after we solved the problem:
>
> <HTML>
> <HEAD>
>
> <Script Language="Javascript">
> function openMainWindow(form) {
> var option = "HEIGHT=400,WIDTH=700,menubar=1";
>     acctid = form.newacctid.value + form.newepisode.value;
>     newWindow = window.open("/blank.html", acctid, option);
>     newWindow.focus();
>     form.target = acctid;
>     return true;
> </SCRIPT>
> </HEAD>
> <BODY>
> <FORM NAME="patient" ACTION="/servlet/NewCaseReportHandler" METHOD=POST
> TARGET="hello" OnSubmit='return openMainWindow(this)' >
> <INPUT TYPE=hidden NAME="newacctid" VALUE="">
> <INPUT TYPE=hidden NAME="newepisode" VALUE="">
> <INPUT TYPE=hidden NAME="actiontotake" VALUE="newcase">
> <INPUT TYPE=submit NAME=SUBMIT VALUE="SUBMIT">
> </FORM>
> </BODY>
> </HTML>
>
> The /blank.html is just a file that looks like
>  <html>
> <head>
> </head>
> <body>
> </body>
> </html>
>
>
> Again We want to thank everyone of you who gave us your suggestions.
>
>
        Thanks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to