javascript - Use ScriptInjector in GWT with parameters / data attributes -
how pass id=somescript , param1=value1 gwt scriptinjector? ie, js:
<script src="https://blah.com/somescript.js" id="somescript" param1="value1"></script>
could loaded this:
scriptinjector.fromurl("https://blah.com/somescript.js").setcallback(new callback<void, exception>() { public void onsuccess(void result) { } public void onfailure(exception reason) { } }).inject();
however, can pass in id="somescript" , param1="value1"?
pass parameters in via url pass parameters in url.
scriptinjector.fromurl("https://blah.com/somescript.js?param1="+value1).setcallback(new callback<void, exception>() { public void onsuccess(void result) { } public void onfailure(exception reason) { } }).inject();
javascript gwt
No comments:
Post a Comment