[Support request] IFrame opened with GPHooks refreshes continuously

Home Forums Support IFrame opened with GPHooks refreshes continuously

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1372685
    alw

    I have reduced my issue to a simple page with just the code:

    <iframe onload=”this.src = lookfor(this);”></iframe>

    and a hook (anywhere):

    <script type=”text/javascript”>
    function lookfor(ifrm) {
    ifrm.contentWindow.document.write(“<html><body>Hello world</body></html>”);
    }
    </script>

    It loads “Hello World” as intended — but then shows a Page Not Found error, then refreshes and repeats continuously.

    (I tried adding all sorts of src=”” to the iframe, but that doesn’t help)

    #1372984
    David
    Staff
    Customer Support

    Hi there,

    I don’t think the issue is related to the hook – does the code work ‘correctly’ if it is added to the post content ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.