Forum Moderators: open

Message Too Old, No Replies

Active Content Problem NOT on Local Hard Drive

IE6 Sp2 Active Content internet

         

gigard

5:34 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



I have an issue with Internet Explorer 6.0.2900.218, SP2, 128-bit cipher strength not rendering content in a frameset from an SSL enabled web server. This server happens to be my client’s server and is where the product will reside. I have not been able to reproduce this issue on two other servers running SSL so I can’t imagine what this particular server’s issues are. Finally, the problem is not experienced when using earlier versions of Internet Explorer, or Opera or Firefox.

The frameset is created in index.html. The frameset is designed as follows:

<FRAMESET cols="197,*" frameborder="NO" border="0" onload="populate();" onunload="exitCourse('incomplete');">
<FRAME name="nav" title="navigational links frame"src="leftNav2.html" scrolling="no" marginwidth="0" marginheight="0">
<FRAMESET rows="52px,*" frameborder="NO" border="0" >
<FRAME name="logo" title="top frame"src="topFrame.html" scrolling="no"marginwidth="0" marginheight="0">
<FRAME name="content" title="contents frame"src="blank.html" scrolling="no" marginwidth="0" marginheight="0">
</FRAMESET>
</FRAMESET>

Lessons.js contains multiple functions that handle navigation, look-feel and pop-up window generation. It is referenced as follows in the header section of index.html

<script language="JavaScript" src="scripts/lesson.js"></SCRIPT>

The problem is that no files can be placed in the “content” frame using JavaScript when running on one server. The server is Apache/2.0.48 (Unix) mod_jk2/2.0.2 and is using SSL. Index.html correctly populates the “nav” frame and the “logo” frame. The “content” frame initially is populated by blank.html which is as designed. Some content in the “nav” and “Logo” frames are dynamically generated using JavaScript. This is correctly displayed, so the JavaScript is being read correctly.

Using the debugger in IE, I have identified what lines of code are at the core of the problem.

Index.html’s body tag calls the function populate() using the onLoad event. The function populate() resides in lesson.js.

function populate(){
bottom=URLprefix + pageArray[0];
parent.content.location.href = bottom;
loadPage();
}

var URLprefix = “https://*********/scorm-content/***/****/modA/”;

pageArray = new Array (
"intro.htm",
"1000.htm",
""
)
Originally, I did not have the var URLPrefix but I put that in just to see if having a complete URL would correct the problem – it didn’t.

The line in populate() causing the problem is

parent.content.location.href = bottom;.

I get an “Access Denied” error here.

I get other “Access Denied” errors in other functions at this line

var url = parent.content.document.URL; .

What is the issue with trying to access the document.URL and document.href? Can web servers shut this access off? What is the workaround?

When I set IE6 SP2 Advanced Options to “Allow Active Content to run in files on My Computer”, the problem goes away. This is not an acceptable solution. Besides, the content is delivered via the internet.

kaled

6:56 pm on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Instead of
parent.content.location.href = bottom;
try
top.location.replace(bottom);

In any case, this should be better behaved generally.

If that doesn't sort out the problem (and I doubt it will) you should use an http header viewer to check how the faulty server is delivering files compared to a server on which it works correctly.

I use
[rexswain.com...]
but there are others.

Kaled.

gigard

12:33 pm on Jul 11, 2005 (gmt 0)

10+ Year Member



Thanks for the link to the viewer. I was looking for something to do that. I'll let you know what I find.

gigard

2:49 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



I found out that they server was redirecting the content somewhere else. Then over the weekend something happened(?) to the enviroment (even though they admins say nothing did, and everything works.

Go figure.

Anyway thanks for the help.