I think I see the problem. If you really want multiple calls to jhs then what you need to do with entered commands is have them add themselves to a queue and then have each of them send the first entry in the queue to jhs (and have the handler then send the next entry on to jhs). But that strikes me as the wrong approach.
Instead, I would imagine you should send the whole line of commands to jhs and let it handle them all together. Put differently, I think you need to start thinking in terms of data rather than commands. That said, here's a little experiment which I think should work in safari: Open up the developer console (in chrome, I can do this by right click "Inspect element" and then selecting the "Console" tab). Then, at the prompt type 1+1. If you get 2 you are in the right place. Next, try entering console.log(3). That should display a line with 3 on it (and give you an "undefined' result). Next, try editing your code - maybe put console.log(gl) right after the line that defines gl, and reload the page. You should see some representation of the gl object displayed in the console. Hopefully that will be enough to get you started? I'll take a look at the code you linked in your other message. Thanks, -- Raul On Sat, Mar 22, 2014 at 1:26 PM, Brian Schott <[email protected]>wrote: > J sees 'fd 10` for 1 command, or it can see `(5 repeats fd) 10` for > "multiple" commands. If there were not the problem of communicating between > jhs and js, that is if only j were involved, then the paint verb would be > called 5 separate times by something like opengl. But now the first `fd 10` > command calls jhs via jhrajax and then the rest of the `fd 10`'s continue > to be processed by jhs, but presumably their jhrajax's are ignored because > there is no separate request for their responses. > > I see Raul has mentioned producing log's but I don't know how. > > Thanks, > > > On Sat, Mar 22, 2014 at 12:47 PM, Pascal Jasmin <[email protected] > >wrote: > > > in step 2, can you tell us what J sees as the y argument for 1 command > and > > 2+ commands? > > > > it sounds like the output of that function the full sequence of moves? > > (using cached previous moves)? > > > > > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
