Show moodle in div

Show moodle in div

by Flotter Totte -
Number of replies: 6
Picture of Plugin developers

Hi all,
does someone know why this does not work?

<div style="margin: 0 auto; width:100%; height:400px;"><object type="text/html" data="http://www.moodle.org" style="width:100%; height:100%; margin:1%;"></object></div>

Btw: I actually don't want to show the moodle.org in a div, but my own moodle (which runs on my localhost). I just used moodle.org as example.

Above code worked fine for me with moodle 2.0 but does not with 2.2

I am very much interested why this does not work anymore.

Flotter

Average of ratings: -
In reply to Flotter Totte

Re: Show moodle in div

by Itamar Tzadok -

I had problems with the object tag on chrome and IE. Didn't investigate, just switched to iframe. smile

In reply to Itamar Tzadok

Re: Show moodle in div

by Flotter Totte -
Picture of Plugin developers

Thanks for your fast reply smile


I now tried the following, but it also does not work:

<IFRAME SRC="http://moodle.org" TITLE="aaa">
</IFRAME>

 

I think it might be related to moodle...

 

Thanks for any further hint,

Flottter

In reply to Flotter Totte

Re: Show moodle in div

by Itamar Tzadok -

Where exactly are you entering this html? Is it stripped off or just not displaying the page? smile

In reply to Itamar Tzadok

Re: Show moodle in div

by Flotter Totte -
Picture of Plugin developers

I try the html for example here in this online html editor:

http://htmledit.squarefree.com/

If you change the moodle url to  any other website, it works.

What I want to do later is to put a link on our company's homepage and let our moodle run in an iframe/div

 

 

 

In reply to Flotter Totte

Re: Show moodle in div

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There is a setting called "Allow Frame Embedding" in Site Administration->Security->HTTP Security

Average of ratings: Useful (1)