Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ActiveX problem

Options
  • 26-11-2008 3:21pm
    #1
    Closed Accounts Posts: 20


    Hi

    I'm trying to create an ActiveX object as seen below:
    try
            {
                document.getElementById("divStatus").innerHTML = "Creating Object";
                oPage = new ActiveXObject("htmlfile");
                oPage.open();
                oPage.write("<html><body></body></html>");
                oPage.close();
                oPage.parentWindow._parent = self;
                reesetConnection();
                document.getElementById("divStatus").innerHTML = "Created";
             }
             catch (ex)
             {
                document.getElementById("divStatus").innerHTML = ex;
             }
    

    The error says: Streaming test2[object Error]

    If i remove the try catch the browser says : Object Expected

    I'm following a tutorial in a book and have followed their instructions to the letter. Any help with this would be much appreciated.

    Regards


Comments

  • Closed Accounts Posts: 20 Whackhead


    What is the parameter value's function that you pass to the ActiveXObject?


Advertisement