1 Reply Latest reply on Apr 10, 2015 3:49 PM by diego.medrano

    auto refresh is not working

    kamal rajput

      I am using this code to refresh the  dashboard automatically. No idea where is the problem in code its not working .

      Any help would be much appreciated.

      <!DOCTYPE html>




      <title>I'm an HTML file!</title>


      <!-- Replace the reference to the JS API on Tableau Public to your server -->

      <script type="text/javascript" src="http://public.tableausoftware.com/javascripts/api/tableau_v8.js"></script>

      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>





        <div id="content">  </div>



      var viz;


      function refreshThatSucker(){


        //or do something more obvious and evil




      function initializeViz() {

        var placeholderDiv = document.getElementById("content");

        // Replace this URL with your viz

        var url = "http://public.tableausoftware.com/profile/russell.christopher1087#!/vizhome/Iceland_0/IcelandDashboard";

        var options = {

          width: content.offsetWidth,

          height: content.offsetHeight,

          hideTabs: true,

          hideToolbar: true,

          onFirstInteractive: function () {

         // Refresh the viz every 5000 milliseconds







        viz = new tableauSoftware.Viz(placeholderDiv, url, options);


        catch (e){







      <script type="text/javascript">

          // Initialize the app on document ready.