| Author |
Secure mode - insecure mode browser notification
|
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
I am on a team developing application on secure server(Https). i have a java script calendar popup for date field. As my appliation is https ,if the user clicks caledar popup, the browser pop-ups a messages saying "you are about to leave secure connection" , i understand that this is because of the browser setting to warn if swicthng for secure to nonsecure settings. I dont want this pop-up to come up when the user clicks on java script caleder pop-up. i greatly appreciate if someone can give me an idea to get rid of the browser pop-up notification. thanks in advance
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
change the links to the js file and popup to https make sure that the calendar is not using about:blank or move to a layers version such as: http://dynamicdrive.com/dynamicindex7/jasoncalendar.htm Eric
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
Hello Eric, First of all thanks for the response. >> change the links to the js file and popup to https I am calling the javascript function which is in .js file. i am sorry to say that i dint get your second part of the line >> change the links to the js file and popup to https can you please be more clear. now my .jsfile is the path web/js/cal2.js Do you want me to move that ?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Just make sure that the file is under https: and not http: I really have a feeling the code you are using has something like window.open("about:blank"); or window.open(""); easy fix for that is window.open("someBlankPage.html"); and create a someBlankPage.html with nothing in it. OR use another script. Eric
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
i have moved my web/js/myscript.js to jsp/js/myscript.js and now its working. i think by this i am not going out of https. thanks much Eric.
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
Hello Eric I am sorry. What i said was blunder , it is not working . I am using the pop-up calendar from http://www.yxscripts.com i have a code like this <script language="javascript" src="js/cal2.js"> <html:text property="toDate" /> <a href="javascript:showCal('Calendar2')"><img src="images/calendar.jpeg" border="0"></a> and my showCal function does the things what you exactly guessed calWin=window.open("","cal","toolbar=0,width="+calWidth+",height="+calHeight+",screenx="+(winX+calOffsetX)+",screeny="+(winY+calOffsetY)); calWin.document.open(); calWin.document.write(calendar); calWin.document.close(); and now what i am trying to do as u said is calWin.document.open("blankpage.html"); i hope it will work ,i cannot test it now as i have to move the code to the https server. i will post it how it works when i deploy to htttps server. anyways lots of thanks
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
Hello Eric, calWin.document.open("blankpage.html"); When i am testing this on http server, FireFox browser is displayng the html code in the calendor pop-up whereas with the ie it is fine. any idea how to make it correct with Firefox ?
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
Hello Eric, calWin=window.open("blankpage.html","cal","toolbar=0,width="+calWidth+",height="+calHeight+",left="+(winX+calOffsetX)+",top="+(winY+calOffsetY)); with that, now it is not giving any more warning about changing from non secure to securemode. I get a different problem this time some times the calendar popups with error 404 page not found and sometimes the calendar is perfect. Eric Please reply.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
|
Did you create a file named 'blankpage.html' and put it in the directory with the page that calls this script?
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
kiran kumar
Greenhorn
Joined: Apr 04, 2006
Posts: 27
|
|
yes i kept in the relative path. 10 out of 10 times on my system works perfect. But on some other systems its is not. i do observe in my system that it is first opening the "blankpage.html" and then gets overwritten with scrip stuff(caledar stuff). In that mean time, on some systems it shows page not found error and on some systems it works perfect.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Secure mode - insecure mode browser notification
|
|
|