Posts by Máttheus Spoo • 1,746 points
60 posts
-
3
votes1
answer161
viewsQ: How to make a function with quantity of parameters 'infinite'?
How do I do a Javascript function that can receive a quantity infinite parameter? When I refer to infinite, I am aware that there is a limit, but I want to do a function where the person can pass as…
javascriptasked Máttheus Spoo 1,746 -
-2
votes1
answer81
viewsA: error syntax when using then((result) =>
The sign => is a different notation for creating functions, called Arrow Function. For this specific case, just replace the code in order to do the functions in the traditional way, ie: That:…
-
2
votes2
answers1333
viewsA: Error in troubleshooting
I’ll explain. When you want to join two values, you should use + within the log console between the values, not another comma. The comma passes another parameter to the function, so: console.log('X…
javascriptanswered Máttheus Spoo 1,746 -
0
votes0
answers41
viewsQ: Margin control and view of the exported file with . wordExport() (Jquery)
Good morning. I would like help with the . wordExport() Jquery command. I am managing to export html without problems to word document, however, when I open the document, the margins are the default…
-
1
votes3
answers3847
viewsA: Telephone Field Mask
Using jQuery, you can do it this way: $('#id_do_campo').mask('(99) 99999-9999');
-
0
votes2
answers77
viewsA: error at end of loop on slide show
I think I found the error in the buttons: in the block prev = indexAtiva - 1 prev = prev.length ? prev : lis[ lis.length - 1 ]; mostraBloco(prev); the logic is slightly wrong. That’s why, say: the…
javascriptanswered Máttheus Spoo 1,746 -
2
votes2
answers210
viewsQ: Cross two tables and link the line from one to the other, forming a third
Good afternoon, fellow programmers. I came across the following problem: I have two tables, one with applicants, and the other with vacancies. I need a query that crosses the two tables, and takes…
-
1
votes3
answers801
viewsA: Replace in the javascript array
All the answers solved your problem, but they didn’t answer what you asked, so here’s the answer to your question, just for future cases (what they answered is correct) Your replace did not work due…
-
0
votes2
answers95
viewsA: Display alert in case of no record found - Ireport
I don’t think it’s that simple, but what comes to mind when you ask that is a simple Alert('No data found!!!'); No? If not that (I doubt it is, honestly), you can explain better what you want to do?…
-
3
votes2
answers12697
viewsQ: .replace() in jQuery object
I have a code that gets a value from an HTML field. I match the value of a variable to the object in jQuery, and then use the value placed there to make some comparisons of >= or <=. I want to…