Posts by Bruno • 316 points
27 posts
-
-1
votes1
answer38
viewsQ: Doubt how to declare a class function directly in HTML
I’m having trouble calling an event function when I dynamically rewrite HTML. I’m using pure javascript. Both functions are in a class file class tabela, but when I click on the link that calls the…
javascriptasked Bruno 316 -
0
votes1
answer25
viewsQ: Click on button does not work
I’m not getting the Remove button to work at all. I run it dynamically through jquery, but at the time of removing the not button from any reply. Nor does the console message appear... var pares =…
-
0
votes2
answers26
viewsA: GROUP BY grouping data from another column into another column
SELECT campanha, formato FROM tabela GROUP BY campanha This is what you can answer for the amount of information you have passed. Try to elaborate the question better or put the structure of your…
-
0
votes1
answer77
viewsA: Populate html select with database values
Within the select you have the options you must do an if comparing with the bank return information. Ex: Whereas you mount a select with a gender table with the fields type={M,F} and…
-
0
votes2
answers365
viewsA: How do I convert this PHP code to Javascript?
Do you want to use the values of $codigo_checker and $codigo_desafio in a javascript code? Just throw the values in a Hidden input and capture them normally. In html: <input type='hidden'…
-
5
votes3
answers180
viewsA: Mysql - Create an alias by concatenating multiple fields
SELECT CONCAT(u.nome,' ', u.sobrenome) nome_completo FROM usuarios u
-
1
votes1
answer344
viewsA: Fatal error: Uncaught Error: Call to Undefined method Domprocessinginstruction::getattribute(). PHP AND DOMPDF
In my case I made a string and stored all the html inside that string to make it work. Showing part of my code: foreach ($produtosTrocaPendente as $item): $html .="<tr style='font-size:12px;'>…
-
1
votes1
answer46
viewsA: Does not show category
You should understand mysql and how to make queries relating tables. In your table of posts you must have a field with the category index for you to achieve this relationship. For example, in the…
-
1
votes1
answer810
views -
1
votes1
answer36
viewsA: Returns + column values match with PHP and Mysql
In my understanding you should have two queries to the database. One only of teachers where you make one group by of teachers. When doing the loop to scroll through the records you make another…
-
0
votes1
answer59
viewsQ: Error updating values fields with jquery;
I am having trouble updating the net value field of my page. I have the following fields in my HTML: <input type="number" id="total" value="<?=$faturamento['valor_total'];?>" readonly…
-
0
votes1
answer33
viewsQ: Problems with Listview Adapter
I own an Activity that has a ListView. The items of ListView I built it myself. I put a EditText and I need to do an event setOnClickListener in it. But the right thing would be to do this in the…
-
0
votes1
answer29
viewsQ: Problems with checkbox in an android view Adapter
In the example image it shows three checkboxes in a line of a listview. But I have to make a way in which, by checking 1 checkbox, uncheck others on the same line that are marked. You have how to do…
-
-1
votes2
answers186
viewsQ: Help to pick up response values on Android with Retrofit
I am trying to use Retrofit to consume a resource but when using the values I am doing something wrong because nothing appears. Section in I make the search: final TextView codigoCliente =…
-
0
votes1
answer420
viewsA: Browse an array of JSON objects in Android Studio
It’s not because you search for a Json array with several array inside? for (int i = 0; i < arrayJS.length(); i++) { JSONArray prod = json.getJSONArray(i); for(int j = 0; j < prod.length();…
-
1
votes2
answers281
viewsQ: Reload php page using ajax with updated data
I use the Ajax code to do a post and update a record within the database. After that I wanted to load the page again without reloading the page. It refers to a product delivery screen. When I click…
-
0
votes1
answer68
viewsQ: Help to capture change in checkbox field
I have the following code that searches the product and creates the row in the table the way I want and then stores the data in a Json to be sent by post. It only works when I input a new product.…
-
1
votes5
answers2417
viewsQ: How do I get the value of an Hidden input with jquery
I was able to dynamically generate a table with some hidden fields that cannot appear. But I’m having difficulty searching these fields to send them to a post. Follow the generated html code.…
-
0
votes1
answer37
viewsQ: Problems with jquery to read json
-- Edited-- I’m having trouble solving a problem with my code. I use jquery to make a request for a barcode. I can even find the value but I can’t associate my function to mount the table. The error…
-
0
votes1
answer36
viewsQ: Help with project code organization
I joined a project written in php that at first had no idea of the proportion it would take. So I’ve written so much code that even I’m a little lost to locate some problems. To do the project, as I…
-
0
votes2
answers111
viewsA: Move row to another table in the PHP PDO database
That part of the code doesn’t look right: <a href="painel_adm_deletefilme.php?idFilme='.$dados['idFilme'].'"> You put php code right into html. I think it would work if I switched to it: <a…
-
0
votes4
answers856
viewsA: Return message to the registration screen
Create your form page as php file: cadastro.php Send the form information to another php page: register-inserts.php for example On the register-inserts.php page send the information to the database.…
-
2
votes1
answer221
viewsQ: Ignore open modal enter key
On my system, I created a modal that will serve as an alert whenever the user does any invalid operation. But to force the user to always close the modal by the close button, I wanted to prevent it…
-
0
votes2
answers54
viewsQ: Error creating directory with php even using file_exists
Personal beauty? I have a problem which is as follows. I use the following code to create a directory. //verifica se existe diretorio para criar $dir = 'imagens/'.$id_produto.'/';…
-
0
votes2
answers868
viewsQ: Error while adding javascript
I have a code that dynamically generates several inputs. In addition I have a function that should add the value informed within the inputs. The problem is that instead of adding it together it…
javascriptasked Bruno 316 -
0
votes1
answer244
viewsA: Error trying to find file in Android app with File Provider
To solve the problem we had to add the two attributes below to the Intent. intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);…
-
0
votes1
answer244
viewsQ: Error trying to find file in Android app with File Provider
Hello, I’m having a hard time with Fileprovider. The file comes to be created because I checked manually in the directories. I put some logs to see what happens but still can not understand why he…