View Single Post
  #577  
Old 02-26-2025, 08:01 PM
  nauticalstyle's Avatar 
nauticalstyle nauticalstyle is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 70
 

Default Re: X-Cart reBOOT (reDUX) Template

Quote:
Originally Posted by PhilJ
Just a tip, if you want to iframe something quickly, like a support app, that resizes automatically, you can add code like this to a static page or wherever...
Code:
<iframe class="w-100 border-0" id="myIFrame" name="myIFrame" src="./path/to/your/app" onload="updateIframe()" scrolling="no"></iframe> <script src="{$AltSkinDir}/js/plugins/iframe/dynifs.min.js"></script> <script> function updateIframe() { DYNIFS.resize('myIFrame'); } setInterval(updateIframe, 500); </script>
You can see a demo here.




As of 4.7.12.9 this no longer works. All Javascript <script>... </script> elements are stripped from embedded Static Pages when saved.
__________________
Tony
Skipper at Nautical Style
X-Cart Gold Version 4.7.12
X-Cart reBOOT (reDUX) Template 4.7.12.9 (live)
Reply With Quote