Questions tagged as 'javascript'

1
answer

How to import an entire file (javascript) with WebPack?

I started to study WebPack now, I was able to use it normally, however, when I want to import something from another file I need to give: import {abc} from './my-file.js'; and the file that was imported: export function abc() { consol...
asked by 13.07.2018 / 09:27
1
answer

How to use Select onchange to not show parameters in the url?

I have the following select <select onchange="location = options[selectedIndex].value" id="sel"> <option value="?cod=<%=cod%>&op=1">opção 1</option> <option value="?cod=<%=cod%>&op=2">opção 2</opt...
asked by 13.07.2018 / 03:06
1
answer

Some dynamic way to select IDs with Javascript

I would like to know a possibility of an algorithm for me to select a DOM in a more dynamic way, without having to use getElementById all the time. I'd like to select all elements and manipulate in JS. Can someone help me with this, pl...
asked by 11.07.2018 / 21:00
1
answer

My JavaScript / AJAX function is not converting Date to the correct format

Hello I have a problem with an MVC project. My View needs to return values in Date for some Text Boxes (from the selection of the record by a Data Table) so that the user can edit the record. The problem is that the data is not being shown...
asked by 12.07.2018 / 14:57
1
answer

Start a function in the click and stop it when clicking again?

Initially, the background of the circle should be white. When clicking on the circle, execute the change function in a loop, and when you click again, leave the background of the white circle stopping the change function. How to do this? // T...
asked by 30.07.2018 / 21:49
1
answer

How to improve the formatting of information within my Div?

Gentlemen, I need to format my Div according to the image attached below, with Meta information about Div, etc. Currently my code is breaking this information in lines, as attached image. Here's a snippet of my code, I hope you can help me...
asked by 30.07.2018 / 14:53
1
answer

How to put a script inside another

This code is to replace the contents of a div, and I need to add this script inside the code but I'm not getting it. window.onload = function substituir() { document.getElementById("fgh").innerHTML = "<div class="dmg"><script type="...
asked by 29.07.2018 / 18:45
1
answer

Transform object into array while maintaining index

Good evening Friends who can help me? I have this Array of objects, I needed to make this Object in list more while keeping the index as it is UsingMapitchangestheindex: I then needed to access each item to perform calculations, but the...
asked by 04.07.2018 / 20:40
1
answer

Retrieve marker within multiple maps

I have an application that uses a Google map and shows multiple markers. Next to the map I will list the addresses and I would like, when the user gives a mouseover for each address, the map icon will change. So I have (to show the mar...
asked by 05.07.2018 / 19:02
2
answers

How to create a panel that displays / Hides fields using Html / Bootstap / JavaScript

I need to implement on a screen a search panel that needs to appear when I click the (Advanced Search) button and inside this panel should have a "Close" button that, when clicked, will hide the same ... How do I do that? // Hidden Dashboard...
asked by 05.07.2018 / 14:48