<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: jsTree 0.6.5</title>
	<atom:link href="http://vakata.com/en/archives/12/feed" rel="self" type="application/rss+xml" />
	<link>http://vakata.com/en/archives/12</link>
	<description>Sometimes I sit and wonder... and sometimes I just sit</description>
	<lastBuildDate>Wed, 17 Dec 2008 08:19:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: davy sorn</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-475</link>
		<dc:creator>davy sorn</dc:creator>
		<pubDate>Thu, 11 Dec 2008 11:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-475</guid>
		<description>when i ran this tree example, it had an error:

r.setProperty is not a function
[Break on this error] if(r){r.setProperty(&#039;SelectionNamespaces...arseFromString() failed&#039;);return false;}

so the tree cannot be loaded.
why? how to fix it?</description>
		<content:encoded><![CDATA[<p>when i ran this tree example, it had an error:</p>
<p>r.setProperty is not a function<br />
[Break on this error] if(r){r.setProperty(&#8216;SelectionNamespaces&#8230;arseFromString() failed&#8217;);return false;}</p>
<p>so the tree cannot be loaded.<br />
why? how to fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vakata</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-91</link>
		<dc:creator>vakata</dc:creator>
		<pubDate>Tue, 19 Aug 2008 11:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-91</guid>
		<description>@addwin
The first issue is something I&#039;ve been thinking about, and a colleague of mine suggested that the keys should actually move the hover state only, and not select the node (not until for example Enter is pressed). I&#039;ll implement this shortly. You could modify the script to pass a parameter when the select was triggered by the get_* functions used for keyboard shortcuts. Anyway - I&#039;m writing it down - it shall be ready soon.

As for the lock - it is a wonderful idea - thanks. I believe it will be easy to implement.

Last but not least - the language versions - I will most probably add a language object to settings object. 

I have version 0.7 (major improvement is native async mode) ready, but I guess I&#039;ll postpone it for a few days and include those features.

Thanks for the ideas,
Ivan</description>
		<content:encoded><![CDATA[<p>@addwin<br />
The first issue is something I&#8217;ve been thinking about, and a colleague of mine suggested that the keys should actually move the hover state only, and not select the node (not until for example Enter is pressed). I&#8217;ll implement this shortly. You could modify the script to pass a parameter when the select was triggered by the get_* functions used for keyboard shortcuts. Anyway &#8211; I&#8217;m writing it down &#8211; it shall be ready soon.</p>
<p>As for the lock &#8211; it is a wonderful idea &#8211; thanks. I believe it will be easy to implement.</p>
<p>Last but not least &#8211; the language versions &#8211; I will most probably add a language object to settings object. </p>
<p>I have version 0.7 (major improvement is native async mode) ready, but I guess I&#8217;ll postpone it for a few days and include those features.</p>
<p>Thanks for the ideas,<br />
Ivan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: addwin</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-90</link>
		<dc:creator>addwin</dc:creator>
		<pubDate>Tue, 19 Aug 2008 10:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-90</guid>
		<description>Is it possible to change the default text for a new node without changing tree_component.js? The same goes for the error messages.

Thanks.</description>
		<content:encoded><![CDATA[<p>Is it possible to change the default text for a new node without changing tree_component.js? The same goes for the error messages.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: addwin</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-89</link>
		<dc:creator>addwin</dc:creator>
		<pubDate>Tue, 19 Aug 2008 09:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-89</guid>
		<description>We are implementing jsTree in our CMS, it works great but I still got a few questions. What is the callback for a mouse-click to open the url. When clicking on a node it just selects it but does not activate the link. At this moment we are using the onchange callback, it works but is also gets activated when using the cursor-keys.

Is it possible to lock the tree while updating the tree in the database?

Thanks.</description>
		<content:encoded><![CDATA[<p>We are implementing jsTree in our CMS, it works great but I still got a few questions. What is the callback for a mouse-click to open the url. When clicking on a node it just selects it but does not activate the link. At this moment we are using the onchange callback, it works but is also gets activated when using the cursor-keys.</p>
<p>Is it possible to lock the tree while updating the tree in the database?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: At0m</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-83</link>
		<dc:creator>At0m</dc:creator>
		<pubDate>Sat, 09 Aug 2008 23:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-83</guid>
		<description>Really looking forward to this next version....is Monday a possibility?</description>
		<content:encoded><![CDATA[<p>Really looking forward to this next version&#8230;.is Monday a possibility?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-82</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 08 Aug 2008 16:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-82</guid>
		<description>Thanks - that&#039;s brilliant as usual!

I&#039;ll hopefully have a chance to have a play with the workaround over then next few days, but will look forward to the native version.</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; that&#8217;s brilliant as usual!</p>
<p>I&#8217;ll hopefully have a chance to have a play with the workaround over then next few days, but will look forward to the native version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vakata</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-81</link>
		<dc:creator>vakata</dc:creator>
		<pubDate>Fri, 08 Aug 2008 08:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-81</guid>
		<description>@Colin
I&#039;ve been planning this feature for quite some time. Even the first version of the tree supported such functionality, but attached to callbacks. In the XML data source you could set the state to closed, even if the node has no children and load the contents onopen. As for the JSON data source - such state option is not included.
Still, all this is just workarounds - I am going to implement it in the tree so that it is native and there is no need for callback play. I will start working on that right away.
In the mean time - your idea is quite right. Put a placeholder node called loading (you could even assign a loading icon ;)) inside the node that is to be loaded async. In the config attach the callback like this.
Example:
...
onopen : function(NODE, TREE_OBJ) { 
  $.getJSON(&quot;urlhere.php?node_id=&quot; + NODE.id, 
  function (data) {
    $(NODE).replaceWith(TREE_OBJ.parseJSON(data));
  });
}
...

Your JSON should have a root node - the node that just got opened. This is why I&#039;m using replaceWith.

This is just a quick and dirty solution I came up with but I hope it helps and gets the job done.
I&#039;ll start working on the native implementation right away.

@Atom
I still have some testing to do on the rightclick implementation just to be sure everything is OK, and some testing to do on the multiple_on option - which could be used to have the user select many nodes without holding Ctrl, and deselect any of them by clicking again. This way you could easily attach your functionality (the checkbox idea) to the tree by simply writing a CSS line to have the selected nodes with a checked icon and then read the selected_arr array.</description>
		<content:encoded><![CDATA[<p>@Colin<br />
I&#8217;ve been planning this feature for quite some time. Even the first version of the tree supported such functionality, but attached to callbacks. In the XML data source you could set the state to closed, even if the node has no children and load the contents onopen. As for the JSON data source &#8211; such state option is not included.<br />
Still, all this is just workarounds &#8211; I am going to implement it in the tree so that it is native and there is no need for callback play. I will start working on that right away.<br />
In the mean time &#8211; your idea is quite right. Put a placeholder node called loading (you could even assign a loading icon ;)) inside the node that is to be loaded async. In the config attach the callback like this.<br />
Example:<br />
&#8230;<br />
onopen : function(NODE, TREE_OBJ) {<br />
  $.getJSON(&#8220;urlhere.php?node_id=&#8221; + NODE.id,<br />
  function (data) {<br />
    $(NODE).replaceWith(TREE_OBJ.parseJSON(data));<br />
  });<br />
}<br />
&#8230;</p>
<p>Your JSON should have a root node &#8211; the node that just got opened. This is why I&#8217;m using replaceWith.</p>
<p>This is just a quick and dirty solution I came up with but I hope it helps and gets the job done.<br />
I&#8217;ll start working on the native implementation right away.</p>
<p>@Atom<br />
I still have some testing to do on the rightclick implementation just to be sure everything is OK, and some testing to do on the multiple_on option &#8211; which could be used to have the user select many nodes without holding Ctrl, and deselect any of them by clicking again. This way you could easily attach your functionality (the checkbox idea) to the tree by simply writing a CSS line to have the selected nodes with a checked icon and then read the selected_arr array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: At0m</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-80</link>
		<dc:creator>At0m</dc:creator>
		<pubDate>Thu, 07 Aug 2008 18:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-80</guid>
		<description>Just curious when your planning to release another version...Is it possible to get a daily/nightly SVN update?</description>
		<content:encoded><![CDATA[<p>Just curious when your planning to release another version&#8230;Is it possible to get a daily/nightly SVN update?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-79</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 07 Aug 2008 15:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-79</guid>
		<description>Hi Vakata - I&#039;ve got another feature request - and it&#039;s quite a biggie.  I&#039;m using the JSON method for populating the tree, and some of the trees are very large (one is resulting in a 3MB JSON string).  Some other tree components have the ability to dynamically load a subfolder&#039;s contents as and when it&#039;s opened.  This would be a great addition.

I have a suspicion that this could kind of already be achieved, by adding a placeholder &quot;Loading&quot; node as a child of any nodes that have children (in order to force display of the [+-] open/close link), then onopen, loading the children via AJAX, and setting them as child nodes, before refreshing the tree.

If this is going to be the best way I&#039;ll look into it further, but it&#039;d be really nice to have support built right in. 

On the other hand, if it&#039;s already in there, and I&#039;ve just missed it, please point me in the right direction! :)</description>
		<content:encoded><![CDATA[<p>Hi Vakata &#8211; I&#8217;ve got another feature request &#8211; and it&#8217;s quite a biggie.  I&#8217;m using the JSON method for populating the tree, and some of the trees are very large (one is resulting in a 3MB JSON string).  Some other tree components have the ability to dynamically load a subfolder&#8217;s contents as and when it&#8217;s opened.  This would be a great addition.</p>
<p>I have a suspicion that this could kind of already be achieved, by adding a placeholder &#8220;Loading&#8221; node as a child of any nodes that have children (in order to force display of the [+-] open/close link), then onopen, loading the children via AJAX, and setting them as child nodes, before refreshing the tree.</p>
<p>If this is going to be the best way I&#8217;ll look into it further, but it&#8217;d be really nice to have support built right in. </p>
<p>On the other hand, if it&#8217;s already in there, and I&#8217;ve just missed it, please point me in the right direction! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vakata</title>
		<link>http://vakata.com/en/archives/12/comment-page-1#comment-78</link>
		<dc:creator>vakata</dc:creator>
		<pubDate>Thu, 07 Aug 2008 08:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://vakata.com/en/?p=12#comment-78</guid>
		<description>@Atom
I&#039;m glad you liked the plugin.
1) As for the checkboxes - I&#039;ll consider it for the next version - I believe it won&#039;t be tough to implement - just a little CSS and JS tweaking.
2) There is a doubleclick event handler - it is called ondblclk  - in the settings.callback object. It defaults to select and open/close the node.
As for the right click event - I&#039;ll get to it right away it is indeed useful.
3) Yeah. :( I know. I hope I will get round to building a good documentation soon. Note taken! :)</description>
		<content:encoded><![CDATA[<p>@Atom<br />
I&#8217;m glad you liked the plugin.<br />
1) As for the checkboxes &#8211; I&#8217;ll consider it for the next version &#8211; I believe it won&#8217;t be tough to implement &#8211; just a little CSS and JS tweaking.<br />
2) There is a doubleclick event handler &#8211; it is called ondblclk  &#8211; in the settings.callback object. It defaults to select and open/close the node.<br />
As for the right click event &#8211; I&#8217;ll get to it right away it is indeed useful.<br />
3) Yeah. :( I know. I hope I will get round to building a good documentation soon. Note taken! :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
