• Resolved adrenmaths

    (@adrenmaths)


    Hi,

    I tried to embed to pieces of javascript code in the same article and didn’t succeed ??

    Only the first one appears.

    Please look at the it using the URL given above.

    I guess I did something wrong with html … but cannot figure out what …
    Thank you for helping.

    Here is the structure of the code itself (it’s the same for both except that I choosed different names for the html containers in order to avoid problems … but it looks like this precaution was not enough) :

    —- CODE n° 1
    <html>
    <head>
    <title>Puissances</title>
    <script src=”https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js”></script&gt;
    <script type=”text/javascript”>
    blah blah blah
    </script>
    </head>
    <body>
    <div id = “p_canvas-holder”>
    <br>
    <table cellspacing=”20px”>
    <tr>
    <td id = “p_div-holder”></td>
    <td id = “p_slider-holder”></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    —- CODE n° 2
    <html>
    <head>
    <title>Puissances</title>
    <script src=”https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js”></script&gt;
    <script type=”text/javascript”>
    blah blah blah
    </script>
    </head>
    <body>
    <div id = “a_canvas-holder”>
    <br>
    <table cellspacing=”20px”>
    <tr>
    <td id = “a_div-holder”></td>
    <td id = “a_slider-holder”></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Artiss

    (@dartiss)

    Hi,

    You start by saying that you’re embedding JavaScript… but you’re not. You’re embedding HTML. That’s fine but the script you’re adding is for a full HTML page, including the head and body. There should only be one of these present per page – ypur first embed already confuses the output by adding in a second and then you add a third.

    However, what I’m not able to do is provide support for the individual scripts that people want to embed.

    I’ve checked the page that you’ve added these to and I can see that both scripts have been embedded, so the plugin is working as expected – the issue is the code that you’re embedding, and this is outside of my control.

    Thread Starter adrenmaths

    (@adrenmaths)

    Je réponds en fran?ais …

    David, merci infiniment pour votre réponse. Je n’ai pas une expertise suffisante dans ce domaine, mais je réalise en effet que j’ai inséré du HTML et pas du tout du javascript.

    Je vais essayer de corriger cela mais au moins je sais maintenant dans quelle direction aller.

    Encore merci,

    Adren

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘One CODE ok, but not ok for two …’ is closed to new replies.