Posts by Victor Carnaval • 2,430 points
111 posts
-
0
votes1
answer23
viewsA: Error with Laravel being used with API
You need to configure CORS in your project to manage access to your application. There is a library that does the heavy lifting for you leaving only a few settings to be performed. I’ll leave the…
laravelanswered Victor Carnaval 2,430 -
2
votes3
answers253
viewsA: How to request with integer number?
Hello @Arthur! This error happens when you are trying to convert a non-numeric or null value to the whole type. Example: Integer.parseInt(null); Integer.parseInt("a"); Integer.parseInt("");…
-
0
votes1
answer78
viewsA: Calculate 2 numbers and display in the second input
Hello! From what I understand the lightning will always be 2 but the result should be displayed in the lightning input, right?! I will write a solution in pure javascript, without using the Jquery…
javascriptanswered Victor Carnaval 2,430 -
1
votes3
answers6902
viewsA: Ajax request with Error Failed to load Resource: the server responded with a status of 500 (Internal Server Error)
Hello @João Lima, all right?! Looking at the code, apparently everything is normal. Ideally you would use a block try and catch to carry out the manipulation of exceptions. You can also add the…
-
1
votes2
answers664
viewsA: Check if CPF already exists with Jquery Validate
From what I just read in the documentation, your parameter remote request need to handle only true or false to perform the validation and display the custom message you set in the Jquery Validate.…
-
4
votes3
answers746
viewsA: How to change the color of several Ivs at the same time with Hover?
You can use javascript for this. var divRed = document.getElementById('red'); var divBlue = document.getElementById('blue'); var divGreen = document.getElementById('green');…
-
0
votes1
answer33
viewsA: Try to check if a day is inserted between two dates
Like the hkotsubo said, you are concatenating <br /> in each array value. And when performing the comparison with the string it happens as follows: foreach ($datasint as $key => $value) {…
phpanswered Victor Carnaval 2,430 -
1
votes1
answer234
viewsA: Pass HTML data to PDF file
This is Sallazar, all right?! I’ve used two ways to edit PDF’s. One of them is editing on the front end itself using the libraries jsPDF and/or html2canvas, both are javascript. The html2canvas is…
-
0
votes1
answer146
viewsA: Strange characters when receiving contact form content
all right?! You need to add one header (header) encoding for the function mail(). <?php $name = $_POST['nome']; $email = $_POST['email']; $message = $_POST['message']; $formcontent="From: $name…
phpanswered Victor Carnaval 2,430 -
0
votes2
answers102
viewsA: Html/php tables do not appear
In your code you can notice that you are creating the tables dynamically incorrectly. If the condition is true for $_POST["gender"]=="Dep" or for the $_POST["gender"]=="Set" your code will have the…
-
1
votes1
answer148
viewsA: Break lines in a text that comes from the database in a single variable
After the first answer I think I understand your problem. In addition to displaying the formatted text in the element you also want the email to be sent with the formatted content. The best option…