我使用eugenia创建了一个gmf模型,其中包含以下节点:
<html>
<script type="text/javascript">
window.setInterval(function(){
ajaxCallFunction(); //calling every 5 seconds
}, 5000);
function ajaxCallFunction(){
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
document.getElementById("textDisplay").innerHTML = xhttp.responseText;
}
};
xhttp.open("GET", "YOUR TEXT DOCUMENT HERE", true);
xhttp.setRequestHeader("Pragma","no-cache");
xhttp.setRequestHeader("Cache-Control","no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
xhttp.setRequestHeader("Expires",0);
xhttp.setRequestHeader("Last-Modified", new Date(0));
xhttp.setRequestHeader("If-Modified-Since", new Date(0));
xhttp.send();
}
</script>
<marquee id="textDisplay"></marquee>
</html>
它工作正常,但遗憾的是,将其插入图表时会完全展开。
所以我想知道是否有可能添加Node并拥有它并且所有Childs在开始时都崩溃了?