<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matteo Bicocchi&#039;s Blog &#187; (mb)menu</title>
	<atom:link href="http://pupunzi.open-lab.com/tag/mbmenu/feed/" rel="self" type="application/rss+xml" />
	<link>http://pupunzi.open-lab.com</link>
	<description>mb.ideas.repository</description>
	<lastBuildDate>Sun, 12 Feb 2012 12:39:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pupunzi.open-lab.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f84717aa2c4a99c6f997904a49e41a68?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Matteo Bicocchi&#039;s Blog &#187; (mb)menu</title>
		<link>http://pupunzi.open-lab.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pupunzi.open-lab.com/osd.xml" title="Matteo Bicocchi&#039;s Blog" />
	<atom:link rel='hub' href='http://pupunzi.open-lab.com/?pushpress=hub'/>
		<item>
		<title>jQuery (mb)Menu 2.7 (New!)</title>
		<link>http://pupunzi.open-lab.com/2009/01/18/mbmenu/</link>
		<comments>http://pupunzi.open-lab.com/2009/01/18/mbmenu/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 08:46:36 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[(mb)menu]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[contextual menu]]></category>
		<category><![CDATA[jquery contextual menu]]></category>
		<category><![CDATA[jquery menu]]></category>
		<category><![CDATA[jquery multilevel menu]]></category>
		<category><![CDATA[jquery tree menu]]></category>
		<category><![CDATA[multilevel menu]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[tree menu]]></category>

		<guid isPermaLink="false">http://pupunzi.wordpress.com/?p=105</guid>
		<description><![CDATA[Go to the component page for the latest update: http://pupunzi.open-lab.com/mb-jquery-components/mb-_menu/ Now is This is a powerful jQuery component to build easily a multilevel tree menu or a contextual menu (right click) in an intuitive way! You can add as many submenus as you want; if your submenu or menu is not declared in the page,&#160;&#8230; <a href="http://pupunzi.open-lab.com/2009/01/18/mbmenu/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=105&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://pupunzi.wordpress.com/2009/01/18/mbmenu/"><img class="alignnone size-full wp-image-110" title="mbmenu" src="http://pupunzi.files.wordpress.com/2009/01/mbmenu.jpg?w=640" alt="mbmenu"   /><br />
<em> </em><br />
</a></p>
<h3>Go to the component page for the latest update:</h3>
<h3><a href="http://pupunzi.open-lab.com/mb-jquery-components/mb-_menu/">http://pupunzi.open-lab.com/mb-jquery-components/mb-_menu/</a></h3>
<p><span id="more-105"></span></p>
<p>Now is <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" /><a href="http://pupunzi.wordpress.com/2009/01/18/mbmenu/"></a></p>
<p>This is a powerful jQuery component to build easily a multilevel tree menu or a contextual menu (right click) in an intuitive way!</p>
<p>You can add as many submenus as you want; if your submenu or menu is not declared in the page, the component&#8217;ll get it via ajax calling the template page with the id of the menu you need (the value of  &#8220;menu&#8221; attribute) the ajax page should return a well formatted code as the example below for the menu voices code.</p>
<p><a href="http://pupunzi.open-lab.com/mb-jquery-components/mb-_menu/">go to the component page for the latest release</a></p>
<h3>Dependencies:</h3>
<p>optional:<strong> jquery.metadata.plugin</strong></p>
<p>optional:<strong> jquery.hoverIntent.plugin</strong></p>
<h3>here is the js call:</h3>
<p><code><br />
$(".myMenu").buildMenu(<br />
{<br />
template:"menuVoices.jsp",<br />
additionalData:"",<br />
menuWidth:200,<br />
openOnRight:false,<br />
menuSelector: ".menuContainer",<br />
iconPath:"ico/",<br />
hasImages:true,<br />
</code><code> fadeInTime:200,<br />
fadeOutTime:100,<br />
</code><code>adjustLeft:2,<br />
adjustTop:10,<br />
opacity:.95,<br />
shadow:true,</code><code><br />
closeOnMouseOut:true,</code><code><br />
closeAfter:500,<br />
minZindex:200,<br />
hoverIntent:0<br />
});</code></p>
<h3>or you can call it as contextual menu:</h3>
<p><span style="color:#808080;">(can&#8217;t work in opera due to a security restriction)</span></p>
<p><code> $(document).buildContextualMenu(<br />
{<br />
template:"menuVoices.html",<br />
menuWidth:200,<br />
overflow:2,<br />
menuSelector: ".menuContainer",<br />
iconPath:"ico/",<br />
hasImages:false,</code><code><br />
</code><code> fadeInTime:200,</code><br />
<code> fadeOutTime:100,</code><br />
<code> adjustLeft:0,<br />
adjustTop:0,<br />
opacity:.99,<br />
shadow:true,<br />
</code><code>onContextualMenu:function(o,e){}</code><br />
<code> });<br />
</code></p>
<h3>params:</h3>
<h4>template:</h4>
<p>is the ajax page that build this level menu structure ;<br />
<em>If the menu you are calling is not on the page, the component automatically will try to build it calling via Ajax the &#8220;template&#8221; page, passing the ID of the menu you call in the request (&#8220;menuId&#8221;).<br />
The temlate page should be a dinamic page (php, jsp, aspx, &#8230;) that&#8217;ll build the menu from the ID param </em>passed in the request.</p>
<p>If you are a beginner on javascript and coding in general just write your menu code directly on your page; it&#8217;s easyer!</p>
<h4>additionalData:</h4>
<p>are additional data needed to build the menu, by default it send the actual menuline id;<br />
<em>If you need some other params to be passed to the template page to build your menu you can set them here, writing them like: &#8220;pippo=1&amp;pluto=false&#8221;;</em></p>
<h4>openOnRight:</h4>
<p>let the menus open on the right side instead bottom;</p>
<h4>openOnClick:</h4>
<p>define if the menu is opened by a mouse click or by a mouseover event;</p>
<h4>hasImages:</h4>
<p>define if the menu voices have images or not on its left;</p>
<h4>menuSelector:</h4>
<p>is the css class applied to each menu container of this menu context;</p>
<h4><span style="color:#000000;">closeOnMouseOut</span>:</h4>
<p>the menu can be close either onclik on the window or just when your mouse exit the menu</p>
<h4><span style="color:#000000;">closeAfter</span>:</h4>
<p>the time to whait befor close the menu (works just if <em>closeOnMouseOut</em> is set to true)</p>
<h4>fadeInTime / fadeOutTime:</h4>
<p>those params control the speed of the opening and closing fade effect.</p>
<h4>hoverIntent:<span style="color:#ff6600;"> (New!)</span></h4>
<p>this param sets the delay for the hover event; if set to 0 the hoverIntent function is not used.<br />
To use this feature you have to include the  <a href="http://cherne.net/brian/resources/jquery.hoverIntent.html" target="_blank">jquery.hoverIntent plug in</a> in your page!</p>
<h4>submenuHoverIntent:<span style="color:#ff6600;"> (New!)</span></h4>
<p>this param sets the delay for the hover event on submenu calls; if set to 0 the hoverIntent function is not used.<br />
To use this feature you have to include the  <a href="http://cherne.net/brian/resources/jquery.hoverIntent.html" target="_blank">jquery.hoverIntent plug in</a> in your page!</p>
<h4><span style="color:#000000;">onContextualMenu</span>:</h4>
<p>A function invoked once each contextualMenu is called;<br />
<em>the function has either the dom element you clicked on, either the event</em>:<br />
<span style="color:#008000;"><em>onContextualMenu:function(o,e){<br />
testForContextMenu(o);<br />
},</em></span></p>
<h3>here is the code for each menu header:</h3>
<div class="codeblock"><code>&lt;!-- menu voices --&gt;&lt;div class="myMenu"&gt;&lt;table class="rootVoices" cellspacing='0' cellpadding='0' border='0'&gt;&lt;tr&gt;<br />
&lt;td menu="menu_12" &gt;ajax menu 1&lt;/td&gt;<br />
&lt;td menu="menu_2" &gt;menu 2&lt;/td&gt;<br />
&lt;td menu="menu_3" &gt;menu 3&lt;/td&gt;<br />
&lt;/tr&gt;&lt;/table&gt;<br />
&lt;/div&gt;<br />
</code><br />
&lt;!&#8211; end menu voices &#8211;&gt;</div>
<h3>and for each submenu:</h3>
<div class="codeblock"><code>&lt;!-- example code --&gt;&lt;div id="menu_1" class="menu"&gt;&lt;a rel="title" &gt;title menu_1.1&lt;/a&gt; &lt;!-- menuvoice title--&gt;<br />
&lt;a href="../mb_carusel/carousel.html" target="_blank" img="image.gif" &gt;menu_1.1 (href)&lt;/a&gt; &lt;!-- menuvoice with href--&gt;<br />
&lt;a action="document.title=('menu_1.2')" &gt;menu_1.2&lt;/a&gt; &lt;!-- menuvoice with js action--&gt;<br />
&lt;a rel="separator"&gt;&lt;/a&gt; &lt;!-- menuvoice separator--&gt;<br />
&lt;a action="document.title=('menu_1.3')" disabled=true&gt;menu_1.3&lt;/a&gt; &lt;!-- menuvoice disabled--&gt;<br />
&lt;a action="document.title=('menu_1.4')" menu="menu_1" img="image.png"&gt;menu_1.4&lt;/a&gt;&lt;!-- menuvoice with js action, image and submenu--&gt;<br />
&lt;/div&gt;</code></div>
<h3>How to use it:</h3>
<h4>header</h4>
<p>The menu header shouldn&#8217;t necessarely be a table (also an unordered list or what else you want).<br />
to append a menu to each voice of the header you simply add an attribute &#8220;menu&#8221; to the tag with the ID of the menu you want as value; if the menu already exist in the page it get it otherwise it&#8217;ll be called via ajax at the url specified in the &#8220;template&#8221; attribute.</p>
<h4>each menu</h4>
<p>Each menu is a div with an ID that represent the content you want to call and a class &#8220;menu&#8221;; this div contains all the voices of the menu as &#8220;a&#8221; tag.<br />
Give a look at the code to understand all the possible definition of each voice line!</p>
<p><strong> </strong><a href="http://www.open-lab.com/mb.ideas/index.html#mbMenu" target="_blank"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=105&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2009/01/18/mbmenu/feed/</wfw:commentRss>
		<slash:comments>416</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2009/01/mbmenu.jpg" medium="image">
			<media:title type="html">mbmenu</media:title>
		</media:content>

		<media:content url="http://www.w3.org/Icons/valid-xhtml10" medium="image">
			<media:title type="html">Valid XHTML 1.0 Transitional</media:title>
		</media:content>
	</item>
	</channel>
</rss>
