Skip to main content
Inspiring
January 15, 2018
Answered

linking 2 html5 canvases

  • January 15, 2018
  • 1 reply
  • 367 views

I've been trying to convert an old flash interactive module into HTML5 canvas before the plug eventually gets pulled.

I have one of the 2 parts converted and it works fine. I tried pasting the frames of the other after converting it to HTML5 canvas into the timeline of the first one but it seems to be interfering with the functionality of the first one even though all the old actionscript is commented out. Is there a way to keep them separate then when the user is finished with the first part it would automatically load the 2nd canvas? I think this would be easier than trying to troubleshoot what's interfering with the first one. I'm not even getting a javascript error in the console in my browser, so it's hard to pinpoint what the problems are.

This topic has been closed for replies.
Correct answer ClayUUID

Then put the canvas document in an iframe.

1 reply

Legend
January 15, 2018

Canvas documents are just web pages. So to "link" from one canvas document to another, just... load it.

window.location = "/canvas2.html";

pbesongAuthor
Inspiring
January 15, 2018

Thanks, but the problem with that solution is that there is other content on the page and I'm not yet sure if I can leave that page to another. I'd rather be able to replace the current canvas with the next one.

ClayUUIDCorrect answer
Legend
January 15, 2018

Then put the canvas document in an iframe.