<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - Error on Mouse over/out when the node is not yet loaded]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/138/"/>
	<updated>2009-05-11T12:30:39Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/138/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/522/#p522"/>
			<content type="html"><![CDATA[that was quick :-) , works as desired.. thanks moro]]></content>
			<author>
				<name><![CDATA[Sanjay]]></name>
				<uri>http://mifjs.net/forum/user/68/</uri>
			</author>
			<updated>2009-05-11T12:30:39Z</updated>
			<id>http://mifjs.net/forum/post/522/#p522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/521/#p521"/>
			<content type="html"><![CDATA[fixed [url=http://code.google.com/p/miftree/source/detail?r=94]rev94[/url]]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2009-05-11T12:14:42Z</updated>
			<id>http://mifjs.net/forum/post/521/#p521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/518/#p518"/>
			<content type="html"><![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?]]></content>
			<author>
				<name><![CDATA[Sanjay]]></name>
				<uri>http://mifjs.net/forum/user/68/</uri>
			</author>
			<updated>2009-05-11T11:37:56Z</updated>
			<id>http://mifjs.net/forum/post/518/#p518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error on Mouse over/out when the node is not yet loaded]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/516/#p516"/>
			<content type="html"><![CDATA[can't reproduce, demo pls.]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2009-05-11T10:23:45Z</updated>
			<id>http://mifjs.net/forum/post/516/#p516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error on Mouse over/out when the node is not yet loaded]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/515/#p515"/>
			<content type="html"><![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?]]></content>
			<author>
				<name><![CDATA[Sanjay]]></name>
				<uri>http://mifjs.net/forum/user/68/</uri>
			</author>
			<updated>2009-05-11T09:53:50Z</updated>
			<id>http://mifjs.net/forum/post/515/#p515</id>
		</entry>
</feed>

