Can TC "behave itself" within an Iframe? :-)

Can TC "behave itself" within an Iframe? :-)

by Philippe Decloitre -
Number of replies: 8

Hi Gordon and all TC, HP users smile


I am working with a team that insits on not using popups with exercises.

But we want the related lessons to remain visible for the students.

So we're thinking of splitting the page into upper part: lesson (a "page" ressource from Moodle) and the lower part: an iframe within which appears a Taskchain.

(The effort is dommed, because the "page" ressource will not follow teh progress of the students, but that's another story. smile  )

What is at stake here is this:

Why is it, that once the first exercise of a TC is finished and the next is summoned, it replaces the entire "page" page, and does not remain within the Iframe?

My Iframe is very simple:

</script>
<iframe id="iframe" src="http://mymoodle/moodle/mod/taskchain/view.php?id=63" height="600" width="100%"> </iframe>

I know Gordon you've got the key (as to why, not sure there's a workaround though mixed )

Cheers and thanks for all the fantastic work of the community you're part of.

Philippe smile


Average of ratings: -
In reply to Philippe Decloitre

Re: Can TC "behave itself" within an Iframe? :-)

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Philippe,
I think TaskChain does this by design. What setting are you using for Navigation in the tasks (see screenshot)?
Gordon

Attachment taskchain.task.navigation.png
In reply to Gordon Bateson

Re: Can TC "behave itself" within an Iframe? :-)

by Philippe Decloitre -

HI Gordon,

Here is what I see:

window

As you can see I took away most everything.

Tried same and new window...

Any idea?

Thanks smile

In reply to Philippe Decloitre

Re: Can TC "behave itself" within an Iframe? :-)

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Thanks Philippe, for the screenshot of the TaskChain activity settings.

However, I am talking about a different screen.
I am talking about the settings screen for a Taskchain task.

What setting are you using for "Navigation" for each task within your TaskChain activity?

In reply to Gordon Bateson

Re: Can TC "behave itself" within an Iframe? :-)

by Philippe Decloitre -

HI Gordon,

Thank you for bearing with me!

I had completely forgotten about that setting page.

I tweaked a bit there (after a reading your post).  default is "embedded", I tried "none".

I removed filters etc..

No change.

window

What is surptrsing, is that from the starting page (preview button) to the first exercise, all is well, although there is a page change.

It's only from exercise 1 to exercise 2 that the Iframe is blown out...

Cheers


In reply to Philippe Decloitre

Re: Can TC "behave itself" within an Iframe? :-)

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Philippe,

thank you for trying various "Navigation" settings for the TaskChain task.

I would like to see the activity firsthand.  Could you recreate it - or something like it - on my testing server?

regards
Gordon

In reply to Gordon Bateson

Re: Can TC "behave itself" within an Iframe? :-)

by Philippe Decloitre -
Hi Gordon,

thanks you so much for looking into the matter.

I tried to log in

​, but I got this messahe.

Can you do something for me?

Cheerio :-)
In reply to Philippe Decloitre

Re: Can TC "behave itself" within an Iframe? :-)

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Sorry Philippe, the "guestteacher" was not enrolled in the course blush

I have enrolled the "guestteacher" now. Please could you try again.

regards
Gordon

In reply to Gordon Bateson

Re: Can TC "behave itself" within an Iframe? :-)

by Philippe Decloitre -

Hi Gordon smile

Thank you so much!

Here is the link to the activity on your Moodle.

link

It behaves just like mine (except yours show an error message whch is probably due to something else).

Can't wait to read your response smile

Cheers

Philippe