CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2000
    Location
    New Jersey
    Posts
    2

    WebBroswser Control and Submit

    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>
    ...


  2. #2
    Join Date
    Nov 2000
    Location
    New Jersey
    Posts
    2

    Re: WebBroswser Control and Submit - continued

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured