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 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...
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(...
I want to scroll #carousel 500px on x-axis. But I can't understand why velocity function does not do anything... Where is a mistake?  HTML:     <div class="carousel" id="carousel">      <div class="carousel__scroller&...
i have a string with XML tags  <?XML version="1.0" encoding="UTF-8"?> <s-d-structure>  <heading>This is title</heading>   <main>    <cad>     <bad>this is formatted html</bad>      <n...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.