Tip #10: How to Get Frames and IFrames to Work Correctly in a Template File
Frames provide a convenient way to keep portions of the site static as users jump from one page to another. IFrames are often used as mini-windows within a page to display content from other sites. While providing convenient solutions for sticky navigation issues, the added level of complexity that frames bring to any web design often proves to be a bane for many developers.
The same is true for MCMS websites. Frames and IFrames do not work perfectly on template files. JavaScript errors occur when toggling between Live and Edit Site views when:
The Frame or IFrame embedded within the template file links to another site.
An MCMS page that the author is working on is located within a Frame or IFrame of another website.
The good news is that both issues can be fixed.
When the Frame or IFrame Links to Another Site
When a Frame or IFrame embedded within a template file contains a page from another site—unless you have already...