Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Paul M. on June 08, 2018, 08:27:39 am



Title: GBC - Remove Redirection At Application End
Post by: Paul M. on June 08, 2018, 08:27:39 am
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.


Title: Re: GBC - Remove Redirection At Application End
Post by: Reuben B. on June 13, 2018, 04:51:55 am
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