Questions tagged as 'javascript'

1
answer

Remember fields in a form in the browser does not work with ajax calls

When creating a form in the normal way it means: <form action="index.html" method="post"> </form> When submitting or submitting the data of each input, they are saved (remembered by the browser) and displayed in the input the ne...
asked by 17.01.2017 / 16:57
4
answers

How to pass javascript variables to ruby on rails?

What I want to achieve is that when a user clicks on my menu that is on a part of my page this same one appears but on another part of my website. Function of my menu title <div id="TituloMenu" > <%= image_tag "menu2.png" , :cl...
asked by 19.12.2016 / 22:26
3
answers

Links with Iframes

Good, I need through iframes, show information from a blog, I built 3 iframes that are showing the latest news, The problem is that I had to do so, because the page is totally different to the blog, because the blog is of Wordpress, and I do not...
asked by 18.12.2016 / 18:22
1
answer

How can I use "let" out of a block in javascript?

I'm experimenting with JavaScript and I came across this variable scope in JavaScript, mainly with let , which is integrated in ECMAscript 6. The problem is this: I have a prompt that asks the user for their age and compares it in a...
asked by 01.12.2016 / 04:52
1
answer

How to avoid double spaces in html input?

I want to avoid those annoying double spaces in some inputs, do you have any idea how I can do it? I do not think I have a problem with doing it completely on the client's side. Here is an example of one of my input: <div class="form-gr...
asked by 10.11.2017 / 21:04
1
answer

Change href of multiple labels to with document.getElementsByClassName

I need to change the href with JavaScript (without Jquery) in the following code: <div class="set"> <a href="https://snapwidget.com/embed/4972t07">link a</a> </div> <div class="set"> <a href="https://sn...
asked by 20.01.2018 / 02:01
3
answers

Change color of a div when moving the scroll

What I want is that when you move the scroll, change the color of a div. change from white to transparent <div style="position : fixed;width : 100%;margin-top:-20px; background-color: white;height: 80px; " data-collapse="all" data-animat...
asked by 21.11.2017 / 18:56
1
answer

Update post meta on wordpress and woocommerce

I am creating an e-commerce based on tourism where on the payment page the purchased trip is shown along with the number of people who are going to travel. This amount can be changed on the same page and then after the change the traveler's data...
asked by 02.10.2016 / 23:10
4
answers

Fix columns in Datatables html5- js

I want to set some columns in a table made with Datatable. However, when I use the fixedColumns property, all it does is duplicate the number of columns that is specified, but it puts it on top of the others, so they overlap. I attach...
asked by 02.01.2017 / 15:15
2
answers

Photo caption when mouse is passed over

I am trying to modify a wordpress template of "envato market" called Kalium, it is a template dedicated to show photographic content, portfolios and galleries of various types, one of those types is one called "lightbox portfolio". In the opt...
asked by 24.08.2016 / 11:24