BHO works in IE6 but not IE7  
Author Message
Patrick Ma





PostPosted: Internet Explorer Extension Development, BHO works in IE6 but not IE7 Top

Hi, I have a BHO that is written in VB.
The BHO works in IE6 but not IE7.

The place it fails in IE7 is that it does not perform the Navigate2 method correctly.
I tried changing the 2nd parameter in Navigate2 to different values according to MSDN documentation. It yield different results.

Thus, I know Navigate2 is actually being executed but not correctly.

Can someone spot where the problem is
Thanks.

Private Sub m_ie_BeforeNavigate2(ByVal pDisp As Object, url, flags, TargetFrameName, PostData, Headers, Cancel As Boolean)

If someConidtionIsTrue Then
m_ie.Navigate2 "xxx.jsp", 0, "aFrame", Null, Null
End If
End Sub



Internet Explorer Development3  
 
 
Dave Massy





PostPosted: Internet Explorer Extension Development, BHO works in IE6 but not IE7 Top

Hi,

Can you provide more details to allow us to recreate the issue

Thanks
-Dave



 
 
Patrick Ma





PostPosted: Internet Explorer Extension Development, BHO works in IE6 but not IE7 Top

Thanks for your reply.

I can send you the complete VB program if it helps.
Also, I have worked around the problem for the moment.

The problem is in the following code.

m_ie.Navigate2 "jsp/xxx.jsp", 0, "aFrame", Null, Null

The program works when I change "xxx.jsp" to using an absolute path. For example, "http://www.myhost.com/jsp/xxx.jsp"

Thanks.

Patrick