Posts by Pedro Correia • 131 points
13 posts
-
0
votes1
answer206
viewsQ: Connection refused when I do Curl to a service
I have a service/API that runs on xampp, xampp is installed on a Windows server. From the moment I started to hear the door 1500 instead of the 80 in the xampp, I started to have some problems.…
-
-1
votes1
answer53
viewsQ: Why does function . text() in jQuery not have the expected behavior?
I’m doing a web development for a joomla site. When I do: jQuery('.encomendas tbody').on('click', 'td.details-control', function () { $(this).toggleClass('diminuir'); if…
-
1
votes2
answers217
viewsQ: Why does ajax post request for the controller not work?
I am using codeigniter, I needed to execute a function(parm1) of the model in the view, so as recommended I made a request for the controller, in the controller I read the model and call the…
codeigniterasked Pedro Correia 131 -
0
votes1
answer951
viewsQ: How does csrf-Protection work in Codeigniter?
Today while working on a codeigniter project, I came across the concept CSRF - Cross-site request forgery. This happened when I got error 403 - permission denided when making a GET request in AJAX…
-
0
votes1
answer757
viewsQ: How to run Model function in View with codeigniter?
I am using codeigniter (based on PHP and Model-Control-View). I have a controller that loads a Model and a View. [Controller] public function index() { $data['agenda_model'] =…
-
1
votes2
answers3852
viewsA: Why does Bootstrap 4 datepicker API not work?
[Quasi-resolved] DATA API Like the bootstrap plug-ins themselves, datepicker provides a data API that can be used to instantiate datepickers without the need for custom javascript. For most…
-
1
votes2
answers3852
viewsQ: Why does Bootstrap 4 datepicker API not work?
I’m creating a calendar, somewhere in the view, I needed an input for the user to enter a date. Since I’m wearing bootstrap 4 and bootstrap has several Addons for datepickers, I used one of them. On…
-
1
votes1
answer35
viewsQ: How to center content with dynamic CSS dimensions?
I am using Bootstrap 4, which is based on flexbox(dynamic properties/dimensions). I created a Datapicker, with an input and icon on the right side. <div class="col-md-3"> <div…
-
1
votes1
answer94
viewsQ: What CSS properties for specific background?
I’m trying to draw a button. I want a background similar to the image below. I started using the border-Radius property, but without success. [css] .btn-criar{ height: 50%; min-width: 60px;…
cssasked Pedro Correia 131 -
1
votes1
answer248
viewsQ: Why do Codeigniter 3.1 routes not work?
I’m a beginner in PHP, recently decided to learn and started reading the book "Codeigniter - Productivity When Creating Web Applications in PHP". In an attempt to follow the creation of an…
-
1
votes2
answers421
viewsQ: Javascript - error callback is not defined
I’m running a few asynchronous functions, who receive a callback, this callback gets as parameter a Boolean(true or false). When executing I have the error callback is not defined. [code] file -…
-
2
votes1
answer259
viewsA: How to upload an image to Nodejs?
[UPDATE] I found solution [server] app.post('/setimageprofile', function(req, res) { var request_data = ''; var writable = fs.createWriteStream('./client_imgs/getusername.png', 'base64');…
-
2
votes1
answer259
viewsQ: How to upload an image to Nodejs?
Good afternoon, I want to make a POST Request of the client in JAVASCRIPT with DATA Send (file . jpg) in date URL for the NODEJS server. [Client] - Javascript finalImg.onload = function(event){ var…