Jump to content

Troubleshooting DataPageReady code being run multiple times when it should be once


Recommended Posts

I have the below in the footer of a Pivot  Report Drill down.   The code runs once upon the first drill down, but when i return to the Pivot and drill down again into another area, the code executes twice, repeating again and it executes 3 time, then 4 times etc, etc. 

 

Looking for help on understanding why i'm observing this behaviour.. and how to prevent it.  

<script>
document.addEventListener('DataPageReady', function(event) {

    alert("hello");

});
</script>

 

 

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...