Problem with secure pages and loading scripts
Posted: Wed Dec 10, 2008 10:40 am
Hello... Maybe this is an easy question, but, I can't seem to figure it out.
I have a javascript that I am loading with every page load. I edited the Scriptlet.master file to accomplish this, adding on to the <body onload"....">. Now, for all the pages EXCEPT for the https checkout pages, the script loads fine. Then, when I get to the checkout page, the script is unrecognized.
Here is how I included the files....
If anyone sees where I might have gone wrong, I would appreciate the help!
Scott
I have a javascript that I am loading with every page load. I edited the Scriptlet.master file to accomplish this, adding on to the <body onload"....">. Now, for all the pages EXCEPT for the https checkout pages, the script loads fine. Then, when I get to the checkout page, the script is unrecognized.
Here is how I included the files....
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="head1" runat="server">
<script type="text/javascript" src="scripts/shadowbox-2.0/build/adapter/shadowbox-base.js"></script>
<script type="text/javascript" src="scripts/shadowbox-2.0/build/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.loadSkin('classic', 'scripts/shadowbox-2.0/src/skin');
Shadowbox.loadLanguage('en', 'scripts/shadowbox-2.0/src/lang');
Shadowbox.loadPlayer(['html', 'iframe', 'img'], 'scripts/shadowbox-2.0/src/player');
function initAjaxProgress()
{
var pageHeight = (document.documentElement && document.documentElement.scrollHeight) ? document.documentElement.scrollHeight : (document.body.scrollHeight > document.body.offsetHeight) ? document.body.scrollHeight : document.body.offsetHeight;
//SET HEIGHT OF BACKGROUND
var bg = document.getElementById('ajaxProgressBg');
bg.style.height = (pageHeight + 1000) + 'px';
//POSITION THE PROGRESS INDICATOR ON INITIAL LOAD
reposAjaxProgress();
//REPOSITION THE PROGRESS INDICATOR ON SCROLL
window.onscroll = reposAjaxProgress;
}
function reposAjaxProgress()
{
var div = document.getElementById('ajaxProgress');
var st = document.body.scrollTop;
if (st == 0) {
if (window.pageYOffset) st = window.pageYOffset;
else st = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
}
div.style.top = 150 + st + "px";
}
</script>
</head>
<body onLoad="initAjaxProgress(); Shadowbox.init()">
Scott