B
Bauhaus
I have a html page with this code:
<html>
<head>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!-- AUTO-SUBMIT FORM
function submit_form(){
document.myform.submit();
}
// - End of JavaScript - -->
</script>
</head>
<body onload="submit_form();">
<form name="myform" method="post"
action="http://binsearch.info/fcgi/nzb.fcgi">
<input name="action" value="nzb">
<input value="NZB" type="submit">
</form>
</body>
</html>
When I load the page in IE or Firefox, it asks to open/save a file, becos of
the javascript.
I want this same behaviour in my VB program, so I created a webbrowser
control and use the html page as url.
Unfortunately, it doesnt ask to open/save the file, I have to push the
submit button first.
How can I make it immediately save the file without pushing the button ?
And is it necessary to use a webbrowser control ? Becos I dont want any page
to be displayed, I only want to execute the code of the page, meaning
downloading the file automatically.
<html>
<head>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!-- AUTO-SUBMIT FORM
function submit_form(){
document.myform.submit();
}
// - End of JavaScript - -->
</script>
</head>
<body onload="submit_form();">
<form name="myform" method="post"
action="http://binsearch.info/fcgi/nzb.fcgi">
<input name="action" value="nzb">
<input value="NZB" type="submit">
</form>
</body>
</html>
When I load the page in IE or Firefox, it asks to open/save a file, becos of
the javascript.
I want this same behaviour in my VB program, so I created a webbrowser
control and use the html page as url.
Unfortunately, it doesnt ask to open/save the file, I have to push the
submit button first.
How can I make it immediately save the file without pushing the button ?
And is it necessary to use a webbrowser control ? Becos I dont want any page
to be displayed, I only want to execute the code of the page, meaning
downloading the file automatically.