<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - in the latest Mif.Menu how can I create a dynamic menu on show event]]></title>
		<link>http://mifjs.net/forum/topic/202/</link>
		<description><![CDATA[The most recent posts in in the latest Mif.Menu how can I create a dynamic menu on show event.]]></description>
		<lastBuildDate>Sun, 21 Mar 2010 11:27:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: in the latest Mif.Menu how can I create a dynamic menu on show event]]></title>
			<link>http://mifjs.net/forum/post/764/#p764</link>
			<description><![CDATA[I've partialy resolved the issue firing  onBeforeShow event into  show method.]]></description>
			<author><![CDATA[dummy@example.com (scramatte)]]></author>
			<pubDate>Sun, 21 Mar 2010 11:27:15 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/764/#p764</guid>
		</item>
		<item>
			<title><![CDATA[in the latest Mif.Menu how can I create a dynamic menu on show event]]></title>
			<link>http://mifjs.net/forum/post/755/#p755</link>
			<description><![CDATA[Hello,

In the old  Mif.Menu I used  onShow to create dynamic menu on the fly. 

With the code below It doesn't works :
[code]
        contextMenu = new Mif.Menu({
            onShow: function(e) {
                    var widget, target = e.target;

                        if  (widget.getContextMenu) {
                                                     // getContextMenu method return json structure compatible with Mif.menu
                                                     this.load( widget.getContextMenu() );
                        }
                    }
                }        
        
            }).attach('pageWrapper').load([
                {
                    name: 'test'
                }
            ])

[/code]
Note that   If menu is empty 'show' event is never called and load method call into onShow trigger
don't do nothing because menu is already loaded. 

What is the solution to achieve this ?

I've created another post related indirectly to this issue bease show event doesn't send context event when fired :

[url]http://mifjs.net/forum/topic/203/[/url]

Thank you]]></description>
			<author><![CDATA[dummy@example.com (scramatte)]]></author>
			<pubDate>Sat, 06 Mar 2010 19:50:18 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/755/#p755</guid>
		</item>
	</channel>
</rss>

