I have an interest in this too and would appreciate being included in any discussion. I can contribute a script that I created a bit over 10 years ago for a data collection project. Looking at it, I can see that it was a few years ahead of it's time because it is clearly an "internet of things" app.

The "things" were spirometers aimed at being used by asthma patients to let their doctors monitor their condition. I thought it was going to be a growing business, but we all know how such aspirations (pun intended) go... The dusty script I just looked at gathered the information and added it to a file which could then be queried by the end user. A bit different than the tighter interaction that started this thread.

Anyway, the script is unusually well (for me) commented and has test scripts etc. included - of course, reading j code is challenging .... but I would be happy to send the script to anyone interested. The main function (named listener) is only 63 lines, including some blank ones for easier reading. I think it should run in current j if I replace references to y. and x. I'll poke at it some and see if that is true.

I do make frequent use of j cgi scripts, and keep thinking that more direct interaction would be especially interesting in the new world of "servers" (e.g. Rasberry Pi)

If included in an exo-email address list, I will try to keep comments brief ;-)



On 2013/08/24 09:36 , Devon McCormick wrote:
I'm very interested in this as well, especially the case Joe mentions: I'd
like to provide a web-based interface to arbitrary J code in a seamless
fashion (meaning having both input and output on the same form).

I've played around with the JHS example, especially "jdemo9" as this has a
useful, multi-pane format.

I've also had some good results generating Javascript from J but this is
still driven from the J session and is not interactive in the browser.


On Sat, Aug 24, 2013 at 9:00 AM, Björn Helgason <[email protected]> wrote:

unfortunately the examples and demos in this area are very few

I guess a lot of people are interested because this is an exciting field.
On Aug 23, 2013 5:00 PM, "Joe Bogner" <[email protected]> wrote:

I'm having trouble locating recent examples of web programming in J. I
have
looked through the wiki examples of scgi, cgi and even the JWebServer. My
ideal solution would run directly from J without apache/iis/nginx
installed
as that's not always possible.

I'd like to consider J as an alternative for modeling problems that I
solve
in R. I have built several web apps in R using the Rook package to allow
non programmers to interact with models. A common case is to have a few
text boxes to change inputs for models and a button to retrieve the
results
with the new parameters -- such as outputting a HTML table

Are there any complete examples that run in recent versions of J? I'm
relatively new to J. I have worked through some of the labs. I'm not
ready
to tackle a web server from scratch using socket programming. I have done
socket programming in other languages, yet I'm hoping for more of a
jumpstart. I've skimmed through the JHS source and could probably piece
something together from there if nothing else exists.


Thanks
Joe
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to