Javascript and DOM

if I wanted to include a Tableau object, they have a Javascript API with a sample that looks like:

function initViz() {
var containerDiv = document.getElementById(“vizContainer”),
url = “https://YOUR-SERVER/views/YOUR-VISUALIZATION”;

var viz = new tableau.Viz(containerDiv, url); 

}

I assume that XOJO Basic can simulate the above code, but does XOJO have a mechanism to search/edit the DOM?

ExecuteJavaScript lets you do all sorts of manipulations in the Dom.

http://documentation.xojo.com/index.php/WebControl.ExecuteJavaScript

PS : When you post code, make sure to select it and click the code icon on top of the editor so it is nicely formatted and legible :

[code]function initViz() {
var containerDiv = document.getElementById(“vizContainer”),
url = “https://YOUR-SERVER/views/YOUR-VISUALIZATION”;

var viz = new tableau.Viz(containerDiv, url);
}[/code]