GBC - Remove Redirection At Application End

Started by Paul M., June 08, 2018, 08:27:39 AM

Previous topic - Next topic

Paul M.

Hi,

Is it possible to get rid of the redirection once an application ends in the GBC?

A menu(gbc-before) has been written for us in php which then launches our genero application(gbc-during) and then runs in the gbc with no problem.
What I am looking to do is once the application finishes just close the gbc so that it looks like the image in gbc-before attached file.

I have removed the setting of the redirection url in MySessionEndWidget.js and I get a blank window gbc (gbc-after)

Is it possible to "close" this?

Thanks.

Reuben B.

For JavaScript questions, you may find sites such as StackOverflow are a good source of info. 

My suspicion is that you can't close a tab unless the javascript opened it, see https://developer.mozilla.org/en-US/docs/Web/API/Window/close, and so it maybe that your menu written in php has to be responsible for the close.

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero