Skip to main content
patrickb89495570
Known Participant
April 7, 2018
Answered

Integrate multiple html5 canvas in wordpress without iframe

  • April 7, 2018
  • 2 replies
  • 1687 views

Hello,

Is there an easy way to integrate multiple html5 animate canvas in wordpress without using iframe ?

Thks

Patrick

    This topic has been closed for replies.
    Correct answer robdillon

    Not really. Just make sure that each div has a beginning and and end tag and that each one has a unique name.

    2 replies

    Brainiac
    April 9, 2018

    patrickb89495570  wrote

    Is there an easy way to integrate multiple html5 animate canvas in wordpress without using iframe ?

    Using an iframe IS the easy way. If you don't use iframes, it's very not easy.

    robdillon
    Participating Frequently
    April 7, 2018

    An iframe is useful if you need to present external content into HTML. If that’s what you need to do then use an I frame. If you have a bunch of canvases that you want to put one after the other on a a single HTML document then you could just use div’s. Set up one div for each canvas and you will have independent control of each one. If the canvas elements share a lot of attributes then you can just put each canvas one after the other in the HTML document.

    More Info on the Canvas element: HTML5 Canvas

    More info on the Div tag: HTML div tag

    More info on the frame tag: HTML iframe tag

    patrickb89495570
    Known Participant
    April 9, 2018

    Hello,

    Thank you for your answer,

    I tried so many time to integrate multiple canvas in wordpress using div's, but there is always some conflicts, with a buggy result

    Do you have a concrete example or an easy way ?

    robdillon
    robdillonCorrect answer
    Participating Frequently
    April 9, 2018

    Not really. Just make sure that each div has a beginning and and end tag and that each one has a unique name.