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!
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!
West Wind Technologies
Making waves on the Web
from Maui
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!
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!
West Wind Technologies
Making waves on the Web
from Maui
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!
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!
West Wind Technologies
Making waves on the Web
from Maui
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!