Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1126264
    becktowery
    Participant

    Hi, I’m trying to get an iframe to reload with a button click.

    page is http://becktowery.com/hipster-business-name-generator/

    I have a regular button with ID “refreshBut”

    this in custom JS on the page:

    jQuery(‘#refreshBut’).click( function(){

    document.getElementById(‘nameFrame’).src = document.getElementById(‘nameFrame’).src;
    });

    an iframe in Raw Content:
    <iframe id=”nameFrame” name=”nameFrame” src=”http://www.becktowery.com/hipsterbiz/hipsterbiz.php”></iframe&gt;

    Nothing seems to work. any thoughts?
    Thanks!

    #1126270
    becktowery
    Participant

    So it seems W3 total cache is interfering with the reload. How frustrating. I turned it off and the above code works fine. Now just have to figure out what setting to allow this bit through.

    Thanks!

    #1126580
    Nico
    Moderator

    Happy yo hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1126264 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>