Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: GBC - Remove Redirection At Application End  (Read 3200 times)
Paul M.
Posts: 30


« 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.


* gbc-before.jpg (55.81 KB, 1857x860 - viewed 418 times.)

* gbc-during.jpg (59.45 KB, 1860x932 - viewed 380 times.)

* gbc-after.jpg (59.38 KB, 1838x917 - viewed 369 times.)
Reuben B.
Four Js
Posts: 769


« Reply #1 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines