Posts by Michel Lovatto • 40 points
10 posts
-
0
votes1
answer41
viewsA: Permission for PHP file using AJAX
I usually use this header to give permission when I need to access by ajax, in the case of * you can set the source you want header('Access-Control-Allow-Origin: *');
-
-1
votes1
answer35
viewsQ: Easyautocomplete does not find the searched value in the field
I’m making an order system and I need the field where the seller selects the customer to have the search option. I tried with the html datalist but the search didn’t work very well, so I’m trying to…
-
1
votes4
answers196
viewsA: How to mark and uncheck div (by checking and unchecking Checkbox) with jQuery
You can use the $('.form-check').removeClass("active"); to remove from all and then yes, apply only to the selected $(this).addClass("active");…
-
-1
votes2
answers104
viewsA: how to validate lines from a csv file not to go empty to the database
This function skips the blank lines if(($handle = fopen('csv/'.$_FILES['upl']['name'], "r")) !== FALSE) { $csvKey = 0; while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) { // testa se a linha…
phpanswered Michel Lovatto 40 -
-1
votes1
answer63
viewsA: Phpmailer how to receive replies that email has not been delivered
With the if ($mail->send()) { you can check if it was sent to the protocol successfully, but if it was delivered or not, then I guess it is already with the protocol itself, would have to check…
-
1
votes1
answer39
viewsA: Position elements on the screen
If your idea is to keep the Labels on the input side, I recommend using a "col-xx-xx" on the label as well <div class="form-group"> <label for="nome" class="col-md-2…
-
0
votes2
answers51
viewsA: Query does not work inside php
Tries to force the printing of errors, maybe giving error only it is not displayed due to the server settings, uses it at the beginning of the code. ini_set('display_errors',1);…
-
0
votes1
answer132
viewsA: How do I display the text of a notification when the user opens this notification?
I managed, actually the problem was not in the app, but where I send the news, with the FCM need to send title and message to when the app is in foreground and other for when it is in the…
-
0
votes1
answer132
viewsQ: How do I display the text of a notification when the user opens this notification?
I’m creating an app with Phonegap and using cordova-plugin-firebase to send notifications to Android, I’m able to send the notification, but when I "open" the notification I can’t show its content…
-
0
votes2
answers115
viewsA: Is it possible to change the "href" of the <link rel="stylesheet"> of an iframe or even change the class/style an iframe element?
Try this, use this script after iframe has been loaded $('link[href="Styles/report.css"]'). attr("href", "seucss.css");