On Wed, Jan 8, 2014 at 11:06 PM, Dominic Hamon <notifications@github.com>wrote:

> In appengine_hosting/static_files/index.html:
>
> > @@ -0,0 +1,15 @@
> > +<html>
> > +  <body>
> > +    <script language="JavaScript">
> > +      function getNDTServer() {
> > +        // TODO(tiziana): Integrate with mlab-ns, when the Flash policy files
> > +        // are deployed on prod servers.
> > +        return "ndt.iupui.mlab1.nuq0t.measurement-lab.org";
> > +      }
> > +    </script>
> > +    <object type="application/x-shockwave-flash" data="ndt.swf"
> > +      width="1000" height="600">
>
> that won't work. getNDTServer will be asynchronous.
>

I worked when I tested it, both locally and remotely.
However, I understand that may not work  all the times.
I changed it in my last commit.

> You need to set it like the java applet - run the javascript to get the
> server, then insert the object programmatically with the hostname parameter
> set. Or at least insert the object so it can call a synchronous version of
> getNDTServer after the XHR has returned.
>
> Either way, you can't run the swf without having the server name ready.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/anantsubramanian/ndt-flash/pull/6/files#r8741780>
> .
>