Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Javascript + Visual FoxPro
Message
From
28/01/2022 14:53:55
 
 
To
28/01/2022 14:39:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01683339
Message ID:
01683360
Views:
50
IIRC there are/were libraries trying to mimick WebBrowser / IE interface while connecting to Chrome -
low 4 figures IIRC for single dev. Never checked them out, if coming with source and working as test within 2H probably good enough compromise to save own nerves and hair. Otherwise I'd hitch my wagon to WebView2, as most DotNet UI needing HTML/JS apps will find bugs much faster with larger user base, unless Selenium is already used by that customer.

keep us posted of your efforts, results & solutions...
thomas

>Thank you Thomas.
>
>>Both ways are certainly workable, but AFAIK support only older Javascript - something like 6 years or a dog live...
>>Going for V8 Javascript probably is more future oriented - there should be 4 ways to accomplish this:
>>- Dotnet with WebView2
>>- DotNet with CefSharp
>>- vfp with some C glue with CefSharp (Christoph / Foxpert has already implemented basic connection)
>>- Selenium with its Choice of browsers but even more awkward interface (needing another connection layer)
>>
>>Of course ease of use of older COM solutions is much better - certainly point in favor of your solutions
>>
>>my 0.02
>>thomas
>>
>>>Are two ways:
>>>1) use InternetExplorer.Application and html with javascript
>>>2) use MSScriptControl.ScriptControl.1 and run javascript code (https://www.foxite.com/archives/run-javascript-from-vfp-0000242619.htm)
>>>
>>>MartinaJ
>>>
>>>>I would like to be able to put Javascript code in my FoxPro App.
>>>>
>>>>I have an application available as a remote desktop app. I would like to be able to execute the javascript code when I launch my Foxpro app.
>>>>
>>>>The javascript code would get the size of the screen (for example iPhone, iPad or desktop). Then it could create a file containing the needed information.
>>>>
>>>>After that the Foxpro app. takes control and the dimension of the screen would be defined based on the content of the javascript created file.
>>>>
>>>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform