<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I know there is a followup email to
      this, but this one perhaps may be the easiest to answer...<br>
      <br>
      If the exact same scene is displayed in two separate X3D "windows"
      on an HTML page, it comes down to how the X3D is handled.<br>
      <br>
      If X3D is handled via pluggin, then as long as the plugin keeps
      the instances separate; there should not be an issue. I believe BS
      Contact works this way.<br>
      <br>
      If the code is directly inline and displayed via a
      JavaScript-based engine (e.g., X3DOM and perhaps Cobweb), then it
      depends on the X3D code. If there is no use of the 'id' attribute
      then things should be handled separately. I know that X3DOM keeps
      an array of instances at the very top level. If the X3D code uses
      'id', then the resultant HTML file is not valid as there are two
      occurrences of the same 'id'. But, this being HTML, the browser
      will not crash; but references to 'id' will not work separately.<br>
      <br>
      In HTML there is only one namespace and namescope. All
      user-supplied HTML script code will need to correctly manage that
      there are two instances. It may be sufficient to use
      $('#x3d_instance_1 transform).not('some-selection-criteria') and
      $('#x3d_instance_2 transform).not('some-selection-criteria') to
      differentiate between the two instances when accessing X3D nodes
      from JavaScript code.<br>
      <br>
      <br>
      Leonard Daly<br>
      <br>
      <br>
    </div>
    <blockquote type="cite"
cite="mid:CAGC3UE=XtB7BTwDb7LTBy1gpgc1gFoFmKpgKWeTVxXFLVz7abw@mail.gmail.com">
      <div dir="auto">What happens if duplicate x3d scenes are shown in
        HTML.   Are the JavaScript variables shared, or are they made
        unique?
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks, </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">John</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      <font class="tahoma,arial,helvetica san serif" color="#333366">
        <font size="+1"><b>Leonard Daly</b></font><br>
        3D Systems & Cloud Consultant<br>
        LA ACM SIGGRAPH Chair<br>
        President, Daly Realism - <i>Creating the Future</i>
      </font></div>
  </body>
</html>