3 Replies Latest reply on Jul 30, 2018 2:17 PM by patrick.byrne.0

    I always want to hide loadingGlassPane

    Yusuke Miyamura

      loadingGlassPane is like a white film that appears when loaded.

      By changing CSS, I would like to reload it in units of 1s like stock charts.

      I am running it with html as below, but it does not work. Does anyone have advice or hints?

       

      <!DOCTYPE html>

      <html>

       

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

      <title>Basic Embed</title>

         

        

                     <script src=http://”myserver” /javascripts/api/tableau-2.min.js"></script>

                     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

      <script>

          

          

      $("iframe").on("load",function(){

      $("iframe").contents().find("initializing_thin_client").css("display","none"); 

                          });

                         

                         

      function initViz() {

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

                      url=http://”myserver”/views/~~~~~~~~~~~~~~~~~?:embed=y",

                      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.

       

      }

       

      </script>

      </head>

       

      <body onload="initViz();">

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

      </body>

       

      </html>