User:Alokarrives/sandbox



window.onload = function {

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

console.log(placeholderDiv.innerHTML)

var url = " http://tableau/views/bioapps_DB_1_10_single_0/single_bamstats ";

var options = {

width: placeholderDiv.offsetWidth,

height: placeholderDiv.offsetHeight,

hideTabs: true,

hideToolbar: true,

onFirstInteractive: function {

workbook = viz.getWorkbook;

activeSheet = workbook.getActiveSheet;

}

};

console.log(options)

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

};

function selectViz {

console.log('selectViz called')

var mylist=document.getElementById("workbook_selection");

wbValue = mylist.options[mylist.selectedIndex].value;

initializeViz(wbValue);

}

function initializeViz(wbTagQuote){

viz.dispose;

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

console.log(placeholderDiv.innerHTML)

var url = wbTagQuote;

console.log(url)

var options = {

width: placeholderDiv.offsetWidth,

height: placeholderDiv.offsetHeight,

hideTabs: true,

hideToolbar: true,

onFirstInteractive: function {

workbook = viz.getWorkbook;

activeSheet = workbook.getActiveSheet;

}

};

console.log(options)

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

console.log('look out below')

console.log(placeholderDiv.innerHTML)

}