Fórum

Velocity Template

Kumari Anusha Kommuri, modificado 8 Anos atrás.

Velocity Template

New Member Postagens: 11 Data de Entrada: 20/01/16 Postagens Recentes
Hi.. I have a html form in vm file. Can i use Javascript also inside html file?
thumbnail
Manish Yadav, modificado 8 Anos atrás.

RE: Velocity Template

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
Yes you can...inside VM files you can write HTML or CSS or JavaScript
Kumari Anusha Kommuri, modificado 8 Anos atrás.

RE: Velocity Template

New Member Postagens: 11 Data de Entrada: 20/01/16 Postagens Recentes
Can u pls show sample code for javascript function in vm file? I need a java script function to execute on submit of a form in vm file.
Ramesh Yelda, modificado 8 Anos atrás.

RE: Velocity Template

New Member Postagens: 6 Data de Entrada: 30/12/15 Postagens Recentes
Yes, u can add script in .vm file like normal html file. As I think there is no much difference between html and .vm file if you are adding any html code.
Shiva Krishna Goud, modificado 8 Anos atrás.

RE: Velocity Template

Regular Member Postagens: 110 Data de Entrada: 02/01/15 Postagens Recentes
Ramesh Yelda:
Yes, u can add script in .vm file like normal html file. As I think there is no much difference between html and .vm file if you are adding any html code.






same as html place at bottom of the .vm file like


<script type="text/javascript">
alert('executed');;
</script>