Posts by Nikofoxxx • 411 points
13 posts
-
0
votes1
answer1192
viewsA: Popular second select after selecting the first select
I noticed who in your controller you return the data through the line json_encode($clientes); This causes you to return an object with its JSON representation. So, in the successful response of your…
-
0
votes2
answers82
viewsA: Intel XDK - Input Hidden
There are several ways to do this without putting the "Hidden" attribute directly into your HTML. If you want to do it with pure Javascript, it can be as follows:…
-
2
votes1
answer1821
viewsA: Alert works and sweetalert does not
Good afternoon! I joined the Sweetalert website (http://t4t5.github.io/sweetalert/), I opened the browser console and typed the same line you commented on above, I mean: swal("Good job!", "You…
-
3
votes4
answers231
viewsA: Jquery find in tree
The combination element Child (P > F) selects only first-level children. As you have a div class form in the first level, you could pick up the children as follows: $("div.pai > div >…
-
3
votes2
answers795
viewsA: Structure of a chained JSON
Always keep in mind that the JSON information representation follows the following rule: for each value, a name (or label) is assigned that describes its meaning. Example: "nome" : "José" For…
-
9
votes6
answers34111
viewsA: What is and what is an abstract class for?
For better understanding, an abstract class serves as a "model" of inheritance for a concrete class. Since an abstract class cannot be instantiated by itself, it is necessary, as stated before, to…
-
1
votes0
answers49
viewsQ: Get feedback on the keyword that was sent to the Twitter Stream API in creating Apache Storm topology
I am developing a system that uses Apache Storm integrated with the Twitter4j library, to process tweets in real time. But I have a problem: Is there any way to know which keyword that originated…
-
6
votes3
answers22225
viewsA: How to compile a. java file using the Ubuntu terminal
With the JDK (Java SE Development Kit) installed, javac can be used, which is a compiler for the Java language. To compile java code, the command is as follows:: $ javac SeuCodigo.java After running…
-
2
votes1
answer213
viewsA: doubt with the bootstrap grid system
The correct is that each Row has a grid, that the sum of its columns is equal to 12. Example: <div class="container"> <div class="row"> <div class="col-md-4">Coluna 1</div>…
twitter-bootstrapanswered Nikofoxxx 411 -
0
votes2
answers139
viewsA: Bootstrap 3 Datetimepicker
Try to do it this way: $(function () { $("#txtDataHora_01").datetimepicker(); $("#txtDataHora_01").on("dp.change",function (e) { //Seu evento aqui. }); }); That way, I believe that every time your…
-
1
votes2
answers2569
viewsA: Make button disappear
Can be done in a simple way by using jQuery’s $ selector. To hide the element: $("#seuBotao").hide(); To show the widget: $("#seuBotao").show();…
javascriptanswered Nikofoxxx 411 -
0
votes6
answers14101
viewsA: String Format with Javascript
I use this one method in my project: function format (fmtstr) { var args = Array.prototype.slice.call(arguments, 1); return fmtstr.replace(/\{(\d+)\}/g, function (match, index) { return args[index];…
-
0
votes1
answer154
viewsA: modal multiple > Bootstrap/JS/PHP
I don’t know if it would be the best solution for your case, but you could add this attribute to your modal: data-backdrop="static" It disables modal close when it is clicked outside your area.…