Posts by JeffersonCarlosBD • 242 points
14 posts
-
5
votes1
answer205
viewsQ: How much does an HTTP request cost?
Client sends a post bodiless to any API post('api.dominio.com') Server returns only 204 status code return res.status(204) Assuming the above situation happens, the client makes a request without…
-
0
votes2
answers102
viewsA: How to manipulate Mongodb out of the configuration file?
I ended up opting for the package express-Mongo-db, not quite what I wanted, but with about 3 lines of code it was possible to call the bank to each request: var app = require('express')(); var…
-
0
votes2
answers102
viewsQ: How to manipulate Mongodb out of the configuration file?
I am studying Nodejs and Mongodb, I can even make the connection and some tests in the bank, but I would like to be able to export the connection with the bank to be able to do…
-
1
votes2
answers47
viewsQ: How to manipulate another Window Front with JS
I’ve done enough research... what I’d like to do is something like: var janela = window.open( "https://www.google.com/", "_blank" ); var pesquisa = janela.document.getElementById("lst-ib");…
javascriptasked JeffersonCarlosBD 242 -
0
votes2
answers37
viewsQ: reuse Javascript between Linux-hosted sites
Before spending energy trying to implement this, I wonder if anyone knows if this is bad practice and if it really works I have some websites hosted with the root folder as follows: Site 1:…
-
4
votes1
answer173
viewsQ: Application without Back-end
I’m doing a mini-application here at the company, where it consumes an API that uses JWT authentication (login done with email and password)... As everything I’ve done so far was with PHP, I’m a…
-
1
votes2
answers797
viewsA: Send data to another page
You can use a full Hidden form: Page A: <b>Variável AA:</b>: <?= $aa ?><br /> <b>Variável AB:</b>: <?= $ab ?><br /> <form action="paginaB.php"…
phpanswered JeffersonCarlosBD 242 -
5
votes2
answers820
viewsQ: GET, POST or PUT, which one to use to issue a invoice?
Which should I use when the intention is not to view, save or update the data? I’m creating an API that makes the issuance of an electronic invoice, I made the complete CRUD for the information of…
-
3
votes2
answers220
viewsQ: Is it worth putting two foreign keys on a table?
having the tables: Companies Customers empresa_id: foreign key Sales cliente_id: foreign key and the relationships are: Companies and Clients => 1:N Customers and Sales => 1:N Considering that…
-
1
votes2
answers1263
viewsQ: Sponse() in XML with Laravel
I have studied about developing Apis with Laravel, a quick question, it is possible to return an XML instead of a json? instead of doing: return response()->json($json); do something like: return…
-
0
votes3
answers2359
viewsA: Change htdocs from XAMPP to USB stick folder (or use XAMPP on Pendriver)
I did it! I decided to follow the other option that @Rafaelsouzacalearo gave... If someone has the same problem as me, (tried to install xampp in several ways) these commands can be useful: ERROR:…
-
0
votes3
answers2359
viewsQ: Change htdocs from XAMPP to USB stick folder (or use XAMPP on Pendriver)
I already researched a lot, I changed everything that was line httpd.conf and httpd-xampp.conf but nothing went right. I am trying to change the default htdocs xampp folder to a folder on my…
-
0
votes2
answers53
viewsQ: How to slideToggle() from div that was requested via ajax?
Dear Mr(a)s,, I have a div that is filled via ajax: function atualizaConteudo(){ $.ajax({ url: 'getters/conteudo_amanha.php', success: function(data) { $('#conteudo_amanha').html(data); } }); }…
-
0
votes2
answers105
viewsQ: How to define table that will receive the Insert using PHP variable?
I have some tables that follow a pattern: NomeUsuário_SobreomeUsuário_IDUsuário_sementes Jefferson_carlos_1_seeds Carlos_drummond_2_seeds the name, surname and ID are stored in the session and I…