- Posts: 14
Wrapper shows nothing!
- Jerker Lundin
- Topic Author
- Offline
- New Member
-
Less
More
15 years 2 months ago #1
by Jerker Lundin
Wrapper shows nothing! was created by Jerker Lundin
Hi!
First I must say that this is a great component.
I have a problem with Moodle showing up in an iframe (wrapper). When I set Joomdle to do that it seems as Joomla does not sence it and I have zero height. I thoght it had something to do with my template in Joomla but the same result appears in all default templates also.
Everything works when I open moodle in a New Window but I rather want it to show up "inside" Joomla.
If anybody can point out what to do I would be grateful.
First I must say that this is a great component.
I have a problem with Moodle showing up in an iframe (wrapper). When I set Joomdle to do that it seems as Joomla does not sence it and I have zero height. I thoght it had something to do with my template in Joomla but the same result appears in all default templates also.
Everything works when I open moodle in a New Window but I rather want it to show up "inside" Joomla.
If anybody can point out what to do I would be grateful.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 2 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
Thanks 
what moodle version are you using?
did you try another browser?
what moodle version are you using?
did you try another browser?
Please Log in or Create an account to join the conversation.
- Jerker Lundin
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
15 years 2 months ago #3
by Jerker Lundin
Replied by Jerker Lundin on topic Re: Wrapper shows nothing!
I use Moodle 2.01.
I have tested with IE 8, Firefox 3.6.10, Safari and Chrome.
And same behaveior in all.
I have tried to go from a link in Main Menu and from Joomdle modules with same result. From module I get a summary and a button with "Go to course" hitting that button and a moodle page flashes and the iframe is resized with zero height.
Thank for your fast response.
I have tested with IE 8, Firefox 3.6.10, Safari and Chrome.
And same behaveior in all.
I have tried to go from a link in Main Menu and from Joomdle modules with same result. From module I get a summary and a button with "Go to course" hitting that button and a moodle page flashes and the iframe is resized with zero height.
Thank for your fast response.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 2 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
Maybe there was a problem installing the js/ folder?
Check that you have the file:
"components/com_joomdle/js/autoheight.js"
Check that you have the file:
"components/com_joomdle/js/autoheight.js"
Please Log in or Create an account to join the conversation.
- Jerker Lundin
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
15 years 2 months ago #5
by Jerker Lundin
Replied by Jerker Lundin on topic Re: Wrapper shows nothing!
Yes that folder and file is present.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 2 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
I don't know what can be happening...
You cold see the Console in Firefox to see if it shows any error related to the wrapper functions... it seems it is not calling them.
BTW, are you using default moodle template?
You cold see the Console in Firefox to see if it shows any error related to the wrapper functions... it seems it is not calling them.
BTW, are you using default moodle template?
Please Log in or Create an account to join the conversation.
- Jerker Lundin
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
15 years 2 months ago - 15 years 2 months ago #7
by Jerker Lundin
Replied by Jerker Lundin on topic Re: Wrapper shows nothing!
I have tried with all default Joomla template and Moodle too.
This is source for the iFrame:
Don´t know if this says anything?!?
I see an error for the value height in ..../course/view.php?id=6 . It is ignored. Could this be the problem?
Jerker
This is source for the iFrame:
Code:
<div class="art-postcontent">
<script src="/autoheight.js" type="text/javascript"></script>
<script src="http://www.xxxxxx.zzz//components/com_joomdle/js/autoheight.js" type="text/javascript"></script>
<div class="contentpane">
<iframe
id="wrapper"
class="autoHeight"
src="http://xxxxxxx.zzz/eutb/course/view.php?id=6"
width="100%"
scrolling="yes"
align="top"
frameborder="0"
onload='itspower(this, false, true, 20)'
></iframe>
</div>
</div>
<div class="cleared"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
Don´t know if this says anything?!?
I see an error for the value height in ..../course/view.php?id=6 . It is ignored. Could this be the problem?
Jerker
Last edit: 15 years 2 months ago by Jerker Lundin.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 2 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
I don't know what can be happening, as this is working for me and the rest of the users...
I just took a look at my current code, and it seems I changed:
id="wrapper"
by
id="blockrandom"
on components/com_joomdle/views/wrapper/tmpl/default.php.
Change it and test if it solves your problem.
I just took a look at my current code, and it seems I changed:
id="wrapper"
by
id="blockrandom"
on components/com_joomdle/views/wrapper/tmpl/default.php.
Change it and test if it solves your problem.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 2 months ago #9
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
sorry, discard last message. I looked at moodle 1.9 code.
Please Log in or Create an account to join the conversation.
- Mikkel Steen
- Offline
- New Member
-
Less
More
- Posts: 7
15 years 2 months ago - 15 years 2 months ago #10
by Mikkel Steen
Replied by Mikkel Steen on topic ...
...
Last edit: 15 years 2 months ago by Mikkel Steen.
Please Log in or Create an account to join the conversation.