[Jprogramming] a "Hello World" in J701 JHS
Ian Clark
earthspotty at gmail.com
Sat Jul 10 12:03:04 HKT 2010
Having a soft spot for simple-stupid examples, I've written a "Hello
World" app for J701 used via the J HTTP Server (JHS):
http://www.jsoftware.com/jwiki/System/Beta/HelloWorld
JHS, for those who don't know, uses a standard web browser as the
top-end to a user-written J app.
One such app, indeed the prime example, is a code development
environment (IDE). This is a new feature of J701. It supersedes and
obsoletes the "wd" interface of J602.
To make it all happen, the J server generates HTML with embedded
Javascript, which it sends to the web browser. It then handles
interactions with the resulting web page using AJAX.
My trivial app conveys nothing you couldn't see for yourself from a
careful study of the demos distributed with the JHS addon: jdemo.ijs
and its daughter scripts: notably jdemo4.ijs.
But writing it has satisfied me in my own mind that I now know how a
JHS application works, and how the task of building one should be
approached.
Maybe it will help others achieve my current level of understanding
quicker than it took me.
Someone tell me quickly please if I've got the wrong end of the stick.
Ian
More information about the Programming
mailing list