[Paraview] No rendering in ParaviewWeb with javascript

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Oct 24 07:33:09 EDT 2012


Try to move the script section between </table> and </body> . Moreover does the other applications let you properly see 3d content?

Seb

On Oct 23, 2012, at 4:08 PM, "Purohit, Sumit" <Sumit.Purohit at pnnl.gov> wrote:

> 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 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list