Questions tagged as 'javascript'

1
answer

Load javascript code from XMLHttpRequest

I am loading content into a div with XMLHttpRequest, but I want to run pure javascript code to change the contents of another div. I used to work with jquery and it was very simple, but I have not achieved it with pure javascript. var req = n...
asked by 26.12.2018 / 22:38
1
answer

Get data from a form and create a url to which I redirect with javascript

I have a form and I would like it when I press a button to redirect me to a page with the values in the url, something like this:    "www.google.com?nom=luis&[email protected]". This is my code: <button id="send" onclick="p...
asked by 26.12.2018 / 22:43
2
answers

Select all rows of datatable

I want to add a checkTodo that marks all the rows of a datatable. each row has its own checkbox that is rendered according to an attribute called 'selectable'. At the moment I managed to totalize the amount of voucher selectable and the sum of t...
asked by 17.12.2018 / 12:32
0
answers

how to add dynamic fields using ruby on rails and stimulus js?

I'm wanting to make a nested form in rails, with fronted in stimulus js. In the case a Provider can have many contacts, then in the Supplier form I must add a button that allows adding inputs to load Contacts as many times as I want. _form.ht...
asked by 26.12.2018 / 23:32
2
answers

how to create a data dictionary?

Good I have this in my js, the problem is that in my database every column is a month and I keep the city for example. city: in, column1 (January): 12 etc .. What I want first is to catch the current month to print the number you have, what o...
asked by 21.12.2018 / 16:24
0
answers

AJAX DOES NOT SEND THE DATA TO PHP

The idea of the code is to prevent the page from reloading when sending a form, I read that the best option is with Ajax, but when doing it with ajax, it does not send me the data I need to the php I am using. $(document).ready(function(...
asked by 21.12.2018 / 15:14
1
answer

Simulate event click JavaScript for laravel

I have a capture form, my problem is that when I want to see or edit some options I have them hidden if the user clicks on the radio activates other radios or text fields this works perfectly for me. My question is how do I simulate the click...
asked by 21.12.2018 / 15:53
1
answer

Firebase auth does not synchronize data

I'm starting with firebase. I have a registration screen in html and the js that contains the script of the firebase authentication, as it comes in its documentation. However, when filling in the registration form, users are not created in fi...
asked by 16.12.2018 / 00:22
2
answers

Function JS runs only once

My problem is that my JS function only works for me the first time I run it and if I try to execute it a second time it gives me this error: <script type="text/javascript"> $(document).ready(function(){ $('#bt...
asked by 16.12.2018 / 04:30
2
answers

I can not retrieve data from a form (HTML and JavaScript)

The idea is that I have a form, and when I fill it out and click on a button, it shows the results just below, on the same HTML page. It is assumed that when you click on: <input type="button" name="validar" value="Mostrar" onclick="mostrar...
asked by 15.12.2018 / 16:38