So I have 2 buttons and each button click is supposed to call 2 different functions. I figured I can use Javascript to get the values but how do I get the value to be usable in a macro?  What I have tried is this  <script type="text/javascript...
In Velocity I set a variable like this:   #at ($page.config)     #set ($zip = $helper.xssSafeString($url.param("zip")))  #end   Now I want to access the value of $zip in a JavaScript file that is included like this:   #at ($page.body)     <...
I'm trying to add a jQuery post to some JavaScript on a web page. The entire page is built up of several Velocity templates. Everything has been fine until I've tried to add the jQuery post, now I get:  org.apache.velocity.exception.ParseErro...
I want to implement a sort of Glossary in a Velocity template (using Javascript). The following is the use case:   there are a large number of items whose description may contain references  to predefined terms there is a list of terms which are defi...
I'm trying to animate an element's width using velocity and the calc() function.  $("#menuContainer").velocity({width: "calc(100% + -260px)"}, 500);   this animates the element's width to 0.  Does .velocity not support the...
I am having a velocity template file which I am trying to convert into pdf. After googling a bit I found a framework called JSPDf. When I am trying to use it it gives me error Uncaught TypeError: Cannot read property 'cells' of undefined jspd...
I am trying to check in the form if there is an existing item already exists in the db but it seems that javascript code itself is not getting called. Here is my code.  <div class="field-group">     <label class="label">Pr...
If a have a Java object (lets say a User object), and I use velocity to template the page so I can access a field in the user object like ${user.id}, is there an easy way to convert this into a javascript object (so I can access the fields of the Use...
I am trying to use a variable from velocity in my external js file. I had a look also at Access Velocity Variable in JavaScript File but that helped me only use it in js only if it is written in the .vm file.   My velocity:    #set ($testvar= "#i...
I have a VM file with the following codes:  UPDATED:                   Input Form                      #FW{                 display: none;             }                        function showSelect()     {         var post = document.getElementById(...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.