2 Replies Latest reply on Jan 26, 2017 9:01 AM by Paul Auen

    JS API login button

    Kirill Krainov

      Hey, guys

       

      i have an issue with embedded Tableau Viz. If user not logged in on Tableau Server he doesn't see anything in iframe, but user should see Sign in button, then click on it and type in his tableau credential in pop up login window.

       

      Code (as in documentation example):

      <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script type="text/javascript" src="http://my-tableau-server/javascripts/api/tableau-2.min.js"></script>
        <script type="text/javascript">
         function initViz() {

         var containerDiv = document.getElementById("vizContainer"),
         url = "http://my-tableau-server/views/MyViews/my-view"
         viz = new tableau.Viz(containerDiv, url);
         }

         </script>
      </head>
      <body onload="initViz();">
      <div id="vizContainer" style="width:800px; height:700px;"></div>
      </body>

       

      Maybe i need to configure something on Tableau Server side? Any help would be appreciate.

       

      Thanks