× Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

How to configure Moodle when open a new window?

12 years 1 month ago
Alexandre
Posts: 39
More
Topic Author
How to configure Moodle when open a new window? #1
When Joomla open Moodle in a new window, how I can configure this (size, etc.)? I remember that in R0.21 that it´s possible.

Please Log in or Create an account to join the conversation.

12 years 1 month ago
patrick
How to configure Moodle when open a new window? #2
Can that be done? I was looking for it too but thought you could only specify the wrapper height and width.

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Alexandre
Posts: 39
More
Topic Author
How to configure Moodle when open a new window? #3
I think that I need to change a script or the php.

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Antonio Durán
Posts: 7417
More
How to configure Moodle when open a new window? #4
The wrapper options are the same in R0.21 and R0.23. They just moved from the module configuration to the component configuration.

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Alexandre
Posts: 39
More
Topic Author
How to configure Moodle when open a new window? #5
antonio wrote:

The wrapper options are the same in R0.21 and R0.23. They just moved from the module configuration to the component configuration.


Ok. But it´s possible to open in a new window and configure the size (600x400) and without the IE menu?

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Antonio Durán
Posts: 7417
More
How to configure Moodle when open a new window? #6
I guess you mean using the new window option and not the wrapper one, then.

No :( At this time it is not possible to do what you want and I am pretty sure it never was :) But I see it as a very good option, so please, can you open a new thread in the Feature requests forum explaning it, so it does not get lost ;)

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Alexandre
Posts: 39
More
Topic Author
How to configure Moodle when open a new window? #7
Ok. Thank you.

Please Log in or Create an account to join the conversation.

12 years 1 month ago
Chris
Posts: 2118
More
How to configure Moodle when open a new window? #8
Moved to new Feature Request

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Alexandre
Posts: 39
More
Topic Author
How to configure Moodle when open a new window? #9
To open Moodle from Joomla in a new window, you will need to use yet another ready-made JavaScript function. Here is what it looks like:

window.open('url to open','window name','attribute1,attribute2')

This is the function that allows you to open a new browser window for the viewer to use. Note that all the names and attributes are separated with a comma rather than spaces. Here is what all the stuff inside is:


'url to open'
This is the web address of the page you wish to appear in the new window.
Ex.: www.yoursite.com/moodle k

'window name'
You can name your window whatever you like, in case you need to make a reference to the window later.

'attribute1,attribute2'
As with alot of other things, you have a choice of attributes you can adjust.
Window Attributes

Below is a list of the attributes you can use:

width=300
Use this to define the width of the new window.

height=200
Use this to define the height of the new window.

resizable=yes or no
Use this to control whether or not you want the user to be able to resize the window.

scrollbars=yes or no
This lets you decide whether or not to have scrollbars on the window.

toolbar=yes or no
Whether or not the new window should have the browser navigation bar at the top (The back, foward, stop buttons..etc.).

location=yes or no
Whether or not you wish to show the location box with the current url (The place to type http://address).

directories=yes or no
Whether or not the window should show the extra buttons. (what's cool, personal buttons, etc...).

status=yes or no
Whether or not to show the window status bar at the bottom of the window.

menubar=yes or no
Whether or not to show the menus at the top of the window (File, Edit, etc...).

copyhistory=yes or no
Whether or not to copy the old browser window's history list to the new window.
All right, here's an example code for opening a new window:

<FORM>
<INPUT type="button" value="Moodle" onClick="window.open(' www.yoursite.com/moodle/index.htm','mywi...width=400,height=200 k')">
</FORM>

Please Log in or Create an account to join the conversation.