I have problem code inside a JHS app I am trying to write. The app will
accept user inputs of valid commands like `fd 10` and produce canvas draw
updates.

This line in jijx is producing the error below it.

   load'~Projects/tgsjhs/tgsjhs.ijs'
|syntax error
|       jev_get_tgsj_''
*** response not sent for tgsj
*** html409 Conflict


*********code is below*********
HBS=: 0 : 0
'<h2>Type in a turtle command</h2>'
'command' jhtext 'fd 10';50
'<canvas width="600" height="600" id="glcanvas"></canvas>'
)

create=: 3 : 0
'tgsj'jhr''
)

jev_get=: ev_command_enter

CSS=: 0 : 0
body{margin:10px;}
)

JS=: 0 : 0 NB. javascript
function ev_body_load(){init();} // must use JHS framework load handler
// function ev_command_enter(){jdoajax(["command"],"");}
// function ajax(ts) {jbyid("command").value=ts[0];}
)

*********code is above*********

Thank you,

-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to