Questions tagged as 'javascript'

2
answers

Custom drag and drop Javascript does not work in firefox

I'm doing an XML reader to which I upload a file and it reads the contents, in chrome everything is working ok, however in firefox for some reason the drag and drop is not entering $('#xmlenvio').change(... , not I'm looking for them to do...
asked by 17.09.2018 / 21:11
2
answers

JavaScript for jQuery

I have a question about jQuery , how would the following code Pure JavaScript be using jQuery ? function writeTotal(value){ var total = document.getElementById('total'); total.innerHTML = floatToMoneyText(value); }    ...
asked by 20.09.2018 / 19:02
1
answer

How to filter an array of objects using other array of objects?

I'm trying to create a filter for recent products that are fetched (when I start typing, it already shows the found products, like a "like"), I have a global variable that is an array, and from there I except in another array the return item d...
asked by 19.09.2018 / 22:09
1
answer

Doubt about events in a Javascript function [duplicate]

I'll try to summarize I was having a problem with an onclick on a button, and can solve using e.preventDefault (); But the question arose, to function I had to add "and" my function and became function myFunction(e) And in my html...
asked by 09.10.2018 / 02:13
3
answers

store an array of objects in a local storage with JS

I'm a bit lazy with JavaScript and I'm trying to create an array of objects to save data from a form with localStorage , but I'm not sure how to do that. I have already created the code to save the data in the local store, but only sa...
asked by 13.09.2018 / 05:13
1
answer

JavaScript looping

I'm learning javascript and now I'm starting to learn how to do looping, and I noticed that it's heavily used var i and when it's for / in var x why use those letters? I can use words in their place and it will work normally. Ca...
asked by 09.08.2018 / 20:25
2
answers

Random button colors

I would like my buttons to change the color every time the page refreshes. I made a java script code that is not working and would like help identifying my error. <script> let r = Math.floor(Math.random()*255),...
asked by 06.08.2018 / 20:19
1
answer

Remove Cookie when closing browser

When the application starts, I need to open a modal for the user to choose an environment, so I created a cookie in JS to store if it is the first time the user opened the application, follow the code: window.onload = function() {...
asked by 13.08.2018 / 15:45
2
answers

Date field autocompletion in the application

I have a form in my C # ASP.Net application where I need to fill in an end date, but I want to standardize so that the end date is always 5 days after the start date. How to do this? I believe that a Javascript would solve, but I have no experie...
asked by 29.08.2014 / 20:57
2
answers

Create a lower bar with Tabs

Is there a jQuery plugin that creates an options bar like the PHP Debug Bar project? Does anyone have any suggestions for implementation? "Messages | Request | Timeline" is a thin, fixed bar in the footer of the site and clicking "Messages"...
asked by 07.08.2014 / 23:40