Have you thought about having the J code construct the Javascript on the
fly in the format suggested by the seemngly-knowledgable poster? I.e.
building the various steps of the format
function step1() {
ctx.fillStyle = "blue";
ctx.fillRect(10,10,20,20);}
Then following that with the calls to the steps?
On Tue, Apr 29, 2014 at 2:41 PM, Brian Schott <[email protected]>wrote:
> I am sending you directly the more up to date files in a separate email.
>
> I am doubtful about fixing the javascript code alone because of the very
> convincing and long answer given by @gman.
>
> Thanks for the heads up regarding the bad link. I have fixed that.
>
> My imagination of a solution to this problem via J is to have function
> ev_command_enter_ajax(elements) send a fake event back to j. That fake
> event would contain a revised version of its argument "elements" that could
> be sent right back to javascript after the desired delay. The revision
> would behead the list of movement items and decrease the value of NUMBER
> embedded in it, before sending off the fake event. But the problem with
> that approach may be exactly what you are warning me about regarding
> browser security issues? I had not known about that.
>
>
> On Tue, Apr 29, 2014 at 1:56 PM, Raul Miller <[email protected]>
> wrote:
>
> >
> > A big issue with jhs is browser security. The browser has to deal with
> > every advertiser in the world wanting to get control of it. So web
> browsers
> > are somewhat selective about what they will retrieve. More specifically:
> it
> > will not accept anything from the web server except in response to a
> > request to that server. And that's something you are going to need to be
> > conscious of here.
> >
> > Thanks,
> >
> > --
> > Raul
> >
> >
> >
> >
>
> --
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm