Defect #422
executeClientSideJS fails onShow of login form after a logout
Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/16/2012
Due date:
% Done:
0%
Estimated time:
Browser (if web client):
Description
if you have something like this in the onShow of a login form:
plugins.WebClientUtils.executeClientSideJS("var a=1; alert('test');", onShow_callback, ['a'])
It works when you first launch the solution (first time showing the solution, However if you do:
security.logout(solutionName)
Where you are logging the user out, and loading the same solution again (so that the login page shows up after logout), the client side javascript doesn't run. You won't see the alert, and obviously then the callback doesn't run either. When you inspect the page, you do see that it was added to the DOM, its just not running.