Open HTML5 client in same tab

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

Open HTML5 client in same tab

Post by Brian » Tue Apr 26, 2016 3:58 pm

Hi everyone,

I followed the instruction here:
http://www.terminalserviceplus.com/docs ... n-same-tab

After entering a username and password, I click the "Logon" button, the page just refreshes. If after entering a username/pass and hit 'enter' on my keyboard, it works and tries to login. Any ideas?

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

Re: Open HTML5 client in same tab

Post by Brian » Tue Apr 26, 2016 4:06 pm

This is on version 9.30.4.26

I found my answer to this by checking a previous server.

My 8.40 version did not have this line:

var success = true;


Here's the 8.40 version
} else if (AccType == "html5") {
var k = forHTML5();
if (p == '') {
p = hostGateway + 'software/html5.html';
if (cpwin != false) {
window.name = " " + k;
location.href = p + '#';
cpwin.close();
cpwin = false;
} else {
window.name = " " + k;
location.href = p + '#';


And the 9.30 version:
} else if (AccType == "html5") {
var k = forHTML5();
if (p == '') {
p = hostGateway + 'software/html5.html';
if (cpwin != false) {
window.name = " " + k;
location.href = p + '#';
cpwin.close();
cpwin = false;
} else {
window.name = " " + k;
location.href = p + '#';
var success = true;


If I remove the var success = true; line, then it works on click as it should.

Is this the correct solution ?

Thanks!!!

adrien
Posts: 43
Joined: Thu Sep 10, 2015 10:39 am

Re: Open HTML5 client in same tab

Post by adrien » Thu Apr 28, 2016 9:34 am

Hello,

We have tested it again today.
The version described in our Documentation is working fine on our side.
Maybe it was just a refreshing/brower caching issue?

Anyway, the "success" line does not change anything important, so if it is working fine without it, you can continue using it.
Adrien
TSplus CTO

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

Re: Open HTML5 client in same tab

Post by Brian » Mon May 02, 2016 3:02 pm

Hi Adrien,

You are correct - I believe this was a chaching issue on my end. I added the var success line back for good measure :)

Thanks!
Brian

Post Reply