I think you need to quote the html, either with balanced double quotes
or with a leading asterisk (which extends to the end of the wd
argument).

For example:

wd {{)n
  pc formname closeok;
  cc wv webview;
  set wv minwh 100 75;
  pshow;
  set wv html *<html><body><b>Hello World!</b></body></html>
}}

I hope this helps,

-- 
Raul

On Wed, Mar 8, 2023 at 6:11 PM Ed Gottsman <edward.j.gotts...@gmail.com> wrote:
>
> Greetings.  I’m having trouble with the Window Driver's webview control.  I 
> can load a url
>
> wd ‘ set browser url <url>’
>
> …but when I try to  load html
>
> wd ‘set browser html <html>’
>
> …I get…
>
> |<!DOCTYPE : command not found
> : wd
> |   (LF,~wd ::(''"_)'qer')    (13!:8)3
>
> Apparently wd is trying to interpret the html rather than simply passing it 
> to the webview control.  There’s some discussion of delimiters in 
> Guides/Window Driver/Command Syntax but it seems to relate to passing in 
> multiple parameters rather than (say) a single parameter with a wide variety 
> of characters that could be mistaken for delimiters.  I tried to apply it 
> anyway, without success.
>
> Is there a way to delimit a single wd parameter such that it won’t trigger 
> parsing by wd?
>
> Thank you.
>
> Ed
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to