0

My application has the session timeout, the application goes to the login page after 15 mins of inactive. The problem i am facing is when the user opened the Mobiscroll date picker and remain in the same page for the 15 mins, the Session timeout alert shows, but the mobiscroll date picker remain in the login page also.

Is there any way to close the mobiscroll date picker explicitly.

Jabeer
  • 879
  • 1
  • 8
  • 13
  • 1
    enter code here $('.dw').detach(); $('.dwo').detach(); this code help to close the mobiscroll explicitly. – Jabeer Sep 10 '12 at 12:50

2 Answers2

1

$('.dw').detach();

to delete the mobiscroll screen from the page.

$('.dwo').detach(); is to delete the mobiscroll from the DOM.

Mike Mackintosh
  • 13,917
  • 6
  • 60
  • 87
Jabeer
  • 879
  • 1
  • 8
  • 13
0

You can also trigger the click event on the "Cancel" button, which would be the same as if the user had manually closed the datepicker:

$("#dw_cancel").click();