[Paraview-developers] [ParaviewWeb] Nothing showed on client side

victor sv victorsv at gmail.com
Fri Jul 13 09:03:34 EDT 2012


Hi all,

I'm trying to show something in the client side, but i can see the renderer
in PWService. I use the following javascript code:
<script type="text/javascript">
 var serverURL = 'http://localhost:8080/PWService';
 var paraview = new Paraview(serverURL);
 paraview.createSession('testing','basic-test');
 var activeView = paraview.CreateIfNeededRenderView();

 var cyl = paraview.Cylinder();
 cyl.setResolution(1024)
 paraview.Show();

 var renderer = new webGLScriptRenderer("webgl", serverUrl);
 renderer.init(paraview.sessionId, activeView.__selfid__);
 renderer.setSize('640','480');
 renderer.bindToElementId("container-1");
 renderer.setForceSquareSize(true);
 renderer.start();

</script>

What am i doing wrong?

Best regards,
Víctor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120713/3f5681bd/attachment.htm>


More information about the Paraview-developers mailing list