[Paraview] No rendering in ParaviewWeb with javascript
Purohit, Sumit
Sumit.Purohit at pnnl.gov
Tue Oct 23 16:08:56 EDT 2012
Hi Everyone,
I am a newbie (and this is a cliche ) in paraview and trying to run ParaViewWeb using javascript rendering.
I installed the Paraview Web and i can access various webapps Ex :
http://localhost:8180/PWApp/index.jsp
http://localhost:8180/PWService/
[ i installed ParaviewWeb on port 8180]
As a next step i am tried to use its javascript rendering but could not see any thing on the page.
JavaScript console shows "Error: Connection failed" in line 116 ParaviewWeb.js
Here is my complete HTML
<html>
<head>
<script type="text/javascript" src="http://localhost:8180/PWService/js/ParaViewWeb.js"></script>
</head>
<body>
<table width='100%'>
<tr>
<td>Viewport title</td>
</tr>
<tr>
<td id='renderer-container-id'>
<!-- The renderer will be inserted here -->
<script type="text/javascript">
// Set the web service base URL
var serverUrl = "http://localhost:8180/PWService";
//
// Create a paraview proxy
//
var paraview = new Paraview(serverUrl);
paraview.createSession("Session name", "Session comment", "default");
var activeView = paraview.CreateIfNeededRenderView();
// Create and bind renderer
var renderer = new JavaScriptRenderer("rendererName", serverUrl);
renderer.init(paraview.sessionId, activeView.__selfid__);
renderer.setSize('200','200');
renderer.bindToElementId("renderer-container-id");
renderer.start();
</script>
</td>
</tr>
</table>
</body>
</html>
Thank you for the help.
Sumit Purohit
More information about the ParaView
mailing list