Article ID: 937265 - Last Review: June 26, 2007 - Revision: 1.0

The URL of an ActiveX control is not related to the IFrame when you use the CODEBASE attribute to set the URL of an ActiveX control in an HTML document

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

On This Page

Expand all | Collapse all

SYMPTOMS

In an HTML document, you dynamically create an object element to load an ActiveX control. You use the method that is recommended at the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms537508.aspx (http://msdn2.microsoft.com/en-us/library/ms537508.aspx)
You use the CODEBASE attribute to set the URL of the ActiveX control. If the HTML document that contains the ActiveX control is embedded in an inline frame (IFrame), the URL of the ActiveX control is not related to the IFrame as expected. The URL of the ActiveX control is incorrectly related to the parent frame.

WORKAROUND

To work around this problem, use one of the following methods:
  • Use the absolute path to reference the URL of the ActiveX control.
  • Save the following documents in the same folder:
    • The HTML document of the IFrame
    • The HTML document of the parent document

MORE INFORMATION

Call stack information

01314e4 6379ae1a urlmon!CoInternetCombineUrl+0xfb 
00133550 63c09c12 mshtml!CMarkup::ExpandUrl+0x1ca 
001397d8 63bcfc9e mshtml!CObjectElement::CreateObject+0x752 
001397f4 63bb01b5 mshtml!CHtmObjectParseCtx::Execute+0x2e 
0013986c 63b8be6d mshtml!CHtmParse::Execute+0xd5 
00139898 63b8b9bf mshtml!CHtmPost::Broadcast+0x2d 
00139a24 63b993ec mshtml!CHtmPost::Exec+0x65f 
00139af0 63b935f9 mshtml!CHtmLoad::Init+0x6fc 
00139b60 63b925dd mshtml!CDwnInfo::SetLoad+0x349 
00139b88 63b96a7c mshtml!CDwnCtx::SetLoad+0xfd 
00139bac 637a78d8 mshtml!CHtmCtx::SetLoad+0x2c 
00139bdc 637a405d mshtml!CMarkup::Load+0x2b8 
00139cc8 6381604b mshtml!CMarkup::Load+0x18d 
00139d38 63abb504 mshtml!CDoc::ParseGlobal+0x2fb 
00139e94 63abb8e1 mshtml!HandleHTMLInjection+0x284 
00139ec8 637bf170 mshtml!HandleHTMLInjection+0xc1 
0013a000 637bfb5a mshtml!CElement::Inject+0x6c0 
0013a038 6388b395 mshtml!CElement::put_innerHTML+0x7a 
0013a060 63896935 mshtml!GS_BSTR+0xf5 
0013a19c 63779147 mshtml!CBase::ContextInvokeEx+0xd45

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
937266  (http://support.microsoft.com/kb/937266/ ) A relative URL is not related to an IFrame when you dynamically create a style element that uses a relative URL for an external .css file in an HTML document

APPLIES TO
  • Microsoft Internet Explorer (Programming)
Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB937265
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.