Forum OpenACS Development: Re: Social Network Analysis with XoWiki

Collapse
Posted by Claudio Pasolini on
Yes, there are some pages edited both by me and by Guest.

Wanting to be sure I added a ns_log notice to the body of the query of the includelet and actually there are some items related to two different users.

The following is the specific javascript generated by the xowiki page:

function draw() {
  if (typeof(G_vmlCanvasManager) == "object") {
      G_vmlCanvasManager.init_(window.document);
  }

  var g = new Graph();
g.addEdge($('631'), $('1470'), 41, 0, 5.0);

  var layouter = new Graph.Layout.Spring(g);
  layouter.layout();

  // IE does not pick up the canvas width or height
  $('collab').width=500;
  $('collab').height=500;

  var renderer = new Graph.Renderer.Basic($('collab'), g);
  renderer.radius = 5;
  renderer.draw();
}
 YAHOO.util.Event.addListener(window, 'load', draw);
//   YAHOO.util.Event.onContentReady('collab', draw);

The same context works as expected on oacs-5-4.

Collapse
Posted by Gustaf Neumann on
The "collaboration" is a single edge.

You are sure, you see no javascript error (e.g. with firebug in firefox)? You are sure, this is not a browser issue? If the answer to the above questions is "no js error", "works with oacs-5-4 in the same browser", i would add an "alert('draw');" to the begin of the draw function and check, whether this is called... My suspicion is that there is still something wrong with the master-templates on your site.

Collapse
Posted by Claudio Pasolini on
There are no javascript error.

The draw function is executed (alert box is shown).

The following are the data passed to the graphHTML proc:

nodes=1470 {Guest Guest (6)} 631 {Claudio Pasolini (44)}
edges={631,1470 41 4.1}
Collapse
Posted by Gustaf Neumann on
Claudio, i don't see anything wrong. my guess is that you see the same page content in your working oacs-5-4 version. The collaboration graph code is unchanged since at least 2007. Check the differences in the HTML page of your oacs-5-4 and oacs-5-5 version.