Hey Raul, I am certainly in no position to give any advice on web programming, but in my stumbling about I found the most useful area on investigation for JHS was to look at the demo's. Specifically demo1 and the link to demo1.ijs on the demo page show how jsubmit is used (it looks like it is one way for javascript functions and j verbs to communicate, as long as naming conventions are followed) The core javascript function are kept in JS_jhs_ and I was able to find ev_log_enter in the jijx.ijs script where JS_jhs_ is defined.
Hope this helps. Cheers, bob On 2011-03-01, at 9:20 AM, Raul Miller wrote: > So... > > Today I decided to spend a little time looking at jhs. I am starting > to get oriented, but I still have some issues. I also believe that > other people are using different tools than I am. > > I was using Chrome (control-shift-J gives me an interactive javascript > console, and a document browser and editor). And, alternating between > the javascript console and the jhs window, I was able to browse my > active session. > > However, things started breaking down when I tried to investigate this > line of code: > function jsubmit(s){jform.jdo.value=jevsentence;jform.submit();} > > After some investigation, I have decided that that must be rarely used > code, and I have moved on. But in the process, I have stumbled over > NV which for some reason points at an event handler named ev_log_enter > but I do not see any such event handler in the jijx locale, and I have > not dug in far enough to see if there is some kind of special case > treatment of this event. > > Meanwhile, I have noticed that the form requests sent by J to jhs are > missing a header. They should have 'Content-Type: > x-www-form-urlencoded'. Without that, Microsoft's Fiddler refuses to > display the form name/value pairs. My reading of > http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 is that > this is the default content type, so I think this is a fiddler bug > rather than a jhs bug, and I will try and get it fixed in Fiddler, but > the fact that no one has mentioned this issue (that I can remember) > suggests to me that other people are using different tools than I am. > > On a related issue: chrome's document browser is a bit clunky -- you > cannot copy and paste text from it. You can work around this by > editting the html of a node, and copying from there, but when I tried > that on the script block that jhs exports chrome ate my newlines > (converting the entire script into a single line comment). Clearly > this is a bug in chrome (and you can work around it by reloading the > page), but -- again -- its presence and the absence of discussion > about this kind of thing suggests other people are not using Chrome > this way. > > So... > > What tools and techniques do you all use, when working with jhs? > > Thanks, > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm