6 Aug
2008
6 Aug
'08
8:29 p.m.
MikSan wrote:
Hi guys! Here is a quick question that I hope gets a quick answer.=) I have a Java Script var and a velocity var and what I want to do on the macro.vm file is:
VelocityVar = JavaScriptVar
Anyone know if this is possible being one on server side and the other on client side? And if possible how?
Not directly, as velocity is executed on the server long before the javascript starts to execute on the client. You can send an xmlhttprequest back to the server, or use a form to post data. -- Sergiu Dumitriu http://purl.org/net/sergiu/