Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1058785

    Hi,

    When I add Javascript within a codeblock and publish it, then the following happens:
    – I only see the header when I select the option ‘no transparancy’.
    – The anchor links on my onepage are messed up. When I select a link it goes random up and down.
    – My images are gone if they have animations. I can only see the images if I disable the animations.

    I already deactivated all plugins but its not working.

    Thanks!

    #1059292

    Hey delete28,

    What happens if you remove the code you added? Where can we see the results?

    Best regards,
    Rikard

    #1059322

    And what code do you insert on that page?
    (please use code tag here on the answer)

    #1059663

    This is the working live site: https://www.nelietstam.nl

    This is a test page where I inserted the code: https://www.nelietstam.nl/test123/ (scroll to LESROOSTER)

    The code:
    <script src="https://www.paynplan.nl/require_app?c=2754&p=agenda&mode=listView"></script>

    #1060074

    aha – and what should the code do for you – what do you expect the code would do?
    The code was this:

    var iFrameID = 'BM_Frame_' + new Date().valueOf();
    var output = '';
    output += '<style>';
    output += 'html,body {padding:0; margin:0; height:100%;}';
    output += '.BM_AppContainer iframe {';
    output += 'width:100%; height:100%;';
    output += 'position:relative;';
    output += 'height:600px;';
    output+= ' border:0;}';
    output+= '</style>';
    var frame = '<div class="BM_AppContainer"><iframe id="' + iFrameID + '" src="https://app.paynplan.nl/agenda-embedded.html?embedded=1&idc=2754&mode=listView"></iframe></div>';
    document.write(output);
    document.write(frame);

    but i don’t think that this will work with codeblock element

    #1060181

    The code shows a monthly schedule, you can see this when you scroll to LESROOSTER > https://www.nelietstam.nl/test123/
    But it messes up the navigation (anchor links), it scrolls random.
    If I delete the code, then the navigation works properly.

    I also have placed the code in a textblock, but with the same result.

    #1060342

    yes now I see what you mean, after pressing the navigation points several times one scrolls here and there or no scrolling is triggered anymore.

    but i do not see the need for a code in that page. Try to put your link in a text block with an iframe (paste it to text mode better)

    
    <iframe src="https://app.paynplan.nl/agenda-embedded.html?embedded=1&idc=2754&mode=listView" width="100%" height="500px" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

    i did that here on a test page – and it works without code on that page: https://webers-testseite.de/code-in-iframe/
    it is just blocked through my Cookie Consent Plugin.

    #1060384

    Thank you, it works!!

    #1060388

    ok – maybe you set the height of the iframe to 560px – then on most of the screen width you won’t have the need to scroll inside the iframe if a new window in the iframe is opend ( klick on one link inside – kickboksen meit rens f.e.)

    #1060618

    Hi,

    Thank u for all the feedback @Guenni!

    Best regards,
    Basilis

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