Changing the "LOG ON" button

Get help with troubleshooting issues
Post Reply
Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Changing the "LOG ON" button

Post by Brian » Fri Sep 05, 2014 4:28 pm

Has anyone figured out a way to alter the 'Log on' button on the web page?

My issue is this, I enter my username and password, then click 'log on'. The 'log on' button opens in a new tab and launches. However, I can click on the old tab. I don't want the old tab. It keeps the username/password entries in there and I cannot have this. I need the log on button to open in the current window. Anyway to change?

Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Re: Changing the "LOG ON" button

Post by Brian » Thu Sep 11, 2014 12:37 pm

anyone?

Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Re: Changing the "LOG ON" button

Post by Brian » Wed Sep 17, 2014 3:12 pm

Does this not make sense to anyone else? I can better explain if need be. It should be a simple change. The properties of the "Log on" button simply need changed to open in the same window, or upon click, clear the 'user name' and 'password' fields. Im fine with either one. Someone please help!!

jkuijt
Posts: 114
Joined: Sat Jan 04, 2014 1:41 pm

Re: Changing the "LOG ON" button

Post by jkuijt » Thu Sep 18, 2014 6:57 am

Hi Brian,

I have no idea how to accomplish this.
Perhaps it's better to submit a Support Ticket?

Best regards
Jeffrey

Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Re: Changing the "LOG ON" button

Post by Brian » Thu Sep 18, 2014 12:50 pm

I did get the answer from support on this one:

To solve your issue, please edit the file index.html found in C:\Program Files (x86)\TSplus\Clients\www with a text editor, such as Notepad++.



Search for:

cplogon();



And replace it by:

cplogon(); document.cookie = 'Login_Editbox1=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; window.location.reload();



Then clear your browser cache, press Ctrl and F5 keys together, and your issue should be solved.

It worked great!! :)

Brian
Posts: 89
Joined: Thu Mar 21, 2013 6:19 pm

Re: Changing the "LOG ON" button

Post by Brian » Thu Sep 18, 2014 2:52 pm

Another update --- Pressing 'Enter' will not clear out the user/pass fields. I got another fix from support:

Please edit the file Clients\www\software\common.js, find the lines:

if (e == 13) {

if (document.getElementById("Editbox1").value == "") {

alert("Insert Login please!");

return;

}

cplogon();

}



And replace them by:

if (e == 13) {

if (document.getElementById("Editbox1").value == "") {

alert("Insert Login please!");

return;

}

cplogon();

document.cookie = 'Login_Editbox1=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; window.location.reload();

}





Then clear your browser cache, press Ctrl and F5 keys together.


This indeed clears the username and password if the users "clicks" or presses "enter" on their keyboard. Very well done by TSPLUS :)

jkuijt
Posts: 114
Joined: Sat Jan 04, 2014 1:41 pm

Re: Changing the "LOG ON" button

Post by jkuijt » Fri Sep 19, 2014 7:55 am

That's good news, Brian!
TSplus support rocks!

Best regards
Jeffrey

Post Reply