Edit in JSFiddle

askiaVista.config({
  baseUrl: "https://show.askia.com/AskiaVistaReader.Net4/",
  survey: "EX"
});

function myTable() {
  askiaVista.getPages({
    "rows": ["7. Type"],
    "columns": [{
      "shortcut": "i1. Gender"
    }],
    "containerId": "result"
  });
}
<input type="button" value="request table" onclick="myTable()" />
<input type="button" value="logout" onclick="askiaVista.logout()" />
<div id="result"></div>

              

External resources loaded into this fiddle: