My jhs app, which is patterned after demo1, produces the following Alert when launched.
SyntaxError: invalid or unexpected token ''; z= '' (Either of those ''s could be "s, I can't tell). But when I click on the OK button I see an h1 title on one line and then on the next line I see a button named Joan, a 0, and a button named Brian When I click on either button I get one of the following Alerts. not defined function ev_rollJoan_click() not defined function ev_rollBrian_click() Attached is the script. Any ideas? -- (B=)
coclass'rps' coinsert'jhs' HBS=: 0 : 0 jhh1'Rock Paper Scissors' ('rollJoan' jhb'Joan') text 'rollBrian' jhb'Brian' ) SCORE=: 0 text=: 0 : 0 <span id="score" class="mark"><RESULT></span> ) create=: 3 : 0 'rps'jhr'RESULT';y NB. <RESULT> tag replaced by y ) jev_get=: create ev_rollJoan_click=: 3 : 'create |SCORE =: SCORE - 1' ev_rollBrian_click=: 3 : 'create |SCORE =: SCORE + 1' create SCORE CSS=: 0 :0 span.mark{color:green;} ) JS=: 0 : 0 NB. javascript function ev_rollJoan_click(){jsubmit();} )
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm