Win a copy of Penetration Testing Basics this week in the Security forum!
    Bookmark Topic Watch Topic
  • New Topic

Events in JSP are not supported in Mozilla

Pooja Chetty
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
Bear Bibeault
Author and ninkuma
Posts: 65272
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