Microsoft KB Archive/937265

= 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 =

Article ID: 937265

Article Last Modified on 6/26/2007

-

APPLIES TO


 * Microsoft Internet Explorer (Programming)

-



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

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



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 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

Keywords: kbexpertiseadvanced kbtshoot kbprb KB937265

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.