Posts by Fábio Alves • 174 points
13 posts
-
0
votes2
answers608
viewsA: How to pass values created by ngFor as function parameter Ionic 3 + Angular + Firebase?
For this mistake not to happen, you must declare "products" as an Array. produtos = []; Even if there is no index "description" it will continue the loop without errors.…
-
1
votes2
answers845
viewsA: How to find and select option with select-specific label with jQuery
You can do it this way: $("select").find("option").html("SEU_TEXTO"); Or if you want this specific option can do so $("select").find("option[value=10]").html("SEU_TEXTO");…
-
0
votes1
answer46
viewsA: Insert upload values into an array with another name?
Dear friend, if I understand your intention I recommend you to use directly the prefixed indexes of the variable $_FILES of PHP. Not returning values because you are using the implode bounded by ","…
phpanswered Fábio Alves 174 -
1
votes2
answers2780
viewsA: Return PHP values via Ajax and display in HTML (separately)
As you are working with Javascript try returning your PHP response in JSON format to AJAX: <?php echo json_encode( "a" => "1", "b" => "2", "c" => "3", )); ?> And now you can work with…
-
0
votes1
answer430
viewsA: Cordova: Ajax works in browser but not on Android device
This may vary depending on the version of HTML that is on the device, try to see also if the permissions required from the Android application to do this type of procedure (which is an external…
-
0
votes1
answer510
viewsA: Problems with jQuery load | CORS
This happens because the page you are trying to get information, has a kind of lock to prevent this action so that it is not possible to access it from an external server.
-
1
votes2
answers104
viewsA: Sql file or direct in the database
There is no standard way to create tables or data in the database, but to facilitate and streamline your work use a database manager, you will prefer.
-
1
votes2
answers137
viewsA: Problem sending input value (which is updated in a While) to another page via POST
Try to use: <input type="text" name="nome_municipio[]" /> And on the page where you will receive the $_POST Make another repeat loop to pick up the values foreach ($_POST['nome_municipio'] as…
-
0
votes1
answer166
viewsA: How to reload only table after ajax
Yes, if I understood your question, it would be like dynamically updating/constructing a table/div with AJAX, you can do it as follows. Store in a file the content that will be presented in your…
-
1
votes2
answers496
viewsA: How do I activate a div with Javascript?
To make the element appear, use the following code to return the property style of this object that will give you access to the element’s CSS. See the example below using your own function: function…
-
2
votes2
answers3115
viewsA: Problems with UTF-8 ISO-8859-1 mysql php accentuation
If your database is encoded differently from your code you can use PHP example: mysql_query("SET character_set_results = 'utf8'"); Replace the 'utf8' for your preferred encoding. But the ideal is to…
-
0
votes2
answers221
viewsA: Doubt to Link form in PHP to send by email
As mentioned above, I also recommend using the email sending class Phpmailler. I’ve been using it for a long time and I’ve never had a problem with it, is simple to use and if your email is in…
-
5
votes1
answer1306
viewsQ: Identify objects in an image with javascript/php
Is it possible to identify objects in a given image with Javascript or PHP? Facial recognition I know has how, and how would other objects?