<div>Hi Seb,<span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></div><div>     THank you very very much for your reply!</div><div>     the view(<span style="line-height: 1.5;">myview<span id="_editor_bookmark_start_1" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;">) is OK for "</span>Paraview.prototype.loadFile<span id="_editor_bookmark_start_2" style="display: none; line-height: 0px;">‍</span><span style="line-height: 1.5;">", only "</span><span style="line-height: 1.5;">OpenDataFile<span id="_editor_bookmark_start_3" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;">" can cause this error. At the same time, I used "</span><span style="line-height: 1.5;">Wireframe<span id="_editor_bookmark_start_5" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;">" in my code.</span></div><div><span style="line-height: 1.5;">     I trace the javascript in chrome Developer Tool, Everything seems fine, and I really get a data object loaded by </span><span style="line-height: 1.5;">"</span><span style="line-height: 1.5;">OpenDataFile</span><span style="line-height: 1.5;">" <span id="_editor_bookmark_start_8" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;"> which is smilar to the one loaded by "loadFile".</span></div><div><span style="line-height: 1.5;">     I find A strange point: when I directly use  </span><span style="line-height: 1.5;">"</span><span style="line-height: 1.5;">OpenDataFile</span><span style="line-height: 1.5;">", it can display! but when I excute </span></div><div><span style="line-height: 1.5;">                     "<span id="_editor_bookmark_start_6" style="display: none;">‍</span></span>paraview.Connect( pvserver IP, port)" </div><div>     to connect a pvserver, the error comes!<span id="_editor_bookmark_start_7" style="display: none; line-height: 0px;">‍</span></div><div>     </div><div>     Any Suggestions?</div><div><br></div><div><br></div><div>Thanks more!</div><div><span style="line-height: 1.5; color: rgb(144, 144, 144); font-family: 'Arial Narrow'; font-size: 12px;">------------------</span></div><div><div style="font-size:14px;font-family:Verdana;color:#000;"><div><div style="font-family: Simsun; font-size: medium; line-height: normal;"><span style="">------------------</span><span style="">------------------</span><span style="">--</span></div><div style="font-family: Simsun; font-size: medium; line-height: normal;"><span style="line-height: 18px;"><font face="黑体" color="#999999"><b><a href="http://baike.baidu.com/view/350205.htm#sub9836231">Ewin.TD</a></b></font></span></div><div style="font-family: Simsun; font-size: medium; line-height: normal;"><div style="line-height: 21px;"><span style="line-height: 1.5; font-family: 'Arial Narrow'; font-size: 12px;">-----------------------------------</span></div></div></div></div></div><div><div><br></div><div dir="ltr">Hi Ewin,<div><br></div><div>this version of ParaViewWeb is so old, that I don't remember it on top of my head.</div><div><br></div><div>I will guess that the view was not properly created. (myview) hence the NoneType.</div>
<div>Moreover, you will have an issue with "wirefire" which should be "Wireframe" I believe.</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 4:03 AM, Ewin <span dir="ltr"><<a href="mailto:tiandong@fingergo.com" target="_blank">tiandong@fingergo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div>     I want to show paraview result on webpage,  and I setup the paraviewweb envi (version 3.98.0). </div>
<div>     Method "paraview.loadData" can get a normal source object and show well, but it can only open native file. So, I use "paraview.OpenDataFile" to read the remote file, but I got an Error:</div>
<div> </div><div>     <font color="#ff0000"> 'NoneType' object has no attribute 'Representations'</font><span style="line-height:0px">‍</span></div><div><font color="#ff0000">     </font></div><div><font color="#ff0000">     </font>My Code:</div>
<div>            <font color="#ff0000">paraview = new Paraview(serverUrl);<span style="line-height:0px">‍</span></font></div><div><font color="#ff0000">            ......</font></div><div><font color="#ff0000">           var reader = paraview.OpenDataFile(val);<span style="line-height:0px">‍</span></font></div>
<div><font color="#ff0000">           <span style="line-height:1.5">paraview.SetDisplayProperties( {</span></font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">              </span>'proxy' : reader <span style="line-height:0px">‍</span>,</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap">            </span> 'view'  : myview,</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">          </span>Representation : 'wirefire<span style="line-height:0px">‍</span>'</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap">    </span>    } );</font><span style="line-height:0px">‍</span></div><div><br></div><div>Any help will be appreciated!</div><div>Thanks all!</div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">
------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div style="font-family:Simsun;font-size:medium;line-height:normal"><span>------------------</span><span>------------------</span><span>--</span></div>
<div style="font-family:Simsun;font-size:medium;line-height:normal"><span style="line-height:18px"><font face="黑体" color="#999999"><b><a href="http://baike.baidu.com/view/350205.htm#sub9836231" target="_blank">Ewin.TD</a></b></font></span></div>
<div style="font-family:Simsun;font-size:medium;line-height:normal"><div style="line-height:21px"><br></div></div></div></div></blockquote></div><br></div></div>