Much cleaner than my earlier suggestion.

Nice!

Thanks,

-- 
Raul



On Mon, Mar 17, 2014 at 9:13 PM, Joe Bogner <[email protected]> wrote:

> On Mon, Mar 17, 2014 at 12:51 PM, Brian Schott <[email protected]>
> wrote:
>
> Hi Brian - I tried out the demo and it looks like a fun way to play
> with webgl. I am looking forward to seeing where it goes
>
> > For example is there a way to ignore the arrow key that is used in the
> > graphic while the focus is in the text field?
> >
>
> The simplest way to handle this is to add a keydown handler to the
> command (textbox) that prevents it from bubbling up to the document
> keydown handler:
>
> In the init() function, right after:
>
>        document.addEventListener("keydown", doKey, false);
>
>
> Add this:
>
>         document.getElementById("command").addEventListener("keydown",
> function(evt) {
>         evt.stopImmediatePropagation();
>         }, false);
>
>
> > (3) Does it make sense to send the whole history of paths each time the
> > system is updated by the user, or is there some way to save the history
> in
> > javascript or html, for example?
> >
> >
>
> Yes, I didn't spend the time to modify the example, but you can
> certainly just push the single row to a javascript array
>
> Something like:
>
> var alldata=[]
> function ev_command_enter_ajax(row)
> alldata.push(row);
> for(var i = 0; i < alldata.length; i++) {
> ts = alldata[i]
>
> //draw logic for a single row
> }
>
> Hope this helps
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to