i am trying to load a html page with the results of a "get" from another link.The idea is when I open the page, I should see the results of the get displayed. I tried the following with javascript but with no success. The problem is I always get a submit button on the page. I want the submit to be "pre" done! Please help. Here is what I have:
<body onLoad ="subMe()">
<script>
function subMe(){
document.getElementById("formButton").submit();
}
</script>
<div align="center">
<div style="display: hidden;">
<form action="http://localhost:8000/getusers/" method="get">
<input type="submit" id="formButton" />
</form>
</div>
..
</body>
Any idea? This is linked to my previous post:Cgi C program return value to main HTML and display result