<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - "Menu attached to button" example]]></title>
		<link>http://mifjs.net/forum/topic/54/</link>
		<description><![CDATA[The most recent posts in "Menu attached to button" example.]]></description>
		<lastBuildDate>Sun, 12 Oct 2008 16:45:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/200/#p200</link>
			<description><![CDATA[yes, it's not for tree nodes. But i'm add ref to el.
U can do something like this now:

[code]onAction: function(){
        alert(this.menu.el.get('id'));
}[/code]]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Sun, 12 Oct 2008 16:45:13 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/200/#p200</guid>
		</item>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/199/#p199</link>
			<description><![CDATA[what I want to do is similar to binding context menu to tree nodes. each node has unique Id and data associated with it.

are you saying that attachTo() should not be used in that case?]]></description>
			<author><![CDATA[dummy@example.com (temuri)]]></author>
			<pubDate>Sun, 12 Oct 2008 16:28:35 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/199/#p199</guid>
		</item>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/197/#p197</link>
			<description><![CDATA[u attach one menu to different elements? Then attachTo not for you , create your own method.]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Sun, 12 Oct 2008 16:12:35 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/197/#p197</guid>
		</item>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/195/#p195</link>
			<description><![CDATA[question. after I use attachTo('myDiv'), how can I reference 'myDiv' in all further actions?

attachTo: function(el){
	el=$(el);
	el.addEvents({
		'mousedown': function(event){
			if(event.rightClick) return;
			if(!this.isVisible()){
				this.$attaching=true;
				var coords=el.getCoordinates();
				this.show({x: coords.left + 10, y: coords.bottom - 15});
			}else{
				this.hide();
			}
    ......
}

It seems that all information on 'el' is lost forever. I need the original trigger to determine what menu actions should do.

thanks]]></description>
			<author><![CDATA[dummy@example.com (temuri)]]></author>
			<pubDate>Sun, 12 Oct 2008 16:01:53 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/195/#p195</guid>
		</item>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/190/#p190</link>
			<description><![CDATA[disable native context menu if u want, 

[code]document.addEvent('contextmenu', function(event){
      event.preventDefault();
});[/code]]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Sun, 12 Oct 2008 09:21:49 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/190/#p190</guid>
		</item>
		<item>
			<title><![CDATA[Re: "Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/187/#p187</link>
			<description><![CDATA[fixed, attachTo now show menu on left click only]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Sun, 12 Oct 2008 06:34:56 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/187/#p187</guid>
		</item>
		<item>
			<title><![CDATA["Menu attached to button" example]]></title>
			<link>http://mifjs.net/forum/post/185/#p185</link>
			<description><![CDATA[moro,

I tried to attach menu to a DIV element using attachTo() and found some bugs.

1. Menu is showing on both LEFT click.

I was happy to see LEFT click working, however I was not expecting that. Why is it attachTo() work with LEFT click and after normal instantiation it triggers with RIGHT?

2. Google Chrome, FF2, IE6 and IE7 also display native context menu on top of MifMenu (both on Buttons that you have in Demos AND my custom DIV). Only FF3 does not show native context menu.

I think attachTo() should configure menu trigger mouse button - left, right or both. 

Thanks]]></description>
			<author><![CDATA[dummy@example.com (temuri)]]></author>
			<pubDate>Sun, 12 Oct 2008 00:02:50 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/185/#p185</guid>
		</item>
	</channel>
</rss>

