Joe, Yes, now I see how you created LFs and TABs in ev_calc_click and then used them in ev_calc_click_ajax(ts). I'll have to study js some more to be able to steal/rework your ev_calc_click_ajax(ts) function [grin].
I guess the second question might be ridiculous and unnecessary. Each time a fd or yw is executed, jhrajax in the paint verb will send a result to the js. Thanks so much, On Tue, Feb 25, 2014 at 11:43 AM, Joe Bogner <[email protected]> wrote: > Hi Brian, > > On Tue, Feb 25, 2014 at 11:22 AM, Brian Schott <[email protected] > >wrote: > > > I cannot think of ways to > > supply such arrays of varying number of rows to a draw() type function. > > That is my first question, how to supply multiple move or turns, > preferably > > without loops, but not necessarily. > > > > > If I understand correctly, I tackled a similar problem with my web > spreadsheet example. I passed a LF delimited string of data from javascript > to J with the ajax function. On the J side, I did a LF cut data to have a > boxed array of cells. Could you do the same thing to create a boxed array > of moves? > > > > For example, inside fdyw, > > which is a j verb containing first fd and then yw, but the only event > > triggered is the text change event, not the fd nor the yw. So my second > > question is how to achieve this in JHS? > > > > I'm not really understanding the question well enough to help. Can you > restate it perhaps more generally? I'm understanding it as something along > the lines of "how do I trigger an event on the client side from the J > side?" > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
