Can I open the HTMLRender window (aka Chromium engine) by passing it DATA that I have constructed in APL that is in the form of an HTML web page ?
I have it working by referencing a WWW URL on the internet.
I'd like to dynamically construct my own HTML scripts inside the APL workspace ...
and pass them to HTMLRender.
Also, I'd like to RECEIVE BACK data from the Chromium browser DOM.
e.g. I create a JavaScript variable "NAME" ... and need a way to request that value to be returned from the Chromium engine.
As well as passing a new requests into the Chromium engine.
Thoughts?
This is the little browser prototype I have in hand and works great as simple browser:
I can invoke it via: ∆WEBBROWSER &'google.com'
Code: Select all
∆WEBBROWSER URL;f1;R
⍝ Right argument is target URL (e.g. 'APLAPPS.com')
⍝ Establishes a Windows window session with Dyalog's Chromium DLL
'f1'⎕WC'Form' 'Test Dyalog APL Web Browser for Windows'('Coord' 'ScaledPixel')('Size' 820 1200)
'f1.Address'⎕WC'Edit' 'Address'('Posn' 6 8)('Size' 18 770)
'f1.Go'⎕WC'Button' 'Go'('Posn' 6 775)('Size' 18 25)
f1.Go.Event←('MouseUp' 'SETURL')
f1.Address.Text←URL
'f1.Browse'⎕WC'HTMLRenderer'('ASChild' 1)('Posn' 20 10)('Size' 800 1190)
UP:
f1.Browse.URL←f1.Address.Text
R←⎕DQ'f1'
→(0=⍴R)/0
→UP
Thanks in advance.
//W