var/html = {"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<title>Ticket Log Viewer</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type='text/javascript'>
function sync(test) {
$('#messages').append('<p>Testing</p>');
}
</script>
</head>
<body scroll='yes'><div id='messages'>Content</div></body>
</html>"}
// Create the browser
src << browse(html, "window=ViewLog")
// Later run this
src << output("test", "ViewLog:sync")
Problem description:
I am attempting to create a browser, and at arbitrary points to send additional data to the browser. So that it does not need to be completely refreshed.
So far, I have not managed to make the output() function work. I have seen several webpages explaining that it works, but is there something that I am not grasping?
Is there perhaps more official documentation explaining this functionality?
Or is there a better way of performing this function?
This is my example of using it for reporting errors atc... It might help ya out. Make a list, save text on list and than use it in your html :)