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

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Jul 16 09:07:39 EDT 2012


I'm pretty sure the path to the JavaScript is wrong

<script type="text/javascript" src="../js/ParaViewWeb.js"></script>

Moreover, you should change the ordering of the HTML. Put the script
tag after the div container...

Seb

On Mon, Jul 16, 2012 at 8:59 AM, victor sv <victorsv at gmail.com> wrote:
> Hi Seb,
>
> it seems that  http://localhost:8080/PWSimple application works right, it
> shows all renderers.
>
> Maybe the probIem is that i'm newbie in javascript too... I send you the
> index.jsp file and the log file. In the log file i get some warnings but i
> don't know the meaning...
>
> Thank you.
> Víctor.
>
> 2012/7/16 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>>
>> Hi Victor,
>>
>> the web page localhost:8080/PWService/test/index.jsp is really made
>> for testing purpose...
>> Meaning that, Selenium is used to execute some JavaScript code in that
>> web page context and double check that the server is responding the
>> way it is supposed to do.
>>
>> Did you tried any of the sample application provided with ParaViewWeb ?
>>
>> Like this one: http://localhost:8080/PWSimple/ ?
>>
>> If nothing is showing up then, it is likely that your ParaViewWeb
>> server is not properly install. If not, then, I'll need the full web
>> page because your JavaScript seems OK, if you do have some HTML
>> container with id "container-1" like as follow.
>>
>> <html>
>> <body>
>> <div id="container-1">
>> </div>
>> </body>
>> </html>
>>
>> Seb
>>
>> On Mon, Jul 16, 2012 at 3:33 AM, victor sv <victorsv at gmail.com> wrote:
>> > Hi again,
>> >
>> > sorry for the previous mail, i wrote it very bad :)
>> >
>> > Ok, i want to see something in the client side, and i use the previous
>> > code
>> > for that.
>> > When i go to localhost:8080/PWService/test/index.jsp only "Page used for
>> > testing purpose" message is showed.
>> > Every time i reload the webpage i can see a new "Active process" in
>> > localhost:8080/PWService/ , when i click in "View" link the renderer is
>> > showed right.
>> >
>> > The same is happening with the new line, and nothing is showed in
>> > localhost:8080/PWService/test/index.jsp, only "Page used for testing
>> > purpose" . I would like to show the renderer in client side
>> >
>> > do you know how?
>> >
>> > I try with other renderers with the same result.
>> >
>> > Thanks :)
>> > Víctor.
>> >
>> > 2012/7/14 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>> >>
>> >> You need to enable the webgl exporter on the server side as by default
>> >> we only generate images...
>> >>
>> >> paraview.updateConfiguration(true, "JPEG", "WebGL");
>> >>
>> >> On Fri, Jul 13, 2012 at 9:03 AM, victor sv <victorsv at gmail.com> wrote:
>> >> > 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.
>> >> >
>> >> > _______________________________________________
>> >> > Paraview-developers mailing list
>> >> > Paraview-developers at paraview.org
>> >> > http://public.kitware.com/mailman/listinfo/paraview-developers
>> >> >
>> >
>> >
>
>


More information about the Paraview-developers mailing list