Questions tagged as 'javascript'

1
answer

Global object for project

I'm sure if this mode would be a very "ugly" method to do: link In this case, an object called "Ecommerce" has been defined, and I'm giving it the functionality. Another item that would like to know other ways, or if it is correct, is...
asked by 15.08.2014 / 19:15
1
answer

How to load an array and divide its positions by special character

I have a table where there are filters for it: Asyoucanseeintheimage,foreachcolumnIhaveafilterwhereuserscantypewhattheyunderstandtodotheresearchtheyunderstand.IamnowallowingtheusertodownloadthePDFlistingwiththefiltersapplied.SoI'mcreatinganarray...
asked by 04.08.2014 / 11:42
1
answer

Make DIV Scrollbar follow item li from the list

Hello, I would like to know how I can make the code I have (below) cause every time the "Next" or "Previous" button "are clicked, follow the li element with the class" music-playing "? Code: link I want to make the scroll bar focus t...
asked by 26.08.2014 / 21:41
2
answers

URL with string parameters with angular.js

I would like to know the best way to treat url with string parameters in angular.js. When accessed: www.app.net/nomeDaPessoa/ServicoDaPessoa It would respond to a given route that is receiving nomeDaPessoa and ServicoDaPessoa...
asked by 25.02.2015 / 13:31
4
answers

External Connection JSON WebService

I have a webservice in PHP feeding data from a array via JSON , to read in an HTML file. When I run the application having $.get with a local file it works, but when I change the path to read the same file on my server, it...
asked by 02.07.2014 / 02:35
2
answers

Dynamic checkbox validation with jquery-validator

I'm trying to validate a checkbox using the link plugin. The problem occurs that the field I'm validating does not exist until another predetermined field is selected. Therefore, validation passes even though this field does not exist....
asked by 24.02.2014 / 21:25
1
answer

What is the difference between PATHS and MAP properties of RequireJS

In theory it seems that the two configuration properties of RequireJS focus on the same action. Does anyone know the differences in how both settings work? PATHS: require.config({ paths: { 'modulo': 'endereco/para/o/modulo' }...
asked by 28.02.2014 / 19:34
2
answers

How to access dropdonw value without refresh

Is there a way to get the value of the selected option from my select, on the same page, without sending the form, when the user makes a change? <select id="s_um" name="s_um"> <option id="um_1" value="0"> 0 </opt...
asked by 19.01.2016 / 13:20
1
answer

Hide submenu when clicking on another

I would like when I clicked on an item with a submenu, whatever was active would hide. I found a script similar to mine, but I had difficulty adapting. I'm using the following script for the subclass with onclick    Javascript for Dro...
asked by 24.01.2016 / 18:41
1
answer

Error trying to access a property of an object in a React component

I have a problem accessing information from an array that has an object inside, using React. This is the function that brings my json and changes the state of the application, it creates a times.name, times.players and times.foto, in case thi...
asked by 19.11.2018 / 23:00