<?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: More about the JavaScript InfoVis Toolkit 1.1</title>
	<atom:link href="http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/</link>
	<description>Data Visualization, JavaScript and Computer Science related stuff</description>
	<lastBuildDate>Sat, 10 Jul 2010 06:02:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nicolas</title>
		<link>http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/comment-page-1/#comment-355</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Sat, 23 May 2009 16:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thejit.org/?p=719#comment-355</guid>
		<description>Hi,

I don&#039;t think this is the better place for discussing this, I guess that poping that question in the google group for this toolkit would be better: 

http://groups.google.com/group/javascript-information-visualization-toolkit

I&#039;ll try to answer to the question:

&quot;How to pass this object to the file static1-rgraph.js, so as it will assume the value of var D in function init()?&quot;

This is done by making an Ajax call to get the json result from your file.
In order to execute your php file and be able to make an Ajax call from  the client (say from the init function) to the service exposed by your php file you need something like a server (apache, etc).
Once you placed your file server side then in the init function you can make an ajax call like this (I&#039;m assuming you&#039;re using MooTools):

&lt;pre name=&quot;code&quot; class=&quot;js:nogutter:nocontrols&quot;&gt;
//canvas and rgraph initialization code...
var canvas = new Canvas(/* ... */);
var rgraph = new RGraph(/* ... */);

var jsonRequest = new Request.JSON({
  url: &quot;http://site.com/yourphpfile.php&quot;, 

  onComplete: function(json){
    rgraph.loadTreeFromJSON(json);
    rgraph.compute();
    rgraph.plot();
}}).get({&#039;someparametername&#039;: &#039;someparametervalue&#039;});
&lt;/pre&gt;

If you want to know more about the MooTools request object check it out here:

http://mootools.net/docs/core/Request/Request.JSON

I&#039;m sorry but I can&#039;t package any examples having server side interaction because I&#039;d need to package a standalone server with the library, and it seems kind of overkill.

If you have further questions please send them to the google group for this library (I putted the link to it above).

Regards,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I don&#8217;t think this is the better place for discussing this, I guess that poping that question in the google group for this toolkit would be better: </p>
<p><a href="http://groups.google.com/group/javascript-information-visualization-toolkit" rel="nofollow">http://groups.google.com/group/javascript-information-visualization-toolkit</a></p>
<p>I&#8217;ll try to answer to the question:</p>
<p>&#8220;How to pass this object to the file static1-rgraph.js, so as it will assume the value of var D in function init()?&#8221;</p>
<p>This is done by making an Ajax call to get the json result from your file.<br />
In order to execute your php file and be able to make an Ajax call from  the client (say from the init function) to the service exposed by your php file you need something like a server (apache, etc).<br />
Once you placed your file server side then in the init function you can make an ajax call like this (I&#8217;m assuming you&#8217;re using MooTools):</p>
<pre name="code" class="js:nogutter:nocontrols">
//canvas and rgraph initialization code...
var canvas = new Canvas(/* ... */);
var rgraph = new RGraph(/* ... */);

var jsonRequest = new Request.JSON({
  url: "http://site.com/yourphpfile.php", 

  onComplete: function(json){
    rgraph.loadTreeFromJSON(json);
    rgraph.compute();
    rgraph.plot();
}}).get({'someparametername': 'someparametervalue'});
</pre>
<p>If you want to know more about the MooTools request object check it out here:</p>
<p><a href="http://mootools.net/docs/core/Request/Request.JSON" rel="nofollow">http://mootools.net/docs/core/Request/Request.JSON</a></p>
<p>I&#8217;m sorry but I can&#8217;t package any examples having server side interaction because I&#8217;d need to package a standalone server with the library, and it seems kind of overkill.</p>
<p>If you have further questions please send them to the google group for this library (I putted the link to it above).</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debora</title>
		<link>http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/comment-page-1/#comment-354</link>
		<dc:creator>Debora</dc:creator>
		<pubDate>Sat, 23 May 2009 15:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thejit.org/?p=719#comment-354</guid>
		<description>Hi Nicolas, 
We are trying to implement your software (rgraph) in a research network map for our group at the University.
We have still with some problems to accomplish that and I hope you could help.  We are acessing a data bank through a PHP function, returning an Array.
So we use the file json.php (This package provides a simple encoder and decoder for JSON notation) in order to transform this array in a javascript object.

$json = new Services_JSON();
$resposta = $json-&gt;encode($dados);

The Question is: How to pass this object to the file static1-rgraph.js, so as it will assume the value of var D in function init()?

Also
Do you have any other implementation where the data results from a consult in a data base (data bank or text file)?
Congratulations for your very interesting work.
Kind regards,
Debora</description>
		<content:encoded><![CDATA[<p>Hi Nicolas,<br />
We are trying to implement your software (rgraph) in a research network map for our group at the University.<br />
We have still with some problems to accomplish that and I hope you could help.  We are acessing a data bank through a PHP function, returning an Array.<br />
So we use the file json.php (This package provides a simple encoder and decoder for JSON notation) in order to transform this array in a javascript object.</p>
<p>$json = new Services_JSON();<br />
$resposta = $json-&gt;encode($dados);</p>
<p>The Question is: How to pass this object to the file static1-rgraph.js, so as it will assume the value of var D in function init()?</p>
<p>Also<br />
Do you have any other implementation where the data results from a consult in a data base (data bank or text file)?<br />
Congratulations for your very interesting work.<br />
Kind regards,<br />
Debora</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/comment-page-1/#comment-353</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Sat, 23 May 2009 09:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thejit.org/?p=719#comment-353</guid>
		<description>Nice work! :)</description>
		<content:encoded><![CDATA[<p>Nice work! <img src='http://blog.thejit.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Bhide</title>
		<link>http://blog.thejit.org/2009/05/21/more-about-the-javascript-infovis-toolkit-11/comment-page-1/#comment-351</link>
		<dc:creator>Nitin Bhide</dc:creator>
		<pubDate>Sat, 23 May 2009 04:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thejit.org/?p=719#comment-351</guid>
		<description>I have made a Treemap visualization of 2009 General Elections of India using the Treemap component from the JIT. It is available at http://thinkingcraftsman.in/articles/election2009vis/results2009.htm. 

Thank you for excellent toolkit.

Nitin</description>
		<content:encoded><![CDATA[<p>I have made a Treemap visualization of 2009 General Elections of India using the Treemap component from the JIT. It is available at <a href="http://thinkingcraftsman.in/articles/election2009vis/results2009.htm" rel="nofollow">http://thinkingcraftsman.in/articles/election2009vis/results2009.htm</a>. </p>
<p>Thank you for excellent toolkit.</p>
<p>Nitin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
