Pyramid debug toolbar and iframes

52 views
Skip to first unread message

Guido Stevens

unread,
May 30, 2012, 10:54:20 AM5/30/12
to pylons...@googlegroups.com
Hi all,

While building an app that uses an iframe in rendering, the Pyramid
debug toolbar shows up in the iframe (also rendered by Pyramid) but not
in the outer containing page.

Apparently the toolbar attaches to the first "</body>" it finds? Is
there a way to change that in such a way, that the toolbar shows up in
the outermost body (the actual page)?

:*CU#
--
*** Guido A.J. Stevens *** tel: +31.43.3618933 ***
*** guido....@cosent.nl *** Postbus 619 ***
*** http://www.cosent.nl *** 6200 AP Maastricht ***

s h a r i n g m a k e s s e n s e

Future of Facebook: Technology -- will Facebook "own" crucial
aspects of Internet plumbing? http://t.co/kUCG4pjW #fofb
@VenessaMiemis

http://twitter.com/GuidoStevens

Jason

unread,
Jun 14, 2012, 8:51:29 AM6/14/12
to pylons...@googlegroups.com


On Wednesday, May 30, 2012 10:54:20 AM UTC-4, Guido Stevens wrote:
Hi all,

While building an app that uses an iframe in rendering, the Pyramid
debug toolbar shows up in the iframe (also rendered by Pyramid) but not
in the outer containing page.



That's strange. I use four iframes on a page and the debug toolbar shows up in each iframe and the outer page. There must be something else keeping it from displaying.

--Jason

Tres Seaver

unread,
Jun 14, 2012, 9:53:01 AM6/14/12
to pylons...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/30/2012 10:54 AM, Guido Stevens wrote:

> While building an app that uses an iframe in rendering, the Pyramid
> debug toolbar shows up in the iframe (also rendered by Pyramid) but
> not in the outer containing page.
>
> Apparently the toolbar attaches to the first "</body>" it finds? Is
> there a way to change that in such a way, that the toolbar shows up in
> the outermost body (the actual page)?

Just a wild guess: make sure that you don't have a "self-closing" <iframe>::

<iframe srce="http://example.com"/>

Instead::

<iframe srce="http://example.com"></iframe>

Like <textarea>, the <iframe> tag is treated specially by browsers and
other HTML procesors. I just lost an hour or more last week chasing down
oddball behavior due to this quirk.


Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tse...@palladion.com
Palladion Software "Excellence by Design" http://palladion.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/Z7LcACgkQ+gerLs4ltQ4NqgCgkdL4m7BT9dPpMbUvLIA5dUks
0V0AoMRTTJf1X57Y3Ro7ZrkXqOfSgAAm
=qLVk
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages