Details
Description
The Site Policy Agreement window (that users must agree to when they first login to the site) appears blank in both IE6 and IE7, but displays fine in Firefox 2.
I tried using both an html file and a plain text file, but IE will not display either of them (but Firefox works fine).
I tried it using both the standard theme and the standardwhite theme and the results were the same.
I tried it from two different computers, one running WinXP Pro and the other running WinXP Home and the results were the same. I also tried it logging in with both an admin user and a normal student user and results were the same.
I have the site policy file located in mydomain.com/moodle/sitepolicy/sitepolicy.html . The Site Policy URL is obviously correct since it works in Firefox.
Attachments
Issue Links
| This issue has been marked as being related by: | ||||
| MDL-14541 | Object tag embedding PDF's not reliable for Internet Explorer |
|
|
|
Here's a little bit more info...
The only thing I can figure out, is that it might be related to the use of the OBJECT tag. Internet Explorer does not deal with it properly.
My temporary fix was to change the OBJECT tag to an IFRAME tag:
Moodle version: 1.9
Modified file: moodle/user/policy.php
File version: policy.php,v 1.13 2007-08-17 19:09:27 nicolasconnault
Around line 47, I changed this:
echo '<object id="policyframe" data="'.$CFG->sitepolicy.'" type="'.$mimetype.'">';
// we can not use our popups here, because the url may be arbitrary, see
MDL-9823echo '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.$strpolicyagreementclick.'</a>';
echo '</object></div>';
To this:
echo '<iframe id="policyframe" src="'.$CFG->sitepolicy.'" >';
echo '</iframe></div>';
I really don't know much about the pros and cons of using the object tag versus the iframe tag, but all I know is that I can now view the Site Policy on IE6, IE7 and Firefox2
MDL-9823echo '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.$strpolicyagreementclick.'</a>'; echo '</object></div>'; To this: echo '<iframe id="policyframe" src="'.$CFG->sitepolicy.'" >'; echo '</iframe></div>'; I really don't know much about the pros and cons of using the object tag versus the iframe tag, but all I know is that I can now view the Site Policy on IE6, IE7 and Firefox2