[Last Call] Learn how to a build a cloud-first strategyRegister Now


ActiveX dispatch call does not fire

Posted on 2009-04-30
Medium Priority
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="OTCLV.cab" 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

syys earned 0 total points
ID: 24278368
After playing around with the file I found the solution. I move the call to the dispatch method outside the body and it worked.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

831 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