Thak you Dmitry,
I ill give it a try!
Regards, Erich
Am 24.03.2018 14:51, schrieb Dmitry Gusev:
Hi Erich,
one example of using jQuery in inline scripts can be:
require(['jquery'], function($) {
});
I would suggest to replace inline scripts
Hi Ilya,
Ok, thanks so far.
One problem reamains: according to requirejs it should be no problem
with shim to support the use of already existing browser global scripts.
I tried to do so by adding this line to our border component tml:
And putting this script under the js folder of my app:
You’ll have to re-write it. jQuery will be available all right, alongside
with some other built-in JS modules.
Converting a big application to AMD is a bit painful, but definitely worth
it in the end.
That’s an example of a typical small Tapestry script (with usage of Google
Analytics as a bonus):
Hi Erich,
one example of using jQuery in inline scripts can be:
require(['jquery'], function($) {
});
I would suggest to replace inline scripts with JavaScript modules,
i.e. one per component/page:
http://tapestry.apache.org/javascript-modules.html
Dear all,
after migrating to tapestry 5.4.3 it is not possible anymore, to use
inlines scripts in tml files.
In principle I understood the idea and usgage of requirejs, but I'm
confused, because they seem to be several ways to achieve certain goals
for individual solutions.
So I try to giv