Brian,
I've not followed your turtle project at all.
I would appreciate a mile-high overview of what it is you want to do.
I imagine something like:
1. user types in 1 or more commands in a textbox in the browser
2. users presses enter
3. browser sends ajax request to J with the textbox contents
4. J does calculations that result in a number of 'steps' that
describe the required draws
5. J sends back 1 or more 'steps'
6. Javascript ajax handler loops on each step:
draws update as defined by step
delays so user sees movement for that step
continues loop until all steps are done
7. back to number 1
Am I missing something, or is this roughly what you want?
I think it should be fairly easy to modify the current jgldemo to
have the above pattern. That is to take a textbox argument (perhaps a
series of colors) that would then change the drawing with each new
color with a delay between each step. Or are you trying to do
something completely different?
On Tue, Apr 29, 2014 at 3:06 PM, Brian Schott <[email protected]> wrote:
> Raul,
>
> Was I correct that your warning was meant to dissuade me from any practical
> way of sending multiple (fake) messages directly between j and javascript?
>
> @gman said "There's lots of ways to make it work but it would require a
> MASSIVE RE-WRITE of the code or else it would require something that
> records the gl calls and plays them back later." That sounds very daunting
> to me.
>
> So, it is not very doable to me.
>
>
>
> On Tue, Apr 29, 2014 at 2:54 PM, Raul Miller <[email protected]> wrote:
>
>> gman's point was that you would need major restructuring.
>>
>> That's doable.
>>
>> And, since you wrote the code yourself, and are interested in education, is
>> also probably a good idea.
>>
>> Thanks,
>>
>> --
>> Raul
>>
>>
>>
> Ta,
>
> --
> (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