1 Reply Latest reply on Jul 18, 2015 1:26 PM by Tamas Foldi

    login window when using API

    Michal Wrobel

      Hi,

       

      I need to publish analysis on the intranet.

       

      I create a cutom website with tableau embad analysys :

       

      <html xmlns="http://www.w3.org/1999/xhtml">

      <head>

      <script type="text/javascript" src="http://localhost:8000/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>

      <script type="text/javascript">

       

       

          $(document).ready(function ()

           {

                  initializeViz()

              });

       

        function initializeViz()

        {

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

         var url = "http://localhost:8000/views/Podstawowefunkcjonalnocitableau/Grupowanie?:embed=y&:display_count=no";

        var options = {

        hideTabs: true,

           hideToolbar: true,

        width: "800px",

        height: "700px",   

        onFirstInteractive: function ()

        {

        workbook = viz.getWorkbook();

        activeSheet = workbook.getActiveSheet();

        }

        };

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

        }    

       

        </script>

      </head>

      <body>

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

      </body>

      </html>

       

      When i open html file i need to insert login and password.

       

      How put login and password inside javascrip API to html file ?

       

      Regards MichaƂ