Re: Best practice for injecting environment-specific settings

2013-11-12 Thread Geoffrey Arnold
Thanks Thomas. `Dictionary` is almost exactly what we need, however our GWT JavaScript is being loaded in an anonymous function so the variables aren't being set at `Window` scope. And unfortunately we don't have the ability to change this because a customer is loading our script. Other thoughts

Best practice for injecting environment-specific settings

2013-11-11 Thread geoffrey . arnold
Hello, What is the best practice for injecting/configuring environment-specific settings inside GWT-generated JavaScript? For example, we have a series of JSONP services hosted across a series of servers, and the hostnames/ports of those servers are different across our development/test/produc

Re: Attempting to load client script asynchronously results in error

2013-11-07 Thread Geoffrey Arnold
I didn't realize I needed to place the `` *after* the `` element (makes sense now that I think of it). Works like a charm. Thanks Jens! On Thu, Nov 7, 2013 at 3:27 PM, Geoffrey Arnold wrote: > Thanks for the quick response, Jens. > > I added the following to my App.gwt.xml:

Re: Attempting to load client script asynchronously results in error

2013-11-07 Thread Geoffrey Arnold
Thanks for the quick response, Jens. I added the following to my App.gwt.xml: ... and unfortunately I'm receiving the same error. Any other thoughts? On Tue, Nov 5, 2013 at 2:46 PM, Jens wrote: > I think using the xsiframe linker should solve this. At least I have never > seen thi

Attempting to load client script asynchronously results in error

2013-11-05 Thread geoffrey . arnold
Hello, I'm a new user of GWT. I'm attempting to load a client script asynchronously using the standard append-to-head technique: var scriptElement = document.createElement("script"); scriptElement.id = "myScript"; scriptElement.src = "myscript/myscript.nocache.js"; document.getElementsByTagName