redrawing of an HTML page to achieve the jump, That is, the system will never refresh, there is no unload,activex nature can not be destroyed, resulting in a browser crash.
Solving Method
Knowing the reason, let's think about it. Since IE can't help us destroy ActiveX controls. We'll do it by ourselves:
Copy Code code as follows:
@AcitveXObject
Original article address:
Http://softsky.jblog.cn/160063.shtml
Web page development involves three types: static Web pages, semi-dynamic web pages, and client-side dynamic pages. This article focuses on the development of dynamic real-time pages based on ActiveX control.
The ActiveX control is used to embed the control into the home page. When a user accesses the home page through a
I. Overview
In the following section, we will briefly introduce the concept and classification of ActiveX components, so that readers can have a conceptual grasp of ActiveX components. The following describes how to register ActiveX components. The registration methods of ActiveX controls,
Development tools:
1. Visual Studio 2005 for ActiveX component development
2. Microsoft ActiveX control pad is used to generate HTML webpages containing ActiveX control.
Steps:1. Create an MFC ActiveX Control Project Using Visual Studio 2005. After compilation, find a file XXXX. ocx in the debug/release directory. For
Install,c++ Builder will automatically register for it.
Understanding all methods of ActiveX controls
General ActiveX controls are not help files, in the C + + Builder IDE Environment we can only see its design period properties and events, then how to know its run-time properties and methods? C + + Builder generates the corresponding header file (*.h) in the "E:\Program files\borland\cbuilder6\imports"
new trademark name. ActiveX refers to a loosely defined, COM-based collection of technologies, while OLE still refers to compound documents only. Of course, the most core technology of ActiveX is COM.The biggest difference between ActiveX and OLE is that OLE is for integration between application software and files on the desktop, while
its own and inside. This means that you can access insecure objects through security objects without warning, which also means that those security objects are not actually safe. Continue to see the example below. Microsoft Office Outlook View Controls are useful to providers and developers who want to integrate Outlook functions with Internet solutions for other plug-ins. In this example, this control is also proved insecure. The example shows how an Active
cannot use a JScript function or a server-side script to determine whether a control is active. The application hosting the Web Browser Control cannot determine whether a control is active.
The control can determine the activation state through the Dispid_ambient_uidead ambient property, which is invoked by IDispatch::Invoke . When this property is changed through iolecontrol::onambientpropertychange , the control that implements the IOleControl int
page.
You can open the test page and see the CLSID, for example: 890D1028-298B-45CF-9A64-6ED5A5BACBC9
Since the VB compile time has completed registration. It is not possible to simulate a prompt that occurs when the client does not have the control installed.
We continue to
Uninstall using regsvr32 f:\csdn_vb\com+_activex\sample1\focx.ocx–u
Or
Open the registry and find it under HKEY_CLASSES_ROOT\CLSID
890D1028-298B-45CF-9A64-6ED5A5BACBC9 items, delete, of course, this way there are
We often use the Internet, when we use the browser to browse some Web pages, we will prompt the ActiveX control is blocked, and then how? What exactly is an ActiveX control? Does an ActiveX control block affect your computer's Internet access? The following Pepsi net is for you. The things that
function of Vs, which is also quite simple.
(1) Add a new installation project to the current solution.
(2) import the main output of the omcs_activex project to the "Application folder" of the installation project.
(3) modify the register entry in the installation attribute of the main output file to vsdrpcom.
(4) set the project properties of the installation project, mainly the "installation URL" item, to be set as the deployment address.
(5) If necessary, check or remove some items that a
be interactive and group support Library. COM objects can be written in any language, such as C + +, Java, and VB, and can be implemented in the form of DLLs or executable files that work in different processes. A browser that uses a COM object does not need to worry about what language the object is written in, or whether it is executed in a DLL or another process. From the browser side, there is no diffe
Active|activex|visual| created and developed based on. Net platform, it is difficult to link Visual C # and ActiveX components in nature, although in the case of developing applications using Visual C #, ActiveX is sometimes required for rapid development or because of the incomplete integrity of the. Net FrameWork SDK. But even so, it's hard to relate the two. T
First check that the client browser has ActiveX controls installed, and if you do not have ActiveX installed, you will need to first download the browser and allow the installation. Otherwise, use the ActiveX control directly. We can use CODEBASE to meet our requirements: He
exampleInnerhtmlAnd JScript functions load ActiveX controls, and specify the parameter value.
// Html file
// External_script.jsfunction createcontrol (divid, CLSID, objectid, width, height, URL, autostart) {var d = document. getelementbyid (divid); D. innerhtml = '
The following example usesWritelnThe function inserts the script into the original HTML document, so the generated control needs to be activated. To load a control that does not req
Recently, in order to solve a technical problem of ActiveX, VB was used as an ActiveX control, and there was no function at all,
Is to test the release and version Update Of ActiveX! After two days, I finally figured out some of the processes!
By the way, you should not forget it! Read an articleArticleDescribes how to use C # To develop
IObjectSafety interfaceWhen an ActiveX control is called in a browser, a warning box appears, prompting the unsafe control to be running. This is limited by the browser security policy, and the control implements the IObjectSafety interface to show the browser that it is legitimate. Add the definition of the IObjectSa
[Source code download: http://download.csdn.net/source/3526786] Introduction
Here, I'll introduce ATL support for using ActiveX controls in a dialog box. Because ATL specializes in handling ActiveX controls, WTL does not involve other auxiliary classes. However, the ATL method that uses ActiveX controls is very different from MFC, so it needs to be highlighted. I
following example uses the innerhtml and JScript functions to load ActiveX controls and specify the parameter values.
Because the following example uses the writeln function to insert the script into the original HTML document, the generated control needs to be activated. To load a control that does not require activation, use one of the preceding examples.
Note:: To automatically activate ActiveX contro
refresh, and there will be no unload. ActiveX will naturally not be destroyed, leading to Browser Crash.
Solution
If you know the reason, let's find a solution. Since ie cannot help us destroy ActiveX controls. Let's just do it ourselves:
CopyCode The Code is as follows: // @ acitvexobjectid: the range of nodes to be queried. Find the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.