https://issues.apache.org/bugzilla/show_bug.cgi?id=46001
Summary: Menubar doesn't work if page contains an iframe
Product: Lenya
Version: Trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
The menubar doesn't work if the page contains an iframe.
Reason:
The menu.js tries to assign the event handlers before the DOM construction is
finished, therefore the menu objects (id=nav*) are null.
If the initialize() function is called in the body/@onload attribute, it works:
Index: src/modules/menubar/xslt/menu2xslt.xsl
===================================================================
--- src/modules/menubar/xslt/menu2xslt.xsl (Revision ...)
+++ src/modules/menubar/xslt/menu2xslt.xsl (working copy)
@@ -59,14 +59,14 @@
</xso:variable>
<xso:comment>[if IE 6]<![CDATA[>]]><link rel="stylesheet"
type="text/css" href="<xso:value-of
select="$contextprefix"/>/lenya/css/ie6hacksonly.css"
/><![CDATA[<![endif]]]></xso:comment>
</head>
- <body>
+ <body onload="initialize();">
+
<xso:apply-templates select="xhtml:html/xhtml:body/@*"/>
<xsl:apply-templates select="xhtml:div/xhtml:[EMAIL PROTECTED] =
'lenya-logo']"/>
<xsl:apply-templates select="xhtml:div/xhtml:[EMAIL PROTECTED] =
'lenya-menus']"/>
<div id="lenya-cmsbody">
<xso:apply-templates select="xhtml:html/xhtml:body/node()"/>
</div>
- <script type="text/javascript"> initialize(); </script>
</body>
</html>
</xso:template>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]