• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Secure mode - insecure mode browser notification

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you create a file named 'blankpage.html' and put it in the directory with the page that calls this script?
 
kiran kumar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic