<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Thanks. Don't know why mine was borked, but this does work (at least
    setting fields 'in' so far), many thanks<br>
    Catch me at SIGGRAPH to claim your beer or whatever.<br>
    Dave A<br>
    <br>
    On 6/29/2011 7:08 PM, GLG wrote:
    <blockquote cite="mid:009001cc36ca$a9ffd070$fdff7150$@com"
      type="cite">
      <pre wrap="">I think this will give you some ideas. It works in IE and
FF 
but we never tested other browsers. Good luck...

Cheers,
Lauren


</pre>
      <blockquote type="cite">
        <pre wrap="">-----Original Message-----
From: Dave A [<a class="moz-txt-link-freetext" href="mailto:dave@realmofconcepts.com">mailto:dave@realmofconcepts.com</a>]
Sent: Wednesday, June 29, 2011 8:56 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:info@3dnetproductions.com">info@3dnetproductions.com</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
Subject: Re: [X3D-Public] Has anyone gotten Contact
working in Firefox/Chrome?

The world loads fine stand-alone, but it's not meant
to work
stand-alone, it needs to interact with a web page. It
works fine in IE,
using getWorld, getNode, and setNodeEventIn work
great. The strange
'listener' looks something like this, and only works
in IE:

<script for="Contact" event="OnEvent(e, v, t)">
... script here ...

Where internal script does something like this:

    Browser.loadURL('OnEvent( params');

I'm more used to setting up actual listeners and such,
(Flux/Vivaty),
but this didn't work with Contact.

If you can find the time to send a code snippet of
your html container
and whatever glues it to the scene, that would be so
lovely.

Thanks

Dave A.



On 6/29/2011 5:42 PM, GLG wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">We have the officetowers.com world working with
</pre>
        </blockquote>
        <pre wrap="">Contact in
</pre>
        <blockquote type="cite">
          <pre wrap="">IE, FF, Chrome and even Safari and Opera (although
</pre>
        </blockquote>
        <pre wrap="">Opera
</pre>
        <blockquote type="cite">
          <pre wrap="">is not officially supported because it tends to be
</pre>
        </blockquote>
        <pre wrap="">too
</pre>
        <blockquote type="cite">
          <pre wrap="">slow and we're having other issues with it). This is
</pre>
        </blockquote>
        <pre wrap="">one
</pre>
        <blockquote type="cite">
          <pre wrap="">of the most complex worlds out there, with plenty of
</pre>
        </blockquote>
        <pre wrap="">SAI
</pre>
        <blockquote type="cite">
          <pre wrap="">scripts interfacing with CGI, SQL, cookies, MU
</pre>
        </blockquote>
        <pre wrap="">server
</pre>
        <blockquote type="cite">
          <pre wrap="">among others without trouble. I do not have much
</pre>
        </blockquote>
        <pre wrap="">time to
</pre>
        <blockquote type="cite">
          <pre wrap="">look over your code atm but at least now you know it
should work. What happens when you run your world
stand-alone in Contact? If you have the same issues
</pre>
        </blockquote>
        <pre wrap="">then
</pre>
        <blockquote type="cite">
          <pre wrap="">it is probably not the web browsers.

Cheers,
Lauren

</pre>
          <blockquote type="cite">
            <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:x3d-public-bounces@web3d.org">x3d-public-bounces@web3d.org</a> [<a class="moz-txt-link-freetext" href="mailto:x3d">mailto:x3d</a>-
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">public-
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:bounces@web3d.org">bounces@web3d.org</a>] On Behalf Of
<a class="moz-txt-link-abbreviated" href="mailto:dave@realmofconcepts.com">dave@realmofconcepts.com</a>
Sent: Wednesday, June 29, 2011 6:26 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
Subject: [X3D-Public] Has anyone gotten Contact
working in Firefox/Chrome?

Hi all.

I'm having trouble getting anything like SAI or EAI
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">or
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">whatever working
with Contact 7.2 and anything but IE.

I can't set any value to any field on any node. I
can't even getWorld on
it. I can getVersion ok, and a few other API's, so
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">I
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">know it's not brain
dead per-se. The scene loads ok via the SRC param
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">to
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">the 'embed', but I
can't get anything into or out of the scene.

And, how do you set up a 'listener'? I have this
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">odd
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">thing working in IE
but it doesn't work the same way in FF or Chrome.
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">Is
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">it a DOM thing of
some sort to set up?

Any working examples would get you my eternal
gratitude and beverage of
your choice when next we meet.

Dave A.

PS: the code:

<HTML>
<HEAD>
<TITLE>Not IE</TITLE>
<script>

        function SetSomething()
        {
                var n =
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">document.Contact.getWorld();
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">                alert (n); // always null
                alert
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">(document.Contact.getVersion());
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">// this is ok!
                document.Contact.setNodeEventIn
('MyText', 'string',
'test'); // fail
        }
</script>
</HEAD>
<body>
<BODY>
  <embed
id = 'Contact' name='Contact'
   width="96%%" height="96%%"
   SRC="SimpleScene.x3dv"
   DASHBOARD="TRUE"
   PrimitiveQuality="HIGH"
   antialias="TRUE"
   MaxTextureSize="0"
   LoadScreen="TRUE"
   RightMouseMenu="FULL"
  >
<input type='button' onClick='SetSomething()'
value='set'/>
</center>
</BODY>
</HTML>



_______________________________________________
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">http://web3d.org/mailman/listinfo/x3d</a>-
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">public_web3d.org
</pre>
        <blockquote type="cite">
          <pre wrap="">

-----
No virus found in this message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 10.0.1388 / Virus Database: 1516/3733 -
</pre>
        </blockquote>
        <pre wrap="">Release Date: 06/29/11
</pre>
        <blockquote type="cite">
          <pre wrap="">

</pre>
          <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
-----
No virus found in this message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 10.0.1388 / Virus Database: 1516/3734 - Release Date: 06/29/11
</pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </body>
</html>