To detect the errors with javascript when downloading the activex object?

Discussion in 'Javascript' started by ripken95, Jul 23, 2003.

  1. ripken95

    ripken95 Guest

    I create the ATL Object control and wrap it in the cab file.

    If a user downlaods .cab file from the HTML document successfully,
    my control can correctly work.

    But I want to show the error messages with javascript if the user
    cannot download the file or the error occurs when downloading the .cab
    file.

    What should I do for my ATL object control or add some check codes with
    javascript?

    Maybe I guess it should be like as follows but it can not work correctly:

    <script language="javascript">
    <!--
    function UA_OnInit()
    {
    if(test2==null)
    alert("A error occurs when downloading");
    }

    -->
    </script>

    <HTML>
    <HEAD>
    <TITLE>ATL 3.0 test page for object test2</TITLE>
    </HEAD>
    <BODY bgcolor="#ffffff" language=javascript onload="UA_OnInit()">
    <OBJECT ID="test2" CLASSID="CLSID:5C836C70-4909-477C-A1E1-643602ADD810"></OBJECT>
    </BODY>
    </HTML>

    Can anyone give some suggestions for me? Regards.
     
    ripken95, Jul 23, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,278
    Mark Goldin
    Jan 17, 2004
  2. Replies:
    0
    Views:
    1,180
  3. Chris Lieb
    Replies:
    8
    Views:
    11,466
  4. vml
    Replies:
    0
    Views:
    1,312
  5. David C

    Detect ActiveX

    David C, Nov 11, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    674
    Alexey Smirnov
    Nov 12, 2008
  6. SiuLoBow

    Detect the ActiveX Control is able to run

    SiuLoBow, Jul 9, 2004, in forum: ASP General
    Replies:
    4
    Views:
    192
    Steven Burn
    Jul 9, 2004
  7. fniles
    Replies:
    5
    Views:
    238
    fniles
    Jan 6, 2006
  8. Robert White
    Replies:
    0
    Views:
    189
    Robert White
    Aug 23, 2005
Loading...