Re: Best practice for injecting environment-specific settings
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?
On Tue, Nov 12, 2013 at 3:45 AM, Thomas Broyer <t.broyer@gmail.com> wrote:
Use a "dynamic host page": http://www.gwtproject.org/articles/dynamic_host_page.html
On Monday, November 11, 2013 7:47:22 PM UTC+1, geoffre...@gmail.com wrote: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/production environments. My guess is `DataResource` is the preferred method, however adding another round-trip to the server seems like a bit of overkill. Is there another way?Thanks in advance,Geoff.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home