ashflash
September 4th, 2003, 10:05 AM
I have a problem in controlling the targets of a frameset with an iframe in one of the frames when the page is refreshed, ie it throws the content of the iframe out to fill the whole page rather than rebuilding the frameset as required.
check http://195.26.0.53 and hit for example the about us section which brings content into the middle frame in an inline frame when refreshed the content of the inline frame fills the whole window.
I started with something along the lines of if the frame isnt called body or frame then go and load the frameeset with the frame content as the home page as below( its all built into a content management sys hence the doc id etc which worked fine for just the three main frames but when the iframes were put in as asked by the client all went tits up.
<SCRIPT LANGUAGE="JavaScript">
if ((self.name != 'preview') &&(self.name != 'Body')) {
top.location.href='default.asp?V_DOC_ID=811&FRAME_DOC_ID=[%SESSION;V_DOC_ID%]'
}
</script>
any ideas?/?
check http://195.26.0.53 and hit for example the about us section which brings content into the middle frame in an inline frame when refreshed the content of the inline frame fills the whole window.
I started with something along the lines of if the frame isnt called body or frame then go and load the frameeset with the frame content as the home page as below( its all built into a content management sys hence the doc id etc which worked fine for just the three main frames but when the iframes were put in as asked by the client all went tits up.
<SCRIPT LANGUAGE="JavaScript">
if ((self.name != 'preview') &&(self.name != 'Body')) {
top.location.href='default.asp?V_DOC_ID=811&FRAME_DOC_ID=[%SESSION;V_DOC_ID%]'
}
</script>
any ideas?/?