• Resolved arr0w

    (@arr0w)


    Hi!

    I’m using this plugin on a page with several iframes and whenever the mouse is used within an iframe, my specified countown starts and I get locked out after x minutes.
    Is it possible to somehow get mouseclicks and keypresses from an iframe?

    Thanks

    /Jacob

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Deepen

    (@j_3rk)

    Hi Jacob,

    Will check this and let you know on it.

    Thanks

    Thread Starter arr0w

    (@arr0w)

    Hi Deepen

    Have got time to look into this?

    /Jacob

    Plugin Author Deepen

    (@j_3rk)

    Hello Jacob,

    Do you mean stop logout counter when you hover inside an iframe ? because only having iframes in a page does not seem to stop the behaviour of the plugin and seems to work fine here. Thanks.

    Thread Starter arr0w

    (@arr0w)

    Hi Deepen

    Could you please try this:
    – Set the timeout to 1 minuter for your user.
    – Create an iframe to af external website – eg. google.com
    – Login as the user, select the iframe and use it without the mouse leaving until you see the “Last active” message in your log.

    Can you recreate this?

    I’m just asking if its possible to track mouse-movement and keypresses inside an iframe, because the plugin thinks I am inactive whenever an iframe is in use…

    Thanks

    /Jacob

    Plugin Author Deepen

    (@j_3rk)

    Hi Jacob,

    I saw the problem. Seems when you are in iframe view jquery is not tracking movements. Checking on this for solutions. Thanks.

    Plugin Author Deepen

    (@j_3rk)

    Hi Jacob,

    Sorry for late reply and testing. Here’s a quick solution and only possible solution. If you know code please try pasting below code in inactive-logout/assets/js/inactive-logout.js. Put below after line 65 i.e inside “POST” function.

    var elem = document.activeElement;
    //IF ACTIVE ELEMENT is clicked inside an iframe then track this following and reset timer again. So, do not logout user from here.
    if(elem && elem.tagName == ‘IFRAME’){
    ina__resetTimer();
    console.log(“You are browsing inside an IFRAME!”);
    } else {
    console.log(“Last Active on: ” + Date.now());
    }

    Plugin Author Deepen

    (@j_3rk)

    Please note that this will only work when you have clicked inside an iframe and this is the only solution. Please try it out in yours and lemme know if it works. I’ll push this into next update.

    Thanks

    Thread Starter arr0w

    (@arr0w)

    Hello Deepen

    I have tested your suggestion and it works very well.
    It is not really what I intended because the user can be inactive after clicking inside an iframe…

    But thanks anyways

    /Jacob

    Plugin Author Deepen

    (@j_3rk)

    Hi Jacob,

    I don’t know whether exactly it points to your fix but i have added iframe to latest version. So, closing this thread. Thanks.

    Please open up another one if you have an issue.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘iframe support?’ is closed to new replies.