Questions tagged as 'javascript'

0
answers

Get the values included in a data object [closed]

I'm trying to get some values of a return from a request. Using jQuery, I have the return of the date $('#protocolo-fk_especie_protocolo').find('option:selected').data() In this way: $('#protocolo-fk_especie_protocolo').find('opt...
asked by 12.12.2018 / 19:46
0
answers

How do I keep the Accordion Menu open after clicking the link and paging?

I need the clicked link panel to remain open on the new page For example: Clicking on Link 3 route to pg3 with Section 1 open w3schools adaptation Note: the clicked link is marked on the new page using: if ($ cod == $ codin...
asked by 07.12.2018 / 09:13
0
answers

Angular mask-input-masks in AngularJs

I'm trying to use the angle-mask-input-masks in AngularJs (ionic v1) found in the link: link I follow all the steps in the documentation: link But the following problems happen when I try to import the script into my index.html:...
asked by 07.12.2018 / 12:48
1
answer

How do I perform one function after the end of another?

My goal was to run one function at a time, but my functions that move the square are running together and I do not know how to do one run only after the other ends. Here's the code: css: #caixa1{ width: 200px; height...
asked by 10.12.2018 / 21:48
1
answer

Recover Header from an Http Response with angular

I need to retrieve the Token that comes in the authorization and save it in the localstorage, but I'm not getting it. My login method within my service is: public login(email: string, password: string): Observable<User> {...
asked by 09.12.2018 / 16:19
0
answers

Scrollspy does not work

Scrollspy is not working, I would like to change the class of each navbar item when the user goes through a specific section, I have made all the recommended imports in the documentation and it still does not work Additional information: Boot...
asked by 07.12.2018 / 11:42
1
answer

How to create fade-in effect in div?

I have a div that receives data from the MySQL database and lists the images. I put a lightbox to make the visualization of the images more interesting and a fade-in effect so that whenever you change the menu category * refresh * to be...
asked by 10.02.2014 / 19:51
0
answers

How do I correct so that I select only one item marked on the toogle button?

I have a little logic problem, when I select only a toogle button, it brings the value of the two items in the list, I need to return only that item that is marked on the toogle button. this.produtosProvider.getAll() .subscribe( produ...
asked by 27.11.2018 / 14:47
1
answer

Mouseout once

I would like to know how I can make this script work once, because I can not do it: // intenção de sair function addEvent(obj, evt, fn) { if (obj.addEventListener) { obj.addEventListener(evt, fn, false); } else if (obj.atta...
asked by 28.11.2018 / 21:34
0
answers

Rounding decimal following standard ABNT 5891 [closed]

Good morning! I have to implement a rounding rule in JavaScript following the ABNT NBR 5891: 2014 rule. . I tried to use only the existing functions like Math.round, Math.trunc, Math.floor, Math.ceil, but none gave 100%, the closest was Mat...
asked by 29.11.2018 / 13:08