Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Control Script
Message
From
03/11/2017 00:54:41
 
 
To
28/10/2017 11:34:37
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01655166
Message ID:
01655381
Views:
62
It is not that straightforward, InvokeScript convenience method for .Net, it is not exposed when IE ActiveX is used in Foxpro.
something like
oBrowser.Navigate("my_html_file_with_js.html" )
oBrowser.Document.parentWindow.my_js_function()
or
oBrowser.Document.Script.my_js_function()
is not working anymore.
It seemed to work in 2008 :)
https://weblog.west-wind.com/posts/2008/sep/27/calling-javascript-functions-in-the-web-browser-control


>Yes, nearly identical, as IE is activeX. Did a lot of that last century when IE was dominant, but today more and more devs want to escape IE problems. Also I found newer versions of IE to be less stable as activeX components than in IE4-IE6 times, but that might be a misperception as back then I spent much more time roboting WebBrowser and InternetExplorer.Application.
>
>Unless your need is a short time temp solution, implement with different tool set.
>
>>Can I do something similar to Windows Forms and its Web Browser Control in Foxpro form with its Internet Explorer control.
>>C# line of code
>>
>>  webBrowser1.Document.InvokeScript("openPdfAsBase64", new[] { asBase64 });
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform