a) yes, you can open any web page
b) What kind of item do you need to find ? Please explain it or show an example
c) You can click it, using javascript. Why not ? :-)
oDlg:oClient:=TActiveX():New(oDlg, "Shell.Explorer.2", 0, 0, oDlg:nWidth, oDlg:nHeight)
oDlg:oClient:Do("Navigate2", "https://www.website/")
do while .T.
oDk:=oDlg:oClient:GetProp("Document")
if valtype(oDk)="U".or.oDk:ReadyState!="complete"
WaitMessage()
SysRefresh()
else
lOk:=.T.
exit
endif
enddo
if lOk
itm:=oDk:getElementById('auto_cdi')
itm:Click()
endif
Dear Yuri,
You can execute any javascript code from your FWH app, so you can use:
oWebView:Eval( "getElementById('auto_cdi').click()" )
or
oWebView:Eval( "document.getElementById('auto_cdi').click()" )
That string is javascript code to be executed by webview
Good. If in the method :Eval I need to write some commands ?
pure javascript code only
In the :Eval() method, I can execute JS ?
:Eval("<script>..</script>")
> In the :Eval() method, I can execute JS ?
Yes!
> :Eval("<script>..</script>")
No need for "<script>" and "</script>". Just use there the javascript code
WebView is loaded as a modal window and until it is closed, further operation of the program is impossible. Is it possible to open a WebView as a non-modal window ?
Dear Yuri,
Yes, place it on a non modal dialog box or a child window
Dear Yuri,
Yes, place it on a non modal dialog box or a child window
Thank you, Antonio!
I am creating an oWebview object:=TWebview():New and specify for it the parent POPUP dialog box oDlg - oWebview:SetParent(oDlg).
Whether the webview will be resized automatically when the parent window is resized ?
Is it possible to refer to the oWebview object as a control (a la oDlg:aControls[1] or oDlg:oWebview) ?