Posts by Lucas • 462 points
23 posts
-
0
votes3
answers116
viewsA: How to return the value of a file outside its scope
Xios works with promisse, so you need to wait for promisse to resolve at some point. Test this code, this way you solve within the function itself: static async findCursoPessoa(coddisciplina:…
-
0
votes1
answer3720
viewsA: Objects are not Valid as a React Child (found: Object with Keys {price, item}). If you Meant to render a Collection of Children, use an array Instead
From what I understand in the Komponent CardKitchen you try to render {props.clientOrder} but it is not a simple element, probably an Object, so it cannot render. Take a test: exchange…
-
0
votes1
answer24
viewsA: Error with Promise fetch
Its variable cont is already an element, so you don’t need the .document. You can use the .querySelector direct in the cont variable: let play = cont.querySelector(`.box${num}`)…
-
1
votes2
answers64
viewsA: How to redirect to another page, using the query that went to the previous page?
You can use the window.location.search. If the current url is: http://foo.com/success-proffy?subject=FOO&weekday=1&time=32132132 window.location.search should return:…
-
0
votes1
answer27
viewsA: Check login with arrays
You can’t just add one else if? For example: function Entrada_login() { var password = document.getElementById("Password").value; var email = document.getElementById("Email").value; for (var i = 0;…
-
0
votes1
answer66
viewsA: How to add elements from a table based on a parameter
You can try the following solution instead of using the reduce in the class, you can loop each row of the table and use the class tech as key to calculate each line and place within an array. var…
-
1
votes1
answer36
viewsA: React-Native Route Flux does not work
Apparently the <Router> does not accept several components <Scene> at once, try to involve these components in the <Stack>, does not forget to import it. <Router> <Stack…
-
3
votes1
answer97
viewsA: Join two objects in another object
To do this you will need to make sure that the variables obj1 and obj2 are with the same amount of items and with the order you need correct. var obj1 = ['1', '02', '5']; var obj2 = ['ana', 'fia',…
-
0
votes1
answer102
viewsA: Error sending email PHP-Laravel
Tries the use Mail: namespace App\Http\Controllers; use Mail;
-
0
votes3
answers103
viewsA: Disable button via php/jquery/javascript
There must be a better solution, but it might work In your query: $query ="SELECT * FROM bancod WHERE id like '" . $_POST["keyword"] . "%' ORDER BY id LIMIT 0,9"; $result = mysqli_query($con,…
-
0
votes2
answers137
viewsA: Paging a Dynamic Selectbox in different php files
Well before anything else I recommend you to do some research on sql Injection I took a look at your code and I think it might help: Taking into account that when you navigate to the page…
-
1
votes2
answers96
viewsA: Increment function in another jQuery function
@Eliseu just needs a simple change in function jQuery.fn.highlight It’s like this: var pos = node.data.toUpperCase().indexOf(pat); Change it to look like this: var pos =…
-
2
votes1
answer51
viewsA: Pass parameter with AJAX to PHP when opening a modal
Jquery Slim does not have the ajax function, you need to use the full version of Jquery, try with this file: <script…
-
0
votes2
answers3933
viewsA: Align the "Nav-item" to the right, leave centered
Kaigo does the following: First strip the li that you want to go right and put him in a ul separate. Then add mr-auto in the first class ul. The code will look like this: <div class="collapse…
-
0
votes3
answers58
viewsA: How do I make a data typed in an input go to a java script function?
You can use Jquery to do this. First you need to give an id for this input, for example: id="email" <input style="color: #ffffff;" ng-model="user.email" type="email" placeholder="E-mail"…
-
2
votes2
answers2339
viewsA: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data
You just take the header('Content-type: application/json'); the browser is assuming that its content is JSON and tries to format.
-
0
votes1
answer228
viewsA: XML manipulation with PHP
Gabriel the problem is that you’re looking for the information at the wrong level, this information is actually a few levels further in. Try it that way: foreach…
-
0
votes1
answer60
viewsA: Send data from a form by email
Someone, you are saving the data that the user entered in the table Mensagem of the database? If not its variable $email_body it should be like this: $email_body = "Nome do Utilizador:" .$Nome."\n".…
-
0
votes3
answers144
viewsA: I would like to take the case sensitive out of a search in . PHP
Put everything in uppercase. For example: var texto = $(this).val().toUpperCase(); $("#ulItens li").css("display", "block"); $("#ulItens li").each(function(){…
javascriptanswered Lucas 462 -
2
votes1
answer1143
viewsA: How to use except in mysql
I believe that the EXCEPT does not work in the Mysql, but you can try using the NOT IN. For example: SELECT ofe.ofeCodigo, ofe.ofeTitulo FROM tbloferta ofe, tblcategoriaoferta cof WHERE…
-
0
votes1
answer31
viewsA: Problems in PHP cart
Good afternoon Leonardo, as you are storing this data in the database you can change your query a little and return the quantity of products grouping the records. $consulta = "SELECT…
-
0
votes2
answers198
viewsA: Display Welcome Screen with User Name in PHP page
Josafa will be that you can post the code you are using to give echo? You need to do something like this: $email = $_SESSION['Email']; $busca = "SELECT Nome FROM newsletter WHERE Email = '$email'";…
-
2
votes2
answers1547
viewsA: How to open modal with results on the Submit button?
Leos this is simpler than it looks, when you push the button resultado (small) it already creates a body in html, you just need to play it within your modal. Come on, at the end of your code there…