Questions tagged as 'javascript'

1
answer

How to translate the calendar header of Full Calendar? [closed]

Greetings, friends of Stack Overflow! I'm just one step away from completing a calendar using the fantastic Full Calendar plugin, which I'm grateful to have. However, I'm having some translation issues with it: Unfortunately, the locale / la...
asked by 02.01.2018 / 12:31
3
answers

How to make input mandatory in only a few cases

I'm putting together a form in which the client needs to provide the parent's data when he is a minor. I can do this easily in the backend, but I would like to know if you can do this with pure JavaScript to avoid the post. Just by reinforcin...
asked by 02.01.2018 / 13:20
2
answers

Removing DOM elements with removeChild ()

I'm starting with javascript, from scratch, I have this exercise where the goal is to add and remove city names in a list in html. I know little of DOM. The insert part already works, but the removal part is not working. Can anyone help me? &l...
asked by 03.01.2018 / 02:12
2
answers

Change input class when it is filled in

I'm making a form using primefaces, and I wanted my input to change class when it was filled, only returning the previous class if the user deleted the content. This is to make the outputLabel exit from inside the input and be visible as per the...
asked by 03.01.2018 / 01:23
1
answer

javascript pagination

I have a paging cod and I want it to do a count of items, ex: has 40 items and I want to read in 5 pages, then the first page reads 1 of 5, the second and 6 of 10 and the third and 11 of 15 and so on, my cod does that, only the last page is If y...
asked by 28.12.2017 / 16:04
0
answers

Error executing API requests using Axios and Vue-resource

I was consuming data from an API using XHR and it was working very well, but there were some changes in the design and there was a need to use Vue. I tried to make the same requests using Axios and soon after the Vue Resource but in both I was n...
asked by 27.12.2017 / 19:58
2
answers

How to make a foreach in JavaScript? [duplicate]

My application returns an array of array, where campanhas[] is an array of campanha[] which is also an array. How can I make a foreach to fetch each campaign from within the campanhas array? The array return of an a...
asked by 28.12.2017 / 22:08
0
answers

Opening a cell phone camera through the website

Good night, I have a project in html, is already responsive, so there is a need in the project to open the mobile camera, I would like to know how I can do it.     
asked by 05.02.2018 / 23:54
0
answers

Error creating a table with sequelize "TypeError: Can not read property 'sequelize' of undefined"

I'm having the following error when trying to create a table:    const User = app.db.sequelize.define ('user', {       TypeError: Can not read property 'sequelize' of undefined My folder structure: Myconfigurationfile(server.js)mo...
asked by 06.02.2018 / 15:50
1
answer

Leave the dynamic code in an array filter

I'm wanting to leave my code more 'dynamic' so I do not need to add a new block for every new item / category I add, it's a study-only project. What I thought was to use the functions with parameters but I could not implement them well let...
asked by 23.12.2017 / 23:55