ok, this problem probably has a simple solution, but I don't know javascript at all, so I'm not sure how to fix this on my own. This script I just installed doesn't work if you go to my site via my domain name, but works fine if you go to it via my real URL. The errors I get are:
Code:
Line: 31
Char: 1
Error: Object expected
Code: 0
URL: http://ptplus.x-host.uni.cc/
and (when trying to click on a link that is part of the script)
Line: 17
Char: 14
Error: 'parent.contentFRM' is null or not an object
Code: 0
URL: http://ptplus.x-host.uni.cc/
here's the script:
Code:
var nn4= (document.layers);
var nn6= (document.getElementById && !document.all);
var ie4= (document.all && !document.getElementById);
var ie5= (document.all && document.getElementById);
function loadPage(id,nestref,url) {
// change the 550 value to make the layer wider or smaller
content_width = 535;
if (nn4) {
var lyr = (nestref)? eval('document.'+nestref+'.document.'+id) : document.layers[id]
lyr.load(url,content_width)
}
else if(ie4) parent.contentFRM.location = url;
else if(ie5 || nn6) document.getElementById('contentFRM').src = url;
}
function showPage(id) {
if (ie4) {
document.all[id].innerHTML = parent.contentFRM.document.body.innerHTML;
}
else if(nn6 || ie5) {
document.getElementById(id).innerHTML = window.frames['contentFRM'].document.getElementById('theBody').innerHTML;
}
}
my guess is that the script is getting confused by the domain masking, I just don't know how to tell it to ignore the mask and look at the real URL, or whatever. This is a fairly crucial script as it generates the dynamic content on my site. I've put in a framebreak script to get rid of the problem for now, but I would like to get this fixed asap. Any help will be greatly appreciated!