Web Connection
IE10 OLE troubles
Gravatar is a globally recognized avatar based on your email address. IE10 OLE troubles
  n/a
  All
  May 28, 2015 @ 01:43am
I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!

Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  Rick Strahl
  Kudis
  May 28, 2015 @ 09:03am
This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  n/a
  Rick Strahl
  May 31, 2015 @ 08:58pm
Thanks, Rick.

I'm waiting for page loading with this construction

Do While ie.ReadyState<>4
DoEvents
EndDo

My code is normally works when IE compatibility settings turned on and didn't when turned off.
Can you tell me another OLE (API) which may to open explorer, read content, filling fields and clicking on the buttons and script links whithout using compatibility settings?



This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!



Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  Rick Strahl
  Kudis
  Jun 1, 2015 @ 07:52am

If you have problems with IE itself (ie. compatibility settings) there's nothing you can do from code to change that.

My recommendation is - if you need to do this inside of an application don't use the IE Application Object but rather use an internal Web Browser control. More control and that and there is much less of the crazy OS restrictions.


+++ Rick ---



Thanks, Rick.

I'm waiting for page loading with this construction

Do While ie.ReadyState<>4
DoEvents
EndDo

My code is normally works when IE compatibility settings turned on and didn't when turned off.
Can you tell me another OLE (API) which may to open explorer, read content, filling fields and clicking on the buttons and script links whithout using compatibility settings?



This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  n/a
  Rick Strahl
  Jun 4, 2015 @ 06:00pm
Are you talking about _webview.vcx?
But I didn't find how to click buttons and filling fields by this library.
Do You know where to find examples of this?

If you have problems with IE itself (ie. compatibility settings) there's nothing you can do from code to change that.

My recommendation is - if you need to do this inside of an application don't use the IE Application Object but rather use an internal Web Browser control. More control and that and there is much less of the crazy OS restrictions.


+++ Rick ---



Thanks, Rick.

I'm waiting for page loading with this construction

Do While ie.ReadyState<>4
DoEvents
EndDo

My code is normally works when IE compatibility settings turned on and didn't when turned off.
Can you tell me another OLE (API) which may to open explorer, read content, filling fields and clicking on the buttons and script links whithout using compatibility settings?



This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!






Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  Rick Strahl
  Kudis
  Jun 5, 2015 @ 08:14am

There's no need to use the _WebView control - it doesn't do anything useful really. Just use the raw ActiveX control.

You can use this code in Init():

this.oBrowser.Silent = .T.
this.obrowser.Navigate2(FULLPATH("test.html")) && Errors ignored


+++ Rick ----


Are you talking about _webview.vcx?
But I didn't find how to click buttons and filling fields by this library.
Do You know where to find examples of this?

If you have problems with IE itself (ie. compatibility settings) there's nothing you can do from code to change that.

My recommendation is - if you need to do this inside of an application don't use the IE Application Object but rather use an internal Web Browser control. More control and that and there is much less of the crazy OS restrictions.


+++ Rick ---



Thanks, Rick.

I'm waiting for page loading with this construction

Do While ie.ReadyState<>4
DoEvents
EndDo

My code is normally works when IE compatibility settings turned on and didn't when turned off.
Can you tell me another OLE (API) which may to open explorer, read content, filling fields and clicking on the buttons and script links whithout using compatibility settings?



This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!









Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: IE10 OLE troubles
  n/a
  Rick Strahl
  Jun 8, 2015 @ 07:54am
Rick, tell me, can I open browser using CREATEOBJECT("Wscript.Shell") and then click some button on webpage, or do the same with CREATEOBJECT('HYPERLINK')?
You are very, very help, if prompt alternative. I stopped the project, which I have created in 2 years. Now I have two ways: to rewrite the whole project in Python or find a way to press the button in IE.

Please Help!

If you have problems with IE itself (ie. compatibility settings) there's nothing you can do from code to change that.

My recommendation is - if you need to do this inside of an application don't use the IE Application Object but rather use an internal Web Browser control. More control and that and there is much less of the crazy OS restrictions.


+++ Rick ---



Thanks, Rick.

I'm waiting for page loading with this construction

Do While ie.ReadyState<>4
DoEvents
EndDo

My code is normally works when IE compatibility settings turned on and didn't when turned off.
Can you tell me another OLE (API) which may to open explorer, read content, filling fields and clicking on the buttons and script links whithout using compatibility settings?



This doesn't work because you have to wait for the document to load before you can make modifications to it. If you run this code at the command window it'll probably work (because you slowly type or paste each command) but if you run it in a PRG it'll go too fast and the document is not loaded when you start accessing the document.

You have to do something like this

DO WHILE loIE.ReadyState # 4
Wait Window "" Timeout 0.1
ENDDO

to wait for the document to load...

+++ Rick ---


I have problems with Internet Explorer API.
Earlier I used to connect, authorize, and press the button on the site using

ie = CREATEOBJECT("InternetExplorer.Application")
ie.navigate('site')
ie.document.all("login").value = login
ie.document.all("password").value = password
ie.document.all("auth").click

now this site didn't support Internet Explorer or, rather, didn't support compatibility settings of IE.

when compatibility settings turned on I can authorize using this way, but can't click scripts (even manually) after,
when compatibility settings off I cant authorize and manually click.

Tell me, please, another way to open explorer, read content, filling fields and clicking on the buttons and script links?

Thanks!






© 1996-2024