Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
    Bookmark Topic Watch Topic
  • New Topic

Events in JSP are not supported in Mozilla  RSS feed

Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator

My problem is i am using events for invalidating the session. In Mozilla it is not able to recognize events.

I am giving the code snipet i am using please see that and help me in that regrard

// JS Part

function unLoadFnc(evt)
var isMozilla = navigator.userAgent.indexOf('Mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) less than 5;
var isIE = navigator.userAgent.indexOf('MSIE') != -1;

var e = (window.event) ? window.event : evt;
var ie5 = true;
if(isMozilla == "Mozilla"){
ie5 = true;

var offsetx=ie5? window.event.clientX : e.clientX
var offsety=ie5? window.event.clientY : e.clientY


// Jsp calling part

body class="bg_white" onunload="unLoadFnc(event)"

In IE i am getting the offsetX,offsetY variabled based on the position of the hyperlink i am clicking where as in Mozilla or Opera i am getting them as undefined

Thanks and Regards
Author and ninkuma
Posts: 66424
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any conversation in your original post, which has been moved to the approriate forum. Do not start new topics in the middle of a conversation. Thanks.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!