Posts by Rafael • 389 points
34 posts
-
-2
votes4
answers44
viewsA: I would like to know how to add html div through pure js
Post your javascript code, so we can see what you did and so help. The working logic is like this, you need to make an append every time you insert, otherwise you just rewrite the div. But…
-
0
votes0
answers57
viewsQ: Mongodb Query in PHP Subdocument Index
I need a force. I have a Mongodb database with a document containing other documents, and I need to create a query in PHP from a key in that subdocument. Follows the structure. { "_id":…
-
0
votes2
answers56
viewsA: Avoid validation on hidden elements
I was able to solve my problem by creating a function that applies the disabled attribute to all fields that were hidden. With this I was able to pass the checkValidity validation()
-
0
votes2
answers56
viewsQ: Avoid validation on hidden elements
Good night, you guys, I need a light. I am creating a dynamic system, which creates a form from a JSON. It turns out that in some cases, I create a select, and according to its value, I display a…
-
0
votes1
answer97
views -
0
votes2
answers340
viewsQ: Hide elements but display some child elements with Javascript or Jquery
Talk, you guys, baby? I am making a page that displays a contract for the person. There are some fields that can be filled. But as it sometimes gets long, I’m trying to make a simplified mode, which…
-
0
votes2
answers49
viewsA: Text-Align in table with MPDF
I managed to solve by inserting the text-align directly into the td, not the most beautiful thing, but it works. Here I get the tag var ptag = document.querySelectorAll("p"); Here I make a forEach,…
-
0
votes2
answers49
viewsQ: Text-Align in table with MPDF
Good evening, everyone. I am using summernote to create/manage texts, and Gero pdf using the MPDF library. However the alignments, (left, center and right), when used from the cells of a table, are…
-
0
votes2
answers34
viewsA: How to get the name of another table when the Ids match?
If I understand you want to capture the data that is also in another table, you will have to use some JOIN to join the tables, your query would look something like this: $sql = " SELECT * FROM…
-
4
votes2
answers277
viewsQ: Is it possible to use the resize function of the textarea in an input?
Good morning, everyone. I’m making a form, and I wanted to make a <input type='text' /> that the user could set the width, with that drag resize that exists in the textarea. I want to insert…
-
0
votes1
answer65
views -
-1
votes1
answer65
views -
3
votes1
answer549
viewsQ: Copy Parent folder with FTP and Winscp in bat file
Talk to the guys, baby? I’m venturing to create myself a backup tool for an FTP, and I’m using Winscp to connect and use the Synchronize command for me. set FTPSERVER=MEUHOST set FTPUSER=USUARIO set…
-
1
votes2
answers814
viewsA: Load jQuery Multiselect options via Ajax
I found that jQuery’s own multiselect already has the functions to add the options inside select. What I needed to do is to take the documentation of the layout of the array I need to pass as a…
-
0
votes2
answers814
viewsQ: Load jQuery Multiselect options via Ajax
Talk, you guys, baby? I’m having a hard time. I have a modal, and wanted when making a select change, to press via ajax, to feed a jQuery multiselect. In a console.log I can see the output of…
-
1
votes1
answer25
viewsA: Use querySelectorAll in an option when there is more than one Select
In the end I found that I can pass 2 parameters in querySelectorAll so now my variable is like this: let counting = document.querySelectorAll("#selection option:checked"); That’s the answer if…
-
0
votes1
answer25
viewsQ: Use querySelectorAll in an option when there is more than one Select
Good morning guys, everyone have a great holiday. I have a javascript function that counts a list like this: let counting = document.querySelectorAll("option:checked"); At first I thought it worked,…
-
2
votes2
answers562
viewsQ: Mysql alias in all Columns
Good afternoon Galera. I have a little problem to join some tables by INNER JOIN, and because the columns name are equal, I imagine that the ALIAS can save me by changing the columns name pro front.…
-
0
votes0
answers154
viewsQ: Use INNER JOIN with WHERE clauses
Guys, I am reassembling a system before in ASP now in PHP already with database loaded and mounted, but I need to do some filters where I need to fetch data from at least 3 different tables and…
-
0
votes1
answer62
viewsA: Limiting Array via POST
At the end the problem was actually in apache. A line called max_input_vars was commented on in the file php.ini. Removing the comment worked normally. The full line on php.ini is like this: ; How…
-
0
votes1
answer62
viewsQ: Limiting Array via POST
Guys, I was picking up on my code always giving offset error and things like that, when I discovered that somehow my array is not coming complete. I have a form, where it is fed according to the…
-
0
votes1
answer184
views -
3
votes1
answer190
viewsQ: Load javascript file only on one page
Guys, I’m getting caught with something, I imagine it should be simple, but I’m all day moving files up and down and I can’t solve kkkkk Next, I have a system inside a Gentelella template, and by…
-
0
votes1
answer27
viewsQ: Calculation of dynamic tag values
You guys talk nice to each other? I’m messing with my system (read lab). I’ve basically created the whole Back-End, but at the front I’m getting beat up with some treatments. I am creating a budget…
-
0
votes2
answers39
viewsA: Lack of security page registration
I don’t think it’s ideal for you to keep everything on the same page. Anyway, I think a malicious programmer could only do it with injections. In order for him to be able to put in his code he would…
-
1
votes2
answers152
viewsA: doubts about the variable session_start()
Well if it’s not to mess with your code a lot, I think you’ll just need to create a new query that brings you an array. Do: $query2 = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM…
-
0
votes1
answer151
viewsA: Ckeditor Fills data in URL when sending
Oh leave it alone guys, I found a function that you can use in Ckeditor itself, Setdata(''). Thus remaining: $('#btn_relatorio').click( function(){ for(var instanceName in CKEDITOR.instances)…
-
1
votes1
answer151
viewsQ: Ckeditor Fills data in URL when sending
Good morning guys. You’ve seen this problem using the Ckeditor? I have a form where my text box <textarea></textarea> is replaced by the text editor Ckeditor. I have it on my page:…
-
0
votes1
answer1345
viewsQ: Using data from a $_SESSION in Javascript?
Talk, you guys, all right? I’m picking up something that I believe should be something simple. I have this little javascript function where according to the level of the user should send to…
-
1
votes2
answers749
viewsQ: If there is any data in mysql do a PHP/Mysql update
Guys, I imagine this doubt is recurring. I even looked for some alternatives but did not work. I have a Screen where I record Service Orders with Client and PC data from it. It turns out that. I am…
-
0
votes2
answers668
viewsQ: Using <pre> Inside a PHP TAG of an html value
Good night, you guys. One more trick I’m in doubt in my system. I’ve done everything at the beginning of the page with PHP to do a search in my database. But there is a field that I am bringing…
-
2
votes1
answer1256
views -
0
votes3
answers929
viewsA: CSS is not working on any browser on my PC
It may be that your folder is not giving permission to access. If the address and file name is right. Do so, right-click your css folder goes into properties and in the security tab click on "Edit"…
-
2
votes1
answer1081
views