Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Javascript, Frames and SSL


Message #1 by "Jeehad Jebeile" <jj@s...> on Thu, 17 May 2001 07:41:47
I have the following problem,

I have a HTML page that contains two frames, top.html and bottom.html. The 
top frame contains one hyperlink and the bottom frame contains a form 
which contains a single textbox (see the source code below for more 
details).

I am currently running Apache 1.3.19 as the webserver, with mod_ssl and 
open_ssl , and Tomcat 3.2 as the app server. The browser I am using is 
Internet Explorer 5.5 with Service Pack 1.

The problem is (EXACTLY) as follows:

1. SLOWLY (and this is important) enter some characters into the textbox. 
The point being that characters must be entered into the textbox with 
maybe a second or two between each keystroke.
2. Put the mouse over the hyperlink in the top frame and wait a couple of 
seconds before clicking the link.
3. Once you click the link you get a Mixed Content Warning (in IE5.5 w SP1 
only).

Why???

It doesn't seem to occur if you enter the characters quickly...I know this 
bug sounds...well...weird...but if anyone out there can reproduce this and 
know why it is happening, could you please let me know.

Thanks,

Jeehad


Source code for these html files:

test.html - contains the frame definitions
---------
<HTML>
<FRAMESET ROWS="140,*" FRAMEBORDER="0" border="0" FRAMESPACING="0" 
FRAMEBORDER="no">
<FRAME MARGINWIDTH="0" MARGINHEIGHT="0" NAME="TopFrame" SRC="top.html" 
SCROLLING="NO" NORESIZE>
<FRAME MARGINWIDTH="0" MARGINHEIGHT="0" NAME="BottomFrame" 
SRC="bottom.html" SCROLLING="AUTO">
</FRAMESET>
</HTML>


top.html - contains one hyperlink and some javascript
--------
<HTML>
<head>
<script language="javascript">
function testMethod()
{
  parent.BottomFrame.document.forms[0].target = "_self";
  parent.BottomFrame.document.forms[0].submit();
}
</script>
</head>
<body>
<a href="javascript:testMethod()">Save Bottom Frame</a>
</body>
</HTML>


bottom.html - contains one textbox
-----------
<HTML>
<body>
<form name="bottomForm" action="" target="_top" method="get">
<hr>
Enter your Name: <input type="text" size="30" name="UserName">
<form>
</body>
</HTML>

  Return to Index