1 Reply Latest reply on May 24, 2018 1:17 AM by Ciaran Bource

    refreshDataAsync is not a function

    Arturo Moreno

      Hi everybody!


      I have this code to refresh the data of my dashboard every 3 seconds, but the error in my code is that the refreshDataAsync is not a function of viz Class.


      I already review the Tableau Doc, and the function exist.


      Can anyone help me? Please!




      <!DOCTYPE html>





          <title>Basic Embed</title>


          <script type='text/javascript' src='http://mat.net.com:8080/javascripts/api/viz_v1.js'></script><div class='tableauPlaceholder' style='width: 1004px; height: 836px;'><object class='tableauViz' width='1004' height='836' style='display:none;'><param name='host_url' value='http%3A%2F%2Fmat.net.mirai-advisory.com%3A8080%2F' /> <param name='site_root' value='&#47;t&#47;mirai-mx' /><param name='name' value='Twitter_Streaming&#47;TwitterLiveStream' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='showShareOptions' value='true' /></object></div>

          <script type="text/javascript">

              function initViz() {

                  var containerDiv = document.getElementById("vizContainer"),

                      url = "http://mat.net.com:8080/t/mirai-mx/views/Twitter_Streaming/TwitterLiveStream",

                      options = {

                          hideTabs: true,

                          onFirstInteractive: function () {

                              console.log("Run this code when the viz has finished loading.");




                  var viz = new tableau.Viz(containerDiv, url, options);

                  // Create a viz object and embed it in the container div.







      <body onload="initViz();">

          <div id="vizContainer" style="width:800px; height:700px;"></div>