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):

        <meta charset="UTF-8">
        <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);

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


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