Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17928

Replace replace current embedded report with new one on same page

$
0
0

 

Let's say I'm making a single page application and a user requests to see a new report. I want to be able to reload a new report into the existing <div id="report-container"> element. 

 

when i call the embed(config, report-container) method on a div element that ALREADY has a report embedded onto it, I receive the following error (reduced for brevity):

...which already has embedded comopnent associated, but could not find the existing comopnent in the list of active components. This could indicate the embeds list is out of sync with the DOM, or the component is referencing the incorrect HTML element.
Error: Attempted to embed using config 

Is there any way I can "re-embed" or do I need to destroy the current div and generate a new one? What's the best workflow to do this?

 


Viewing all articles
Browse latest Browse all 17928

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>