How do I CFLOCATE to page, not division?

196 Views Asked by At

I currently have a ColdFusion page that has a list division on the left side and a details division on the right. When a record is added through a button-click on the details side, I want to rebuild the whole page so the new record will be displayed in the list. I have set the CFLOCATION to go to the complete page (the one containing the two divisions), but what I'm getting is that it displays the original list in the left division, and then displays the complete page (list and details) in the right division. How can I make my CFLOCATION tag replace the original page rather than trying to just cram it into the one division? Here's the CFLOCATION tag:

<CFLOCATION URL="Listframe.cfm?ID=#Form.IDDancer#">
1

There are 1 best solutions below

0
On

You could possibly use JavaScript (instead of cflocation) to force the location of the top/parent page.

I've used code like this before:

<script>
window.parent.location.href = "https://www.google.com";
</script>

Other options: How to reload Main Page from within an iFrame