Posts by kakamg0 • 598 points
14 posts
-
1
votes2
answers935
viewsA: Compare values of an array with values of an object
You can transform the array into a string using the .join as in the example below (the parameter is the string used to separate the elements in the string, the default value is ',') const alf = { a:…
javascriptanswered kakamg0 598 -
2
votes3
answers1217
views -
0
votes2
answers861
viewsA: Program in C, how to print the word without the character?
I assumed that you want to remove only one character from the sentence, if it is really a word you will need to make some changes. You were using the variable y without initializing it and caracter…
-
1
votes2
answers33
viewsA: Why can’t I call cta1 instantiated object in btnCriarConta_Click?
The snippet that code you added is not javascript, I think it’s c#. You can’t access it cta1 because of the scope, the variable exists only within the body of the method btnCriarConta_Click. To be…
-
2
votes1
answer32
viewsA: Compare to remove_if in c++ does not accept char
The remove_if takes 3 parameters, the start and end iterators and a function that takes a parameter and returns a bool. In this case you can pass the function using its name as if it were a…
-
5
votes1
answer308
viewsA: For what reason, I have to double-click the bookmarklet to insert dynamic content
What I think is happening is that the flowplayer script is not finished being loaded on the page and that’s why the error appears flowplayer is not defined in the first click and works smoothly in…
-
1
votes1
answer697
viewsA: Javascript - Limit number of pages in pagination
I made some changes to make the script work. You can skip fillTable because it’s just to fill the table with numbers. fillTable('table'); var pager = new Pager('table', 3, 'pager'); pager.init();…
javascriptanswered kakamg0 598 -
1
votes4
answers351
viewsA: Meta Author does not embed on the site
It seems that authors need to give permission for a publication or site (and specifically the FB page of this site) to be cited as author. Authors need to log in to their own Facebook profile, go to…
-
4
votes2
answers52
viewsA: Keep the initial class of the element
You can use the .siblings to obtain adjacent elements and change their class. $(".taskIcon").on("click", function() { var $this = $(this);…
-
4
votes3
answers512
viewsA: Jquery monitoring key sequences
Another way to solve your problem without having to set up a special code would be to check that all inputs from form are filled and if yes, do the Submit. $(document).bind('focusout', 'input',…
-
1
votes2
answers386
viewsA: How to check if an object has a string?
You can use the find to find the objects you own postal_code or postal_code_suffix in the array types and use them to return the postcode. Using the function getPostalCode of the snippet your code…
-
0
votes2
answers25
viewsA: Slider does not work clearInterval function by clicking the button next back to previous photo
I changed your code a little to avoid repeating code, but basically what was happening was that in function troca you displayed the slide and then selected the next slide, but in next and anterior…
javascriptanswered kakamg0 598 -
4
votes1
answer336
viewsA: Data sharing between android apps
Data can be shared with other installed applications using ACTION_SEND when you create a Intent. You can do it this way: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND);…
-
2
votes1
answer1723
viewsA: How to use the Mutationobserver() of the correct vein?
When you register the instance to receive notifications with the method observe you can pass an object specifying which mutations should be observed. You can see the options available at…