Hi,

is there some way to dynamically refresh/change the content of the
Dictionary i18n object?
I currently have a <script src="lang.js"></script> that provides for
the content of my dictionary.

This works fine, but now the lang.js content has changed (through some
actions).
Unfortunately, the changes are not reflected in my Dictionary.

I tried this too:

Element e = DOM.getElementById(MSGS_JS_TAG_NAME);
if(e != null) {
        DOM.removeChild(RootPanel.get().getElement(), e);
}

e = DOM.createElement("script");
DOM.setElementProperty(e, "language", "JavaScript");
DOM.setElementProperty(e, "src", url);
DOM.setElementProperty(e, "id", MSGS_JS_TAG_NAME);
DOM.appendChild(RootPanel.get().getElement(), e);

But still the values I get from Dictionary are not the same as those
in the JS, until I eventually refresh the page.

Is there a way I can do this without refreshing?


Thanks,
Steven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to