Questions tagged as 'javascript'

1
answer

Print on a href inside a modal the Id of a BD

How can I do the following: I am sending the data from a tr to a modal in the following way: <span id="Id<?php echo $res['id']; ?>" style="display: none;"><?php echo $res['id']; ?></span> I pick them up in the mod...
asked by 17.08.2018 / 17:19
1
answer

Canvas full screen

I have a problem wanting to make the canvas full screen, the problem is that I want to do it without scale transformations css, I want to do it from css and js with defined sizes function autoScale(id) { var d = document, E, iw = window.innerW...
asked by 06.09.2018 / 18:54
1
answer

Modify Instance from another Instance in the same Database. Firebase

in this opportunity I have a small requirement that I have not been able to carry out. I have a database girl structured in this way; in AP a data will be loaded every day, which will always occupy the last positions obviously...
asked by 06.09.2018 / 20:01
1
answer

How to download a local file that is on Another Local disk with pure Javascript

I have the following code: <button onclick="javascript:descargarZip(this.value)" value="<%=sArchivoZip%>"><img src="./IMG/icons/mail-arrow-down-icon.png" /></button> which calls a download function in js: function...
asked by 06.09.2018 / 01:16
2
answers

Double Scrollbar when opening a Modal

The problem is that 2 scrollbars appear, one of the modal and another of the body, I want to remove the body when the modal is active. This is my code: <div id="myModal" class="modal"> </div> .modal { display: none;...
asked by 06.09.2018 / 17:35
3
answers

The index does not link the .css files. MIME error type text / html

After finishing my web site, I have uploaded it to the server, and I have the following error with the .css and .js files: I have looked for a solution and there is no way. I think it's due to a problem with the routes. If someone has e...
asked by 15.09.2018 / 15:23
1
answer

How to create the production file in react with webpack

I have a simple crud that I did in react, the issue is that I did not use the create-react-app tool, but that I did it from scratch with webpack and babel, etc. My problem is how to create the production folder since with webpack it only does...
asked by 13.09.2018 / 20:13
1
answer

SVG animation

So far I have achieved this with the keyframes, is what I want, but now I only have the problem that it accelerates a lot or slows down in the end, the idea is to be constant so that it works as a web loader and a app, I do not know if it's some...
asked by 14.09.2018 / 16:42
2
answers

Can a TXT file be converted to JSON ?? Some example of JavaScript function. I'm a noob

I currently have this format of txt RODRIGUEZ=Apellido Paterno ,ESQUIVEL= Apellido Materno ,HECTOR MIGUEL=Nombres ,C RAYON 41=Direccion And I want to change it to JSON format so that it becomes more readable. I would appre...
asked by 10.08.2018 / 01:23
2
answers

pass several php arrays to javascript

the following php code that generates two arrays <?php //los datos salen de una tabla mysql $last_year_sales = [2589, 2589, 1478, 2587, 7852, 9632]; $current_year_sales = [1250, 1480, 1156, 3589, 7521, 9632]; //enviar...
asked by 04.08.2018 / 16:01