Display pop-up window without address bar?

Display pop-up window without address bar?

by Joseph Rézeau -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Using moodle 2.7 latest, and Clean Theme.

The URL resource settings documentation at URL_module_settings#Display says:

"In pop-up - Same as 'Open', but opens a new browser window to show this file (without the Moodle heading, blocks, etc) - this browser window also does not have all the menus and address bar in it."

But in fact, the address bar is still there. Does anyone know how to remove it? Or should the doc be amended?

Joseph

 

Average of ratings: -
In reply to Joseph Rézeau

Re: Display pop-up window without address bar?

by Mary Evans -

It depends largely what you mean as a popup.

When the page layout witin the code of a given page states that it is a popup then and only then will it look and act like one. That is to say it will be displayed as it is described in the Moodle doc, or wherever else you saw that description.

if you open a page in a New window then that is not a real popup it's just a webpage in a new separate window that can be floated and  resized, and if you want to have no address bar but only if you use the browser View/Fullscreen setting. 

I may be wrong, but that is my observation.

In reply to Mary Evans

Re: Display pop-up window without address bar?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Thanks for your reply, Mary. Pursuing this matter I made several interesting findings.

1.- It seems to be almost impossible to NOT display the address bar in a browser window. So I have removed that particular element from the documentation at URL_resource_settings#Display.

2.- I discovered the list of those parameters that can be used when using a popup_action in Moodle. They are listed in file lib/outputactions.php in class popup_action.

3.- However, I have also found out that a number of these parameters are a) ineffective in all browsers or b) effective in some browsers only!

I have only tested Firefox, Chrome, MSIE and Opera and, for instance "fullscreen => true" only works in Firefox. Not that a full screen pop-up window is terribly useful, anyway.wink

Joseph

PS.- Does anyone know what the "dependent" parameter is supposed to do in a popup_action?

Average of ratings: Useful (1)