[support] Question about iFrames

Daniel Carrera daniel.carrera at zmsl.com
Sat Aug 23 15:16:35 UTC 2008


Ah, yes. You are right. Here is an example:

<a href="http://foo.org/moodle/" onclick="this.target='_top'">Home</a>

Knowing where the problem is, now I can edit the Moodle theme and remove 
all onclick="..." properties. The links seem to work well now.

Thanks!


Maarten van Grootel wrote:
> I would guess that some links in the iframe have a target that directs 
> to the _parent or _top frame. Something like <a 
> href="http://foo.org/moodle/bla" target="_top">Moodle's Bla</a>. Either 
> that or there is some javascript fooling around directing certain 
> targets to the _top frame instead of _self.
> 
> Kindly,
> Maarten
> 
> On Sat, Aug 23, 2008 at 1:59 PM, Daniel Carrera <daniel.carrera at zmsl.com 
> <mailto:daniel.carrera at zmsl.com>> wrote:
> 
>     Hello,
> 
>     This is an HTML question. I installed the Moodle integration module. It
>     puts Moodle inside an <iframe> in a Drupal page. So far so good. The
>     problem is when you click on a link inside Moodle (iframe). I always
>     thought that clicking on a link inside an iframe would only change the
>     contents of the iframe. But this is not what always happens. Some times
>     the entire browser page refreshes, taking you out of Drupal, to Moodle,
>     and breaking the illusion that Moodle is inside Drupal.
> 
>     What is especially disconcerting is that this happens on some pages but
>     not others. So it creates a weird kind of unpredictability that I'm sure
>     will annoy users.
> 
>     I cannot see any obvious reason why there is a difference. The links
>     that produce different results don't look all that different. They are
>     all on the same domain, of the form http://foo.org/moodle/<something>.
> 
>     Does anyone know what can cause this behaviour? I need to understand the
>     root cause at the HTML level before I can figure out if there is
>     something I can change at either Moodle or Drupal to correct the
>     problem.
> 
>     Thanks for the help.
> 
>     Daniel.
>     --
>     [ Drupal support list | http://lists.drupal.org/ ]
> 
> 



More information about the support mailing list