2 Replies Latest reply on Oct 27, 2014 11:52 AM by Stephen Hellyar

    Why are the hideTabs and hideToolbar options not working?

    Stephen Hellyar

      I can't get the hideTabs and hideToolbar options to work consistently.

       

      I can get it to work for one dashboard, but not the second and I used the exact same approach.  The only thing I changed was the vizURL and height of the second dashboard to match its attributes.  (The two dashboards do not exist on the same page or site.) 

       

      I changed the names of the dashboards in the cut and paste below.  The problem dashboard does embed and is fully interactive, I just can't get the fraking hideTabs and hideToolbar options to work.

       

      My choice of syntax, etc. is straight from the API video tutorial. 

       

      This works: 

       

      window.onload=function() {

        var vizDiv = document.getElementById('viz');

        var vizURL = 'https://online.tableausoftware.com/t/i2i/views/Dashboard01';

        var options = {

        width: '960px',

        height: '960px',

        hideToolbar: true,

        hideTabs: true,

        onFirstInteractive: function() {

        workbook = viz.getWorkbook();

        document.getElementById('sheetName').innerHTML = viz.getWorkbook().getActiveSheet().getName();

        }

        } 

      yada, yada yada...

       

      This does not work:

       

      window.onload=function() {

        var vizDiv = document.getElementById('viz');

        var vizURL = 'https://online.tableausoftware.com/t/i2i/views/Dashboard02';

        var options = {

        width: '960px',

        height: '1200px',

        hideToolbar: true,

        hideTabs: true,

        onFirstInteractive: function() {

        workbook = viz.getWorkbook();

        document.getElementById('sheetName').innerHTML = viz.getWorkbook().getActiveSheet().getName();

        }

        }

      yada, yada yada...