Win10 IE problem?

Win10 IE problem?

Postby richard-service » Wed Jul 28, 2021 11:07 am

Hi,

I use this codes in Win10 IE and appear error message below:
Code: Select all  Expand view  RUN

oIE:Document:GetElementsByClassName("title")
 


DOCUMENT: No exported method


in Windows7 IE no problem.

Anyone can help it
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Win10 IE problem?

Postby Otto » Wed Jul 28, 2021 12:13 pm

Richard,
Is Internet Explorer installed?
Are the security settings the same?
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Win10 IE problem?

Postby Natter » Wed Jul 28, 2021 3:56 pm

oDk:=oWnd:aControls[nn]:GetProp("Document")

It works perfectly with W10
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Win10 IE problem?

Postby richard-service » Thu Jul 29, 2021 6:41 am

Otto wrote:Richard,
Is Internet Explorer installed?
Are the security settings the same?
Best regards,
Otto


Yes, I installed IE 11 and setting.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Win10 IE problem?

Postby richard-service » Thu Jul 29, 2021 9:27 am

Hi
Call IE function code below:

Code: Select all  Expand view  RUN

DEFINE WINDOW oWnd FROM 0,0 TO 0,0 TITLE "特定地區旅遊及接觸史查詢"

            oIE:=CreateObject("InternetExplorer.Application")            
             
            IF oIE<>Nil
                oIE:Visible :=.T.
                oIE:TheaterMode:=.T.
                oIE:AddressBar:=.T.
                oIE:ToolBar   :=.T.
                oIE:FullScreen=.F.
                oIE:Silent    =.T.
                oIE:Navigate2(cHOSTIP)
                Do While oIE:Busy
                   SysWait(1)
                   SysRefresh()
                   Loop
                Enddo
                hWnd:=oIE:hWnd
                ShowWindow(hWnd, SW_MAXIMIZE )
                BringWindowToTop(hWnd)
             ENDIF
      ACTIVATE WINDOW oWnd ICONIZED ON INIT BuildTimer()

 
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Win10 IE problem?

Postby Otto » Thu Jul 29, 2021 10:33 am

Richard,
I am not certain, but is InternetExplorer the same as Shell.Explorer?

I use it like this:

oActiveX = TActiveX():New( oDlg, "Shell.Explorer.2",10,10,400,200 )


Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Win10 IE problem?

Postby richard-service » Fri Jul 30, 2021 2:35 am

Otto wrote:Richard,
I am not certain, but is InternetExplorer the same as Shell.Explorer?

I use it like this:

oActiveX = TActiveX():New( oDlg, "Shell.Explorer.2",10,10,400,200 )


Best regards,
Otto


Hi, Otto,

Thanks for your help. But it's not work and appear message below:

DOCUMENT: No exported method
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Win10 IE problem?

Postby Otto » Fri Jul 30, 2021 10:06 am

Hello Richard,

I tested with the attached code on my brand-new Surface.
I have to check allow and then all is working.

Interesting:
I also tested with
oIE := TActiveX():New( NIL, "Shell.Explorer.2",10,10,600,400 )

In this case, it seems that scripts are blocked. I see the web page but CSS and JS do not work.

Code: Select all  Expand view  RUN

#include "FiveWin.ch"

function main()
local oDlg
local   oIE
local cHOSTIP := "https://www.modharbour.club"
 
 
  DEFINE WINDOW oWnd FROM 0,0 TO 0,0 TITLE "????????????"

  //     oIE := TActiveX():New( NIL, "Shell.Explorer.2",10,10,600,400 )
         
         
     oIE:=CreateObject("InternetExplorer.Application")              // OK
             
            IF oIE<>Nil
                oIE:Visible :=.T.
                oIE:TheaterMode:=.T.
                oIE:AddressBar:=.T.
                oIE:ToolBar   :=.T.
                oIE:FullScreen=.F.
                oIE:Silent    =.T.
                oIE:Navigate2(cHOSTIP)
                Do While oIE:Busy
                   SysWait(1)
                   SysRefresh()
                   Loop
                Enddo
                hWnd:=oIE:hWnd
               // ShowWindow(hWnd, SW_MAXIMIZE )
                BringWindowToTop(hWnd)
             ENDIF
      ACTIVATE WINDOW oWnd ICONIZED ON INIT msginfo("timer")
return(.T.)
 


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Win10 IE problem?

Postby Otto » Fri Jul 30, 2021 10:17 am

...

CreateObject function for “Shell.Application” vs “InternetExplorer.Application”
https://stackoverflow.com/questions/305 ... pplication
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Win10 IE problem?

Postby richard-service » Fri Jul 30, 2021 11:51 am

Otto wrote:...

CreateObject function for “Shell.Application” vs “InternetExplorer.Application”
https://stackoverflow.com/questions/305 ... pplication


Hi, Otto

I will check web data for it.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests