manage the events of mouse and selection on iframe
I have a big problem and I don't know if it can be resolved or not. I want to manage the behavior of a user in the iframe (when he move mouse or click or select a text from this iframe) but the problem that I must do some treatment in my the session of the user so I must manage the mouse events via servlets but it seems impossible . Know i'm trying to use JQuery but I'm not sure if i can get the session from the servlet and also transmit it to the servlet. please have you any idea about this problem . this is my page JSP I just tried here to test the click of the mouse but it doesn't work. And what a bout call the session into JQuery code.
-
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head > <meta charset="utf-8" /> <title>FUZZY SEARCH ENGINE</title> <link type="text/css" rel="stylesheet" href="inc/style.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $('#myframe').bind('click', function(event) {alert("clicked"); }); </script> </head> <body id="page2"> <div style="margin-top:90px"> <span style="color:#FFFFFF; font-size:30px; letter-spacing:10px; margin-left:555px;">The fuzzy search engine</span> <br> <form method="post" action="Open"> <input Name="Button_save" type="submit" value="" id="save" > <input Name="Button_imprime" type="submit" value="" id="imprime"> <input Name="Button_back" type="submit" id="back" value=""> </form> </div> <div> <iframe style="width: 1331px; height:600px;" src="${url}" id="myframe"></iframe> </div> </body> </html>