Questions tagged as 'javascript'

1
answer

Problems filtering table contents using select

I have a select with the genres "Male" and "Female", when selecting one of these genres, another select is shown with sports modalities and each of these modalities prints a table. I am a beginner in jQuery and need the tables to be filtered a...
asked by 04.05.2018 / 15:08
1
answer

Export CSV data via JS

I have a data set in the database in my back end , and I need to create a button on which the user will click to export this data in CSV format. But I've never done this kind of event in JS. Can anyone help me?     
asked by 14.12.2017 / 21:44
0
answers

How to hide Cordova assets folder

Hello! I recently created an APK with Cordova and decided to look at the APK with Android Studio and when I opened it, all my code in javascript and HTML could be displayed. I would like to hide the assets folder so I do not show this data becau...
asked by 15.12.2017 / 23:29
1
answer

How to get a variable inside a javascript callback

I can not pass the variable x that is in return to another function. I declare the global variable, but it still does not work. function pegaid() { var x = ""; _agile.get_contact("[email protected]", { success:...
asked by 17.12.2017 / 03:53
4
answers

Call an HTML file in a lightbox mode

The case is as follows: I use the Lightbox Modal for a gallery of images, in the index I have the thumbs and clicking opens the modal with the maximized image. Due to the amount of images it takes too long to load them all. How can I ca...
asked by 09.11.2017 / 20:36
3
answers

Inaccurate result in calculation with broken numbers

Problem Test on the consoles of your browsers: 1067.11-1000 = 67.1099999999999 The correct one would be 67.11 Could anyone explain this to me? And how do I resolve this?
asked by 13.02.2014 / 15:23
1
answer

Divide text into parts

I need to get a specific piece of a .txt file that is between <tag> and </tag> . But I need to get all the lines where it happens. Example: <tag1>titulo</tag1> <tag2>subtitulo</tag2> texto....
asked by 22.11.2017 / 19:38
1
answer

How do I get something from an input text and pass by reference?

How do I get something typed in an input text, and when I press a "Send" button, I send that text somewhere in my code, like we use 'this.state.algumaCoise' ... code: render(){ return( <div className="container"> <div...
asked by 06.11.2017 / 20:44
2
answers

Custom input component

Hello, I have a form 'Reactive Forms' where it has several fields, so I decided to create a component and run a ngFor in it to reduce the number of lines ... Component html <div *ngFor='let input of inputs' class="input-size-{{input.s...
asked by 27.04.2018 / 19:28
1
answer

Substitute function for jQuery .error () function

I need to know which function to use in place of the .error() function. $('img').error(function() { $('img').attr('src','img/erro.gif'); }); jquery 3.2.1 does not have this function. How can I resolve this?     
asked by 30.10.2017 / 21:12