If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

mixes java with javascript to manage the evenements into iframe

I have a big problem and I do not know if it can be resolved or not. I want to manage the behavior of a user in the iframe (when he moves the mouse or click on or select a text from this iframe) but the problem I have to do a treatment session to the user, so I have to handle mouse events via servlets, but it seems impossible. Now I'm trying to use Javascript but I'm not sure if I can get the servlet session and also transmit to the servlet. please get an idea about this problem. This is my JSP page I just tried here to test the selection of the text but it does not work. And what about calling the session in JavaScript if it is possible.

this piece of code will detect the text selected by the user in the iframe, I tried thousands of codes with nothing.