Questions tagged as 'javascript'

1
answer

How to access an item in an array of objects? [closed]

I'm getting information from the database and putting it in an array: (more details of the code) var alunos = {}; var self = 0; function sortearAluno(){ var dataForm = {'tipo': "listar"}; $.ajax({ type:'post', data: d...
asked by 18.09.2016 / 10:14
2
answers

Validating a field of type input in function of a select

I am working with Codeigniter / Bootstrap and need to validate one field of my form depending on another. I have a select field named Contract, with two possible options (Yes or No) and another input type field called ContractDate. I need that w...
asked by 19.09.2016 / 19:05
2
answers

Is it possible to upload image and rename it only with Java Script?

Is there any way to get the request image file, save it to a directory, and change its name from the server using JavaScript ?     
asked by 27.10.2016 / 13:09
1
answer

How to copy a value within a span

I need to copy a value from within a span that is generated by a slider, it always changes the slider whenever it changes. Is there any way I can put it inside a value of an an input? I tried this and it did not work: <h4>Valor...
asked by 27.10.2016 / 18:21
1
answer

Search with javascript

I have a search engine that has the problem:  - Returns all values of a list, when deleted element of the search field, the expected is that if only the initial elements return, not all. This is the search function I'm using: $scope.$watch('q'...
asked by 25.10.2016 / 18:00
1
answer

Graph facebook with comment counter does not work anymore

I created a function in PHP that added the number of comments made on facebook and wordpress to show in each post, but I think because of facebook plugin updates, the code no longer works. I've tried to create a new app on facebook to use the...
asked by 25.10.2016 / 05:03
1
answer

Overlapping graphs

I need to make a chart like this But I did not find anything that could help me. Does anyone have a solution for this?     
asked by 24.10.2016 / 18:19
1
answer

what is the difference of this, event.target and event.currentTarget in the scope of an event?

What is the difference between this, event.target and event.currentTarget in the scope of an event? var elem = document.getElementById("meuId"); elem.addEventListener("click", function (event) { console.log(this.id, event.target.id, ev...
asked by 26.10.2016 / 17:06
1
answer

Ng-repeat with pre-selected value

I'm building% complete%, and at the time of editing, I'm having a problem with CRUD . To save, I have a form with a ng-repeat and select that contains the functions that a collaborator can have (Coordinator, supervisor, teach...
asked by 07.09.2016 / 05:23
1
answer

Can you pass the function name as a parameter?

I am breaking my head here for a solution whose is to pass names of functions as parameters to be executed. I have the ShowModal function in which its purpose is to call other functions and objects. How can I name the function for it t...
asked by 09.09.2016 / 00:20