RE: Mouse tracking with Tapestry

2017-04-15 Thread Svein-Erik Løken
Maybe not exactly what you are looking for, but I have been using my tapestryutil.js for some years with luck 😊 https://github.com/sveine/tapestry-multi-module-demo/blob/master/core/src/main/resources/META-INF/modules/util/tapestryutil.js A little demo: https://github.com/sveine/tapestry-multi-m

Re: Mouse tracking with Tapestry

2017-04-11 Thread Daniel Jue
Glad to hear you got everything working! On Tue, Apr 11, 2017 at 5:09 AM, Phyambre wrote: > Ok, > > So finally I could transform my JS libraries into modules and now > everything is super-modular. > > I also replaced mousemove by mouseover because it is less demanding. > > When Tapestry 5.4.2 is

Re: Mouse tracking with Tapestry

2017-04-11 Thread Phyambre
Ok, So finally I could transform my JS libraries into modules and now everything is super-modular. I also replaced mousemove by mouseover because it is less demanding. When Tapestry 5.4.2 is released and "Invoking server-side event handler methods from JavaScript" is available, I will replace th

Re: Mouse tracking with Tapestry

2017-04-10 Thread Thiago H. de Paula Figueiredo
On Sat, Apr 8, 2017 at 11:13 AM, Phyambre wrote: > Hi Thiago, > Hi! So if I move the code of the task from onActivate() to setupRender() as > Geoff suggested, I will not have the task on onSubmit() anymore, so I > cannot check whether the user finished before the deadline. A solution > is getti

Re: Mouse tracking with Tapestry

2017-04-08 Thread Phyambre
Hi Thiago, Thanks for your answer, In my application each user (identified by a userId in the session) is assigned a task. Each task has stages which consist of reading a text and answering a quiz about it. The text and quiz that you are assigned in each stage is not the same for everybody, but r

Re: Mouse tracking with Tapestry

2017-04-07 Thread Thiago H. de Paula Figueiredo
On Fri, Apr 7, 2017 at 1:12 PM, Phyambre wrote: > Hi Thiago, > Hi! > Thanks for your email. > > 1) I am not using form submissions for that. I am using input hidden > fields as temporary variables because the input hidden seem to be > visible from zone-updater.js while the javascript library (

Re: Mouse tracking with Tapestry

2017-04-07 Thread Phyambre
Hi Thiago, Thanks for your email. 1) I am not using form submissions for that. I am using input hidden fields as temporary variables because the input hidden seem to be visible from zone-updater.js while the javascript library (not module) I am using for the mouse tracking is not, and I don't kno

Re: Mouse tracking with Tapestry

2017-04-07 Thread Thiago H. de Paula Figueiredo
I suggest you to not use form submissions for this. Also, take a look at https://tapestry.apache.org/ajax-and-zones.html, session Invoking server-side event handler methods from JavaScript, which shows how to easily call server-side event handlers from JavaScript from Tapestry 5.4.2 (which should b

Re: Mouse tracking with Tapestry

2017-04-07 Thread Phyambre
Hi Daniel, I checked your project. My JavaScript libraries are similar to yours, also fire and forget and also transparent to the server. My problem is when I manage the AJAX events in Tapestry. Regards, Phy El 07/04/17 a las 15:29, Daniel Jue escribió: > Hi, I'm not sure this is what you nee

Re: Mouse tracking with Tapestry

2017-04-07 Thread Phyambre
Ah, sorry, I have to take it back, because if I move code from onActivate() to setupRender(), then onSubmit() crashes. The only alternative is that onTrack() would not execute onActivate(), but it seems that is impossible. I will now check Daniel's solution. Regards, Phy El 07/04/17 a las 17:4

Re: Mouse tracking with Tapestry

2017-04-07 Thread Phyambre
Hi Geoff, Thanks, it helped a lot. I actually had some problems because I have several texts to show, so the onActivate() was deciding the id of the text shown on the current screen. The onTrack() later needs to annotate the tracking values together with the text id. But then I moved all the co

Re: Mouse tracking with Tapestry

2017-04-06 Thread Daniel Jue
Hi, I'm not sure this is what you need, but here is a library we used during a DARPA program to collect UI statistics including hovering, etc: https://github.com/draperlaboratory/User-ALE On the browser side it's fire and forget, and there is a separate server set up to collect the stats informati

Re: Mouse tracking with Tapestry

2017-04-06 Thread JumpStart
I’ll answer it this way: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/onactivateandonpassivate/3 Hope this helps, Geoff > On 7 Apr 2017, at 2:07 PM, Phyambre w