...

View Full Version : IFrame not showing IMG in IE8 in HTTPS



owlsey
07-06-2011, 03:59 PM
help? red x

alykins
07-06-2011, 03:59 PM
... ?

owlsey
07-06-2011, 04:09 PM
images load fine in mozilla/chrome. when i try to load iframe in IE8- images do not display.

it is over a secure connection.

alykins
07-06-2011, 04:14 PM
can you post some code of what you're doing? or at least the site you are setting the iframe src to?.... ive never tried to embed an HTTPS site in an iframe so idk about the compatibility... i think though that it would defeat the purpose of it being secure- not sure

owlsey
07-06-2011, 04:35 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="javascript" name="mm_scormRTI" >
<!-- Inserted by:
// SCORM Runtime Wrapper
// version 1.2.6 09/09/02
// Copyright 2000, 2001, 2002 Macromedia, Inc. All rights reserved.
// ----------------------------------------------------

// define global var as handle to API object
var mm_adl_API = null;

// mm_getAPI, which calls findAPI as needed
function mm_getAPI()
{
var myAPI = null;
var tries = 0, triesMax = 500;
while (tries < triesMax && myAPI == null)
{
window.status = 'Looking for API object ' + tries + '/' + triesMax;
myAPI = findAPI(window);
if (myAPI == null && typeof(window.parent) != 'undefined') myAPI = findAPI(window.parent)
if (myAPI == null && typeof(window.top) != 'undefined') myAPI = findAPI(window.top);
if (myAPI == null && typeof(window.opener) != 'undefined') if (window.opener != null && !window.opener.closed) myAPI = findAPI(window.opener);
tries++;
}
if (myAPI == null)
{
window.status = 'API not found';
alert('JavaScript Warning: API object not found in window or opener. (' + tries + ')');
}
else
{
mm_adl_API = myAPI;
window.status = 'API found';
}
}

// returns LMS API object (or null if not found)
function findAPI(win)
{
// look in this window
if (typeof(win) != 'undefined' ? typeof(win.API) != 'undefined' : false)
{
if (win.API != null ) return win.API;
}
// look in this window's frameset kin (except opener)
if (win.frames.length > 0) for (var i = 0 ; i < win.frames.length ; i++);
{
if (typeof(win.frames[i]) != 'undefined' ? typeof(win.frames[i].API) != 'undefined' : false)
{
if (win.frames[i].API != null) return win.frames[i].API;
}
}
return null;
}

// call LMSInitialize()
function mm_adlOnload()
{
if (mm_adl_API != null)
{
mm_adl_API.LMSInitialize("");
// set status
mm_adl_API.LMSSetValue("cmi.core.lesson_status", "incomplete");
//uid test

}
}

// call LMSFinish()

function show_confirm()
{
var r=confirm("Please indicate that you have completed this training by affirming the statement below and then click Submit.\n\nI acknowledge understanding and intent of the material presented in the Pressure Ulcer 2011 - A Program for Nursing course and I intend to adhere to any policies and/or provisions referenced in this section.");
if (r==true)
{
alert("Your transcript will now be marked as completed for this course");
mm_adl_API.LMSSetValue("cmi.core.lesson_status", "completed");
mm_adl_API.LMSCommit("");
mm_adl_API.LMSFinish("");
}
else
{
alert("You pressed Cancel! You will not be marked as completed for this course");
}
}


// get the API, launch it
mm_getAPI();
mm_adlOnload();

// -->
</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pressure Ulcers 2011 - A Program for Nursing Staff</title>
</head>

<body>Once you have completed all modules of this course, click the button to the right:
<input type="button" name="mm_finishBtn" value="Mark As Complete" onClick="show_confirm()" /></p>
<iframe src="blank.htm" width="100%" height="780" id="qualtrics" name="qualtrics">
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="5;url=https://www.nursingquality.org/NDNQIPressureUlcerTraining/Default.aspx">
<title>Pressure Ulcers 2011 - A Program for Nursing Staff</title>
</head>
<body><div align="center"><img src="logo.jpg"></div>
</body>
</html>


https://www.nursingquality.org/NDNQIPressureUlcerTraining/Default.aspx has the images in teh assessment...its buried a couple pages in the assessment. the subject matter is a little gross

alykins
07-06-2011, 04:45 PM
i did a little searching (google) and have not found a definitive answer... there seems to be a lot of banter back and forth about whether or not https can be in an iframe... there is also a lot of subject matter stating you shouldn't do it and what not back and forth... but one seemingly consistent consensus is that there will be problems across browsers... what about for that page opening a new page?
<a href="https://......." target="_blank">blah</a>

owlsey
07-06-2011, 04:57 PM
we wanted a logo to display for five secs...all other images appear fine; its within the assessment that the question images are not displaying.

could there be a script on their side that disables it?

alykins
07-06-2011, 06:02 PM
we wanted a logo to display for five secs...all other images appear fine; its within the assessment that the question images are not displaying.

could there be a script on their side that disables it?

idk, maybe...? maybe this site http://www.w3.org/wiki/HTML/Elements/iframe will give some insight... try adding the sandbox section (can be ref'd via link) and allow for scripts?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum