I had a simple use case under Seaside. I wanted to send the keyboard codes pressed in a browser to my Seaside Smalltalk server ….
The problem with those keycodes ? Well with lots of tries and errors I found Smalltalk code giving me some information in Smalltalk:
renderContentOn: html html script: (html jQuery this onKeyPress: (((html jQuery ajax callback: [ :keyInfo | keyInfo inspect ] value: (Array with: (JSStream on: 'arguments.which') with: (JSStream on: 'arguments.keyCode')) ) ) asFunction: (Array with: 'e')) ).