4 Replies Latest reply on Nov 7, 2017 10:22 AM by Patrick Van Der Hyde

    Javascript API not functioning from server


      I'm looking for some guidance on the javascript api.  I am able to get the visualization to work when on local host but when I publish the same code to our webservers the api doesn't load.  I'm kind of lost as to where to go from here.   Below is what I'm using to initialize the visualization.


      function initViz(urllink, menuid, client, tab) {


          w = screen.width;

          h = screen.height - 20;

          var containerDiv = document.getElementById("myViz");

          var  options = {

              height: h,

              width: w,

              hideTabs: false,

              hideToolbar: false,

              toolbarPosition: tableau.ToolbarPosition.TOP,




          viz = new tableau.Viz(containerDiv, urllink, options);