Posts by Alisson Maciel • 141 points
34 posts
-
0
votes1
answer12
viewsA: Questions about webhooks: how to manipulate data that comes instantly?
Try this on before your Return json_encode $myfile = fopen("dados_" . date('Y-m-d H:i:s') . ".txt", "w") or die("falha ao gerar arquivo!"); $txt = ""; fwrite($myfile, $txt); $txt =…
-
0
votes0
answers46
viewsQ: Move Draggable to right and left and crop dimensions
I have a social network with wowonder, I made a modification on the Timeline page, I took the top cover image in banner format, and I put it on the side, with the size of 280x500, it turns out that…
-
0
votes1
answer56
viewsQ: Treating array with php to Laravel
I need to recover the first array from this list of arrays. I need to recover BTC and LTC, and the attributes rate_btc, tx_fee and name. array(1029) { ["BTC"]=> array(9) { ["is_fiat"]=> int(0)…
-
1
votes1
answer55
viewsQ: How to handle this array code with php?
I have a question, how to treat this array: ["*original"]=> array(13) { ["id"]=> int(1) ["user_id"]=> int(3) ["reference"]=> string(36) "c8d2076672c9631e8c048589f3a9a26f3961"…
-
-1
votes1
answer437
viewsQ: How to block access to a htaccess page?
need to block access to a Page (URL) with htaccess, for example: http://site_exemplo.com.br/noticias/como-bloquear-acesso-a-pagina I want to block via htaccess…
-
0
votes1
answer939
viewsQ: Bootstrap datepicker 1.6.4
I want to know how I do to start the date enabled for tomorrow’s day in the bootstrap datepicker, for example, the user can not select the date of today or yesterday, the user can only click on…
-
1
votes1
answer115
viewsQ: Cleaning div edge with jQuery
How do I clean the edge of a DIV in Loop with jQuery? For example, I’m with a modal, looping database data with Json, I have a button to select each item returned from that list-(loop), then I did…
-
1
votes1
answer615
viewsQ: Search by Range of coverage
I am programming a site and in the advanced search has the option of the user to do a search to find places close to the city he is. I have all the states and cities registered in the bank. But I…
-
1
votes1
answer34
viewsQ: Identify type of operation with javascript
How can I identify, when the click is "From:" "To:"? I have a code to add a value from a database field, to another field, follow the example: HTML: <div class='row justify-content-center'>…
-
0
votes2
answers973
viewsA: How to build a JSON structure?
I solved the problem by doing it this way: foreach ($dados->cServico as $linhas) { $linhas = (array) $linhas; if ($linhas['Erro'] == 0) { if ($linhas['Codigo'] == '04510'): $servico = 'PAC';…
-
1
votes2
answers973
viewsQ: How to build a JSON structure?
I have the following JSON: { "status": true, "msg": "", "frete": [ { "Transportadora": "Correios", "Tempo": "16", "Msg": "", "Codigo": "04510", "Servico": "PAC", "Valor": "131.30" }, {…
-
1
votes1
answer87
viewsQ: Error sending ajax request
I am making a registration via ajax, and I am getting the following error: Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight. You don’t register, you…
-
0
votes1
answer143
viewsQ: Search system with charging on demand
I have a search system with load on demand with php and jquery, I can search for letters correctly, and I do the load on demand correctly, the problem is that when switching letters to search, it…
-
0
votes0
answers97
viewsQ: Custom Loading on Demand
Hello folks would like to make a shipment on demand, but I’m not getting to assemble. Just follow my code: function show(letra) { var itens = ""; $.ajax({ type: 'GET', dataType: 'json', data:…
-
-1
votes1
answer48
viewsA: Error when making real time request with Xmlhttprequest
I was checking and came to the conclusion that the code was not wrong, the problem was cache, I simply created a new file, copied the code of the file that was with the problem, and I changed the…
-
-1
votes1
answer48
viewsQ: Error when making real time request with Xmlhttprequest
I have an error in my Real Time request via Xmlhttprequest, follow javascript code: function requisitar() { var base_url = window.location.origin; var xmlhttp; if (window.XMLHttpRequest) { xmlhttp =…
-
0
votes1
answer133
viewsA: Place Variable inside Formdata
Good people, after sticking Google here, I ended up finding the solution in this link: https://developer.mozilla.org/en-US/docs/Web/API/FormData/set It’s there for anyone with the same problem in…
-
0
votes1
answer133
viewsQ: Place Variable inside Formdata
How can I put a jquery variable inside Formdata? Example: I have a CKEDITOR, but I am not able to save in the database, but I am using the format of sending with ajax, I found on a website, to…
-
0
votes3
answers536
viewsA: How to Block a button
I recommend, you create a table called for example: bets made, with id | id_usuario | id_game | bet | status each betting click made by the user, vc saved in this table, and checks whether the same…
-
0
votes2
answers2832
viewsA: how to do a mysql search with php and return the data in each input?
Take this example, it can be useful, done in jquery, if you just want to comment, and I get your questions. <script…
-
-1
votes2
answers3624
viewsQ: Remove negative signal from input number
I have the following code in jquery: $.each(data.Dados, function (i, val) { tr += '<tr>'; tr += '<td><div class="product" style="margin-bottom:0;padding-bottom:0;"><div…
-
1
votes0
answers216
viewsQ: Cart product loop at transparent pagseguro checkout
Good morning to all, I have a question and a problem to solve. I’m setting up a transparent checkout, and it works by the way. Currently I put products in the cart, we are the subtotals, to…
-
0
votes1
answer267
viewsQ: Sum subtotal with jquery
Good afternoon, Access this site: conepa.agenciaweblab.com.br/inscriptions Guys, I’m having a little problem with my stroller system, I am able to multiply the value with the amount of each loop,…
-
0
votes0
answers102
viewsQ: Login through a domain
I have a problem to solve. I have a social network, and I have a chat boom chat, the social network is wowonder. I am integrating the login system of the social network in the chat boom, but when I…
-
0
votes1
answer78
viewsQ: Text string word filtering
I need a working solution for a system I’m making. I need to block textarea field registration if it contains a few words in the string, example: This is a brief description about my profile, my…
-
1
votes1
answer147
viewsQ: CSS to style Total Woocommerce
I’m setting up a virtual store on wordpress and would like to know how I do to stylize the Total at the top of the site. Currently it gets broken, as if they had given a block between the R$ and the…
-
1
votes0
answers89
viewsQ: Registration of recurrence from calendar
I am trying to make a record of recurrence of dates for an event, I have this calendar: https://procurandooquefazer.com.br/data_calendario/ I wanted it to be possible to click on each date,…
-
0
votes0
answers105
viewsQ: Registration of dates from the calendar
I am trying to make a record of recurrence of dates for an event, I have this calendar: https://procurandooquefazer.com.br/data_calendario/ I wanted it to be possible to click on each date,…
-
1
votes0
answers190
viewsQ: Create category and subcategory persistence with jquery
Today I have a persistence problem in the select field of categories and subcategories I made with jquery with the help of a video, since I’m not very good with jquery. I have the following jquery…
-
0
votes0
answers217
viewsQ: Solve textarea editing with jQuery
I am making an event registration, with PHP and jQuery, to register it all happens well, but when I change, it causes an error: Example: We all know that when we enter a page to edit, we have to…
-
0
votes2
answers1335
viewsA: $_GET gets ID or name value?
$_GET and $_POST take the values of the name, to get values via id, you must use javascript or jquery.
-
1
votes1
answer202
viewsQ: Missing list items with jquery or javascript
I have the following codes below and I need to make sure that when I click on the autocomplete result, and it fills the field with the values, the list of the autocomplete simply disappears:…
-
1
votes1
answer311
viewsQ: Save data to database with Drag & Drop
I’m having some problems to insert an ordering in the database, I’m using a Drag and Drop system, which I downloaded on the net and the system works exactly as I need and want. Only that I am with a…
-
0
votes2
answers370
viewsQ: Autocomplete in dynamic fields
I have an autocomplete system and dynamic fields, my autocomplete does not work from the second dynamic field nor do I stop using id tags and replacing them with classes, please see: <script>…