留言板

Velocity Template

Kumari Anusha Kommuri,修改在8 年前。

Velocity Template

New Member 帖子: 11 加入日期: 16-1-20 最近的帖子
Hi.. I have a html form in vm file. Can i use Javascript also inside html file?
thumbnail
Manish Yadav,修改在8 年前。

RE: Velocity Template

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
Yes you can...inside VM files you can write HTML or CSS or JavaScript
Kumari Anusha Kommuri,修改在8 年前。

RE: Velocity Template

New Member 帖子: 11 加入日期: 16-1-20 最近的帖子
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,修改在8 年前。

RE: Velocity Template

New Member 帖子: 6 加入日期: 15-12-30 最近的帖子
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,修改在8 年前。

RE: Velocity Template

Regular Member 帖子: 110 加入日期: 15-1-2 最近的帖子
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>