I put your html fragment into a script and there it works well
------------------- test4
coclass'test4'
coinsert'jhs'
HBS=: 0 : 0
jhh1'hello world'
jhbr
text
)
create=: 3 : '''hello''jhr'''''
jev_get=: create
text=: 0 : 0
<html>
<head>
<title>The Magic of J</title>
</head>
<body>
<h2>How to use Browser <font face=monospace>from J</font> ...</h2>
<p>Labs<br>
Demos<br>
Tutorials<br>
Forums<br>
Games</p>
<p>This page is (C) Copyright 2008-2037 Björn Helgason. All rights
reserved.</p>
<p>Portions of this program use J Utils -- J software.<br/>
(C) Copyright ISI :
<a target=_blank href="http://jsoftware.com/zippy.htm">
http://jsoftware.com/zippy.htm</a></p>
<p>Provided AS IS. Guaranteed for demos.</p>
<script type="text/javascript"
src="http://www.oil-price.net/TABLE2/gen.php?lang=en">
</script>
<noscript> To get the WTI <a href="
http://www.oil-price.net/dashboard.php?lang=en#TABLE2"> oil price</a>,
please enable Javascript.
</noscript>
<table>
<tr><td>0</td><td>1</td></tr>
<tr><td>2</td><td>3</td></tr>
</table></body></html>
)
2011/3/9 Raul Miller <[email protected]>
> Let us say that I have a J sentence which generates an html fragment:
>
> do_jhs_'jhtablea,jhtablez,~jhtr"1":&.>i.2 2'
> <table>
> <tr><td>0</td><td>1</td></tr>
> <tr><td>2</td><td>3</td></tr>
> </table>
>
> Next, let's say I want to see what this looks like:
> do_jhs_'htmlresponse jhtablea,jhtablez,~jhtr"1":&.>i.2 2'
>
> Problem: when I do this, l temporarily lose my ability to enter J
> sentences, and I lose the sentence I typed from my displayed history
> (though not from my command recall history).
>
> Is there a right way to emit an html fragment into my jhs session? (I
> thought I remembered seeing something like this, but I do not remember
> how to find it.)
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: [email protected]
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm