Posts by Luan G. C. Rodrigues • 158 points
12 posts
-
1
votes1
answer269
viewsA: How to check equal values of a Foreach
With ES6 you can use "includes" as an example below: var arr = [ 1, 2, 3, 5, 6, 7, 8 ] arr.includes(1) //resultado true arr.includes(4) //resultado false If ES6 is not used, you can see on the…
-
-1
votes2
answers138
viewsA: how to work with SASS/LESS in real time?
You can see a tutorial on this link: Compiling Less file Gulp If you want real-time use Sergio’s tip using a Watcher. But to be in "real time", everything will depend on your build and your…
-
0
votes2
answers884
viewsA: Popular inputs with Json file in jQuery
In your case, you take the Object by id and use its attributes to place in the inputs as follows: $("#cnpjToma").val(objeto[0].cnpjToma) In js pure: document.getElementById("cnpjToma").value =…
-
0
votes6
answers30079
viewsA: How to insert HTML with Javascript?
I believe that using some functions of javascript is the best option. Use for example: var divEl = document.createElement("div") var textEl = document.createTextNode("Meu texto vai aqui")…
-
1
votes1
answer49
viewsA: You can insert new HTML with Pure.js
If you have a list of objects it is easier, so you can go through the list and associate the values of each object to the html injection you want to do. By the way, you can do html injection without…
-
1
votes1
answer869
viewsA: Gallery with category filter
You can have an array of objects from these images, and as you change the galleries, go mapping this array and injecting the elements according to their quantity. This way you would have a page more…
-
1
votes2
answers590
viewsA: Separating Sentences in a String
I don’t know much about java, but in javascript I would use a split, being the parameter \t. Performing in this way: var stringUm = parametro.split(/\t/)[0] var stringDois = parametro.split(/\t/)[1]…
-
0
votes0
answers227
viewsQ: PHP:PDO connection pool with Postgresql, what to use?
Thinking about the following scheme: Linux Server (may be Ubuntu Server) + PHP using PDO + Postgresql + Apache HTTP server + Some pool of connection I would like some pool tip (that is reliable) to…
-
2
votes1
answer621
viewsQ: AJAX-No refresh navigation with PHP
Good staff I am with a doubt that I can not solve through the WEB. On my page I have a menu that calls some contents to a DIV of content id, that with ajax, and is working, the contents are updated…
-
1
votes2
answers158
viewsQ: Views with php transition with the controller
I am a beginner in php, and so I have caught a lot. Also because I have used sublime text with apache and php installed separately (use Ubuntu with OS). Well my question regarding views and php is:…
-
6
votes1
answer546
viewsQ: PHP array of objects without access to get methods
I’m trying to access the getters which refer to an object, but this object is in an array, and by no means can I access them. Follow the DAO class (where the mess is taking place and I’m taking the…
-
0
votes3
answers2504
viewsQ: include php does not work
I have the following directory tree: .var ..|--www ......|--site ..........|--index.php ..........|--all ..............|--controller ..................|--conexao.php (classe) ..............|--model…