Click to See Complete Forum and Search --> : WebBroswser Control and Submit


sebbs
August 16th, 2001, 06:37 AM
I am implementing off-line ASP supporting browser. I use MS WebBrowser control. I got everything to work except handling submit requests from script. For example:
<SCRIPT language="JavaScript">

function ReloadPage()
{
if (InvalidateOutput())
{
document.forms[0].action="area1.asp";
document.forms[0].submit();
}
}
</SCRIPT>
...
<SELECT name=numericin3Unit onchange="ReloadPage()">
<%=uc.GetUnitsListHTML(hhnumericin3Unit,"Length")%>
</SELECT>
...

sebbs
August 16th, 2001, 06:45 AM
Sorry for not finishing the post above. Pushed submit post by mistake.

Basically my problem is that when the JavaScript function gets called I don't get the submit event from WebBrowser Control. Is there such an event? Right now I capture the OnClick event for combo boxes and do submit then. It works but it's not what I need. There are other functions that do submit that aren't event handlers so I have no way of knowing if there was a submit request. Thanks in advance and sorry for the two-piece question.

Sebastian