javascript - Meteor / Iron Router Prevent iFrame re-render -


i'm trying use meteor / iron router make pretty simple app 2-3 pages 1 of pages requiring iframe embed contents.

the embedded content, http://trycelery.com, added quite facebook comments, div data attributes , js initialization. when navigating away page , route embedded content, page rerendered , doesn't fire second time around. imagine because ahve sitting inside of {{> yield}} expected.

i've tried couple things i've seen scatered across stack like:

  • using pathfor link instead of actual absolute path
  • i found "constant"'s might have been promising no longer available
  • tried hacky work template.templatename.rendered couldn't figure out

any solution aside keeping outside of {{>yield}} , show/hiding navigation?

edit: showing/hiding css following prefer move template if possible.

<div id="thepage" class="{{ispage}}"> template.applayout.helpers({     ispage: function() {         if ( router.current().route.getname() == 'thepage' ) {             return 'is-active';         } else {             return 'not-active';     } }); 


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -