Ctechinfo
01-21-2013, 01:20 AM
On the main index page for the site I am using
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
for the "sub" pages that are shown in the various frames what doc type should I use Frameset or Transitional?
Also with dealing with the "sub" pages. What is the best alternative to reload the page with the parent frame. (the sub pages have no navigation/little navigation)
The following code worked when the file extentions were .html but I cant seem to get the script to work when the page extentions are .php
<script LANGUAGE="JavaScript">
<!--
function framecheck()
{var parentframe = 'fr_index.html';
if (parent.location.href == self.location.href)
{var current = window.self.location.pathname;
window.location.replace (parentframe + '?' + current);
}
};
//-->
</script>
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
for the "sub" pages that are shown in the various frames what doc type should I use Frameset or Transitional?
Also with dealing with the "sub" pages. What is the best alternative to reload the page with the parent frame. (the sub pages have no navigation/little navigation)
The following code worked when the file extentions were .html but I cant seem to get the script to work when the page extentions are .php
<script LANGUAGE="JavaScript">
<!--
function framecheck()
{var parentframe = 'fr_index.html';
if (parent.location.href == self.location.href)
{var current = window.self.location.pathname;
window.location.replace (parentframe + '?' + current);
}
};
//-->
</script>
Thanks