Hi, the velocity-code is executed on the server, while js-code runs on the
client side, AFTER the macro-code was executed .
You could try need to pass parameters to your macro via an URL parameter or
http POST.
Hope this helps!
Best, Michael
Am 12.05.2014 19:01 schrieb Eduardo Abritta
Hi,
2014-05-13 8:40 GMT+02:00 Michael Bußler michael.buss...@googlemail.com:
Hi, the velocity-code is executed on the server, while js-code runs on the
client side, AFTER the macro-code was executed .
You could try need to pass parameters to your macro via an URL parameter or
http POST.
Subject: Re: [xwiki-users] Using parameter macro in the js extension
Hi,
2014-05-13 8:40 GMT+02:00 Michael Bußler michael.buss...@googlemail.com:
Hi, the velocity-code is executed on the server, while js-code runs on the
client side, AFTER the macro-code was executed .
You could try need
To: users@xwiki.org
Subject: Re: [xwiki-users] Using parameter macro in the js extension
Hi,
2014-05-13 8:40 GMT+02:00 Michael Bußler michael.buss...@googlemail.com:
Hi, the velocity-code is executed on the server, while js-code runs on the
client side, AFTER the macro-code was executed .
You
Atenciosamente,
Eduardo Abritta
e-mail: eduardo.abri...@outlook.com |
Date: Tue, 13 May 2014 10:05:17 +0200
From: jeremie.bousq...@gmail.com
To: users@xwiki.org
Subject: Re: [xwiki-users] Using parameter macro in the js extension
Hi,
2014-05-13 8:40 GMT+02:00 Michael Bußler
Caleb,
I did what do you say and it worked.
Thank you.
Atenciosamente,
Eduardo Abritta
e-mail: eduardo.abri...@outlook.com |
Date: Tue, 13 May 2014 16:19:17 +0200
From: jeremie.bousq...@gmail.com
To: users@xwiki.org
Subject: Re: [xwiki-users] Using parameter macro in the js extension
Hi Sirs,
I am developing a macro in velocity (wiki macro) and need to use a parameter
(wiki macro parameter) defined by the user in my java script code (java script
extension). I tried can several methods but it is not working.
How can I do this?
Atenciosamente,
Eduardo Abritta
Hi,
To access to velocity variables from your javascript extension, you need to
enable Parse content option of the JavaScriptExtension object.
That means that your javascript code will be processed by velocity when
page is rendered.
Then to share a variable between your page and the javascript