ActiveX dispatch call does not fire

Posted on 2009-04-30
Last Modified: 2013-12-08
When the html code below is opened in IE6, the activeX control gets installed, but the dispatch method (launchViewer) is not called. If you open the file a second time, the method is call and all is peachy.

How can I get the method "launchViewer", to fire during the first viewing of the html code, just after the activeX install?


<script language="javascript">

document.write('<OBJECT ID="ImpactX" WIDTH=900 HEIGHT=900 ALIGN=middle HSPACE=0 VSPACE=0 CLASSID="clsid:A716EC5E-7FC9-4B00-8116-7752CC9D9683" CODEBASE="" STANDBY="Loading file uploading component..." TYPE="application/x-oleobject">\n');



	var launchInfo = "Happy days here again";;





Open in new window

Question by:syys
    1 Comment

    Accepted Solution

    After playing around with the file I found the solution. I move the call to the dispatch method outside the body and it worked.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Due to recent concerns over the inevitable depletion of the current pool of IPv4 addresses and the desire to provide additional functionality for modern devices, an upgrade to IPv6 on my Internet connection was needed for me to explore the world of …
    Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
    Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now