Hello, everyone,
I’ve got a project (inherited) that uses frames (not Iframe… just plain frame) that is giving me fits.
This works great in development (Windows), but totally breaks in production (currently Linux). Cross-browser (it fails in all of them.)
Here is the main page:
<html>[INDENT]<head>[/INDENT]
[INDENT=2]<title>Project Title</title>
[/INDENT]
[INDENT]</head>
<frameset cols="400,*">[/INDENT]
[INDENT=2]<iframe src="index_frm.cfm" name="indexFrame" />
<iframe src="display.cfm" name="dispFrame" />
[/INDENT]
[INDENT]</frameset>
<body>
</body>
[/INDENT]
</html>
index_frm.cfm (indexFrame) has many things, but the relative thing is that I have a table that contains one row, that one row has four cells. Each cell has an onclick property that calls a js function that will load content in dispFrame.
<script type="text/javascript">[INDENT]function displayThis(pg){
[/INDENT]
[INDENT=2]parent.frames['dispFrame'].location = 'folder/' + pg;
[/INDENT]
[INDENT]}
[/INDENT]
</script>
<table>[INDENT]<tr>[/INDENT]
[INDENT=2]<td onclick="displayThis('pageone.cfm');">One</td>
<td onclick="displayThis('pagetwo.cfm');">Two</td>
<td onclick="displayThis('pagethree.cfm');">Three</td>
<td onclick="displayThis('pagefour.cfm');">Four</td>
[/INDENT]
[INDENT]</tr>[/INDENT]
</table>
When I click on any of the cells, the display frame will forever redirect (at least, I think it is… that’s how it’s behaving) and never load the page.
Thank you,