Page 1 of 1

Login button - multiple clicks

Posted: Wed Dec 04, 2019 3:56 pm
by Janusz
Hi,
If on the login screen (after entering login and password) someone is making multiple cliks on the login buton - then few session is opened in the nuBuilder.
This probably can be prevented in nucommon.js file by modifying nuLogin function specifically the code for buton:

Code: Select all

<input id='submit' type='button' class='nuButton'  style='margin:20px 0px 0px 50px;width:90px;height:30px;' onclick='nuLoginRequest()' value='Log in'/>
Do you have any suggestion how to modify this code to disable that buton/action lets say for 1 sec to prevent sending multiple login requests?

Re: Login button - multiple clicks

Posted: Wed Dec 04, 2019 10:42 pm
by Janusz
after check the following code works OK inside the html onclick function:

Code: Select all

field=this.id;nuDisable(field);nuLoginRequest();setTimeout(function(){nuEnable(field);},2000);

Re: Login button - multiple clicks

Posted: Fri Dec 06, 2019 4:27 pm
by kev1n
Thanks for sharing - works great!

Re: Login button - multiple clicks

Posted: Mon Dec 30, 2019 10:31 pm
by admin
.