Questions tagged as 'javascript'

1
answer

Delete selected data from array

In my role I enter data entered in an array and in a box for user viewing. But if he wants to remove this information, he selects it and is withdrawn through the function! But if he reports the same information again, it reports error already ex...
asked by 13.08.2014 / 16:53
1
answer

Return previous page by adding parameter in URL - Javascript

Good afternoon person, I'm breaking my head here and could not find a solution. What I need is this. If a user accesses a url by ex: www.site.com.br/produto it should be redirected to another page with a login type ex: www.site.com/...
asked by 26.07.2018 / 19:44
1
answer

Working with Array.filter () in Javascript

Hello! I'm trying to generate a vector with only one "result". Basically I make a query in the mongo that returns me all the consultations done. I want to generate an array containing only the completed queries, which in the database are stor...
asked by 31.07.2018 / 17:20
1
answer

Access data from an object js [closed]

I have the following JS object displayed by console.log Icanonlyaccessthepropertystatusoftheobjectitself,butIneedtoaccessthestatuspropertythatisinsidethevalueobjectandhasthevalue400,butalltypesofpropertyadvisorsItrygiveundefinedwhenItrytogobeyo...
asked by 01.08.2018 / 22:17
1
answer

Use good practices or the correct way to store an ID

Currently when I need to change some client data, I store the ID in input hidden , but this is visible if you inspect the element giving the freedom to someone who has more experience manipulating the system. Is there any right way to d...
asked by 28.07.2018 / 20:53
2
answers

Modal Window overlap Frames

My scenario is as follows, I have 3 frames top (100px) content (*) and rodape (20px) I would like to open a modal window (the link is the top frame) where the mascara is above 3 frames (in the total browser area) Note: my modal system work...
asked by 11.06.2014 / 03:46
3
answers

Problem with animation in the Menu

I'm trying to create a simple menu, with an animation that when clicking the icon the menu options appears, if I click again on the icons they disappear. I only managed so far, that the options appear when icon is clicked, but at the end of t...
asked by 01.01.2019 / 16:45
1
answer

Include CSS class via jQuery when verifying CPF

I have the following code from a form that exits the CPF field and validates the CPF. I would like that if the test is unsuccessful the "has-error" class would be included in the div where the input is located and if it succeeds add the "has-suc...
asked by 31.12.2018 / 16:41
1
answer

How to add caption to a chart using ChartJS?

I created the following chart: var data = [ { value: 300, color:"#F7464A", highlight: "#FF5A5E", label: "Red", subtitle: "texto" }, { value: 590, color: "#46BFBD...
asked by 18.12.2018 / 01:28
1
answer

javascript syntax error

I came across the following syntax error in javascript / jquery    Uncaught SyntaxError: Unexpected number And I'm using the Number.prototype.formatMoney plugin can it have anything to do with it? Plugin Number.prototype.formatM...
asked by 03.09.2014 / 19:34