I think i'm using a correct path. I can "read" ParaViewWeb.js from: <a href="http://localhost:8080/PWService/js/ParaViewWeb.js">http://localhost:8080/PWService/js/ParaViewWeb.js</a><div>and i'm launching the test application from: <a href="http://localhost:8080/PWService/test/index.jsp">http://localhost:8080/PWService/test/index.jsp</a><br>
<br>Both files are locally located in: /usr/share/tomcat6/webapps/PWService/...</div><div><br></div><div>I do the proposed changes and using the absolute path i get the same error...</div><div><br></div><div>Anything about the warnings?<br>
<br>Karma will reward you :)<br>Víctor.<br><br><div class="gmail_quote">2012/7/16 Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm pretty sure the path to the JavaScript is wrong<br>
<br>
<script type="text/javascript" src="../js/ParaViewWeb.js"></script><br>
<br>
Moreover, you should change the ordering of the HTML. Put the script<br>
tag after the div container...<br>
<br>
Seb<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Jul 16, 2012 at 8:59 AM, victor sv <<a href="mailto:victorsv@gmail.com">victorsv@gmail.com</a>> wrote:<br>
> Hi Seb,<br>
><br>
> it seems that <a href="http://localhost:8080/PWSimple" target="_blank">http://localhost:8080/PWSimple</a> application works right, it<br>
> shows all renderers.<br>
><br>
> Maybe the probIem is that i'm newbie in javascript too... I send you the<br>
> index.jsp file and the log file. In the log file i get some warnings but i<br>
> don't know the meaning...<br>
><br>
> Thank you.<br>
> Víctor.<br>
><br>
> 2012/7/16 Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
>><br>
>> Hi Victor,<br>
>><br>
>> the web page localhost:8080/PWService/test/index.jsp is really made<br>
>> for testing purpose...<br>
>> Meaning that, Selenium is used to execute some JavaScript code in that<br>
>> web page context and double check that the server is responding the<br>
>> way it is supposed to do.<br>
>><br>
>> Did you tried any of the sample application provided with ParaViewWeb ?<br>
>><br>
>> Like this one: <a href="http://localhost:8080/PWSimple/" target="_blank">http://localhost:8080/PWSimple/</a> ?<br>
>><br>
>> If nothing is showing up then, it is likely that your ParaViewWeb<br>
>> server is not properly install. If not, then, I'll need the full web<br>
>> page because your JavaScript seems OK, if you do have some HTML<br>
>> container with id "container-1" like as follow.<br>
>><br>
>> <html><br>
>> <body><br>
>> <div id="container-1"><br>
>> </div><br>
>> </body><br>
>> </html><br>
>><br>
>> Seb<br>
>><br>
>> On Mon, Jul 16, 2012 at 3:33 AM, victor sv <<a href="mailto:victorsv@gmail.com">victorsv@gmail.com</a>> wrote:<br>
>> > Hi again,<br>
>> ><br>
>> > sorry for the previous mail, i wrote it very bad :)<br>
>> ><br>
>> > Ok, i want to see something in the client side, and i use the previous<br>
>> > code<br>
>> > for that.<br>
>> > When i go to localhost:8080/PWService/test/index.jsp only "Page used for<br>
>> > testing purpose" message is showed.<br>
>> > Every time i reload the webpage i can see a new "Active process" in<br>
>> > localhost:8080/PWService/ , when i click in "View" link the renderer is<br>
>> > showed right.<br>
>> ><br>
>> > The same is happening with the new line, and nothing is showed in<br>
>> > localhost:8080/PWService/test/index.jsp, only "Page used for testing<br>
>> > purpose" . I would like to show the renderer in client side<br>
>> ><br>
>> > do you know how?<br>
>> ><br>
>> > I try with other renderers with the same result.<br>
>> ><br>
>> > Thanks :)<br>
>> > Víctor.<br>
>> ><br>
>> > 2012/7/14 Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
>> >><br>
>> >> You need to enable the webgl exporter on the server side as by default<br>
>> >> we only generate images...<br>
>> >><br>
>> >> paraview.updateConfiguration(true, "JPEG", "WebGL");<br>
>> >><br>
>> >> On Fri, Jul 13, 2012 at 9:03 AM, victor sv <<a href="mailto:victorsv@gmail.com">victorsv@gmail.com</a>> wrote:<br>
>> >> > Hi all,<br>
>> >> ><br>
>> >> > I'm trying to show something in the client side, but i can see the<br>
>> >> > renderer<br>
>> >> > in PWService. I use the following javascript code:<br>
>> >> > <script type="text/javascript"><br>
>> >> > var serverURL = '<a href="http://localhost:8080/PWService" target="_blank">http://localhost:8080/PWService</a>';<br>
>> >> > var paraview = new Paraview(serverURL);<br>
>> >> > paraview.createSession('testing','basic-test');<br>
>> >> > var activeView = paraview.CreateIfNeededRenderView();<br>
>> >> ><br>
>> >> > var cyl = paraview.Cylinder();<br>
>> >> > cyl.setResolution(1024)<br>
>> >> > paraview.Show();<br>
>> >> ><br>
>> >> > var renderer = new webGLScriptRenderer("webgl", serverUrl);<br>
>> >> > renderer.init(paraview.sessionId, activeView.__selfid__);<br>
>> >> > renderer.setSize('640','480');<br>
>> >> > renderer.bindToElementId("container-1");<br>
>> >> > renderer.setForceSquareSize(true);<br>
>> >> > renderer.start();<br>
>> >> ><br>
>> >> > </script><br>
>> >> ><br>
>> >> > What am i doing wrong?<br>
>> >> ><br>
>> >> > Best regards,<br>
>> >> > Víctor.<br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Paraview-developers mailing list<br>
>> >> > <a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
>> >> > <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
>> >> ><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>