jollywoz
10-22-2002, 12:58 PM
hi all,
i'm using a script to be able to load up framed pages in context but while the script works i get a permission denied error which i believe is when you try to get info on pages from other domains, problem is all the pages are under the same domain so i'm confused.
this is the code in each page
if (parent.location.href == self.location.href){
top.location.href = 'http://www.domain/framepage.htm?'+location.href;
}
and this is the code in the frames page
document.write('<frame name="mainframe" scrolling="AUTO" src="'+(location.search ? location.search.substring(1)):'defaulturl.htm')+'">');
thx in advance
i'm using a script to be able to load up framed pages in context but while the script works i get a permission denied error which i believe is when you try to get info on pages from other domains, problem is all the pages are under the same domain so i'm confused.
this is the code in each page
if (parent.location.href == self.location.href){
top.location.href = 'http://www.domain/framepage.htm?'+location.href;
}
and this is the code in the frames page
document.write('<frame name="mainframe" scrolling="AUTO" src="'+(location.search ? location.search.substring(1)):'defaulturl.htm')+'">');
thx in advance