Posts by Daniel Plácido • 85 points
17 posts
-
-3
votes1
answer257
viewsQ: How to identify line end in Javascript / jQuery?
I have the following code: var cont1 = $('.stat_col:contains("Total de páginas impressas")').next(); var cont2 = $('.stat_col:contains("Total de páginas impressas em preto e branco")').next(); var…
-
-1
votes2
answers147
viewsA: Access control Access-Control-Allow-Origin on the Apache PHP server side
I was able to resolve by disabling Cloudflare’s "Always use HTTPS".
-
1
votes2
answers147
viewsQ: Access control Access-Control-Allow-Origin on the Apache PHP server side
I don’t know much about PHP and I’m trying to create an application to automatically register products from my online store directly in Mercadolivre. Ad data is captured with JavaScript and sent to…
-
1
votes2
answers2568
viewsA: Receive PHP Json POST
I managed to resolve, as the data received is in Json it does not come through the POST but in 'php://input' <?php header("Access-Control-Allow-Origin: *"); header('Cache-Control: no-cache,…
-
0
votes2
answers2568
viewsQ: Receive PHP Json POST
I am trying to receive in PHP a Json via POST and display it on the screen, the Json is sent through an API that does not have access to the script you send, I am trying to print on the screen…
-
1
votes2
answers311
viewsQ: A jQuery Get() inside another jQuery get()
I need to run a jQuery Get() inside another, but I’m not getting anywhere, just ignore the second Get() without returning what I need (the username of the second get()):…
-
0
votes1
answer71
viewsA: How to filter another page result with Jquery Load() or Get()?
I managed to solve $.get("https://myaccount.mercadolivre.com.br/profile", function(data, status){ var username = $('.ch-form-row span', $(data)).html(); //todo o codigo que precisa da variavel });…
-
0
votes1
answer71
viewsQ: How to filter another page result with Jquery Load() or Get()?
In an HTML have for example: <fieldset> <div> <h3 class="title title-line">Dados da conta</h3> </div> <div class="ch-form-row"> <label>Usuário</label>…
-
0
votes1
answer31
viewsQ: Help to create function that locates text in Javascript
I’m trying to create a userscript for me to enter my password instead of clicking on the numeric keyboard that the site requires. The problem is that each button corresponds to 2 random numbers, so…
-
0
votes1
answer32
viewsQ: Timeline tab in Chrome, no
https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/timeline-tool?hl=pt-br My Chrome 61.0.3163.91 64 bits already reviewed and I can not find in any way this tab…
google-chromeasked Daniel Plácido 85 -
0
votes3
answers101
viewsA: Run a script once yes and once no
Hello, I don’t know much about PHP, but for what you want I think a simple solution +- like this: $file = fopen("verifica.txt", 'r'); $ler = fgets($file, 1024); if($ler > 0){ fwrite($file, "1");…
-
1
votes2
answers1840
viewsA: Change CSS with jQuery
You can post an example of how you want? I believe something like: $(document).on('click', '#efeito', function(){ //Ação executada no evento de clique no elemento com ID = "efeito"…
-
1
votes1
answer779
viewsA: PWA - How to use beforeinstallprompt event?
I managed to solve. The use of the function is correct, what happens is that only "enter" this function when the installation is carried out when the popup in the browser asks if the user wants to…
-
4
votes1
answer779
viewsQ: PWA - How to use beforeinstallprompt event?
I have a Progressive Web Apps and am trying to create a function to know how many users "install" or not my app. According to the documentation…
-
-1
votes2
answers257
viewsA: How to filter Json data with jQuery?
I got. Since there was a lot of information in Json that I wasn’t able to handle in Javascript, I first studied it in PHP to return only the data I wanted: {"tracking_number": "xxxxxxxxxxx",…
-
0
votes2
answers257
viewsQ: How to filter Json data with jQuery?
I have basic knowledge of JS, like to work with jQuery that makes it easy enough. I have several data in Json and would like to create some variables as a result of some Json lines, follow an…
-
0
votes1
answer56
viewsQ: Load Javascript from a URL through the Address bar or Bookmarklet
I have some Userscripts and would like to run on my Windows Phone, but there is no app for WP like Greasemonkey or Tampermonkey. Then I came up with a crazy idea but I believe it will work: Create a…