Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

ActiveX problem

  • 26-11-2008 03: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
Advertisement