<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - Error on Mouse over/out when the node is not yet loaded]]></title>
		<link>http://mifjs.net/forum/topic/138/</link>
		<description><![CDATA[The most recent posts in Error on Mouse over/out when the node is not yet loaded.]]></description>
		<lastBuildDate>Mon, 11 May 2009 12:30:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link>http://mifjs.net/forum/post/522/#p522</link>
			<description><![CDATA[that was quick :-) , works as desired.. thanks moro]]></description>
			<author><![CDATA[dummy@example.com (Sanjay)]]></author>
			<pubDate>Mon, 11 May 2009 12:30:39 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/522/#p522</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link>http://mifjs.net/forum/post/521/#p521</link>
			<description><![CDATA[fixed [url=http://code.google.com/p/miftree/source/detail?r=94]rev94[/url]]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Mon, 11 May 2009 12:14:42 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/521/#p521</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link>http://mifjs.net/forum/post/518/#p518</link>
			<description><![CDATA[sorry moro , the reason for the error is not the load but the remove.

Before I load/reload the tree, I remove the content of existing tree( if exist ) by using following code.

[b]
if (tree.root) 
{
	tree.root.remove();
}[/b]

tree.load ( { url:'http://.....'} );

Now I assume that while the tree contents are being removed and If I mouse the mouse over the container I will get this error.  right?

I also tried to remove the tree contents using

[b]tree.wrapper.getLast().destroy().[/b]

But doesnt help.

 Is there a way to stop hover event while the tree is removed.? Or is there any other way to prevent this?]]></description>
			<author><![CDATA[dummy@example.com (Sanjay)]]></author>
			<pubDate>Mon, 11 May 2009 11:37:56 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/518/#p518</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link>http://mifjs.net/forum/post/516/#p516</link>
			<description><![CDATA[can't reproduce, demo pls.]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Mon, 11 May 2009 10:23:45 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/516/#p516</guid>
		</item>
		<item>
			<title><![CDATA[Error on Mouse over/out when the node is not yet loaded]]></title>
			<link>http://mifjs.net/forum/post/515/#p515</link>
			<description><![CDATA[I get a error 'null is null or not an object'  when I move mouse in the container where the tree is being loaded.

This is caused because, in the [b]over [/b]& [b]out [/b] method o[b]f Mif.Tree.Hover[/b] class it calls the node.getDOM('wrapper') method but as the node is not yet created( the json is being loaded ) it generates error on the bold line in the code below. 

getDOM: function(what){
		var node=$(this.tree.DOMidPrefix+this.UID);
		if(what=='node') return node;
              // THE node  IS NULL HERE AS IT IS NOT YET CREATED
		[b]var wrapper=node.getFirst();[/b]
		if(what=='wrapper') return wrapper;
		if(what=='children') return wrapper.getNext();
		return wrapper.getElement('.mif-tree-'+what);
	}, 

Moro is there any way to prevent this?]]></description>
			<author><![CDATA[dummy@example.com (Sanjay)]]></author>
			<pubDate>Mon, 11 May 2009 09:53:50 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/515/#p515</guid>
		</item>
	</channel>
</rss>

