Posts by Laranja Mecânica • 499 points
72 posts
-
1
votes1
answer36
viewsQ: How to remove null decimal part (00) of Javascript number formatting?
I intend in Javascript to have the following result: Entree Expected exit 1.6 1,60€ 1 1€ 1.55 1,55€ I’ve tried to: num.toLocaleString('pt-PT', { minimumFractionDigits: 0, maximumFractionDigits: 2 })…
-
0
votes1
answer105
viewsA: Flutter - Mobx and Checkbox()
Eventually I solved it, I created a new list only with the id’s of the categories, that is, whenever I add a new object to the list of selected categories, I also add the id to a list of strings,…
-
0
votes1
answer105
viewsQ: Flutter - Mobx and Checkbox()
I’m using Mobx and I want to create a checkbox list, that list is already created, however I can’t make the values change when we click the checkbox, although the logic is running and adds items to…
-
0
votes1
answer68
viewsQ: Flutter: Sublist model of the same model, (Class tree)
I am creating an application where I call an external API that returns a list of categories, each category can have a list of categories (subcategories). I don’t know how I can make my model right.…
-
0
votes1
answer25
viewsA: "Unexpected data found" on function return
I removed from the Model Event protected $dateFormat = 'Y-m-d H:i:s'; protected $dates = ['date_time_init', 'date_time_end']; These lines of code conflicted with public function…
-
0
votes1
answer25
viewsQ: "Unexpected data found" on function return
I have a function that should return a json from a Collection generated by a Builder query. $today = Carbon::today()->format('Y-m-d'); $tasks = Task::where('date',…
-
1
votes1
answer253
viewsA: Heroku downgrade php 7.3. * to 7.2. *
My Composer.json was incorrect, I changed to the following: "require": { "php": "~7.2.11", More information about versions here:…
-
0
votes1
answer253
viewsQ: Heroku downgrade php 7.3. * to 7.2. *
I don’t know how I upgraded the php version in Heroku to version 7.3, however this version (7.3.) is causing several bugs in the application, with do I can downgrade to version 7.2. ? I have already…
-
3
votes1
answer250
viewsQ: How to underline effect by controlling the underscore size
How to make a title have an underscore, but manage to control the size of that underscore. Follow an example of the intended:…
-
-2
votes1
answer81
viewsA: Lumen blocks only one route on CORS, all others work
I was able to solve, it was a problem in the configuration of the email in Appservice Provider, because every time you enter a record an email is sent and was returning error in this configuration…
-
-2
votes1
answer81
viewsQ: Lumen blocks only one route on CORS, all others work
I have a system that was working, but suddenly it stopped working. Giving error "No 'Access-Control-Allow-Origin' header is present on the requested Resource" Etou using Lumen with…
-
1
votes1
answer177
viewsQ: Inheritance class: error TS2554: Expected 5 Arguments, but got 0
I have two classes in Angular 4 that are related by inheritance, however in doing the build makes a mistake: error TS2554: Expected 5 Arguments, but got 0. Pai Class: constructor(protected http:…
-
4
votes1
answer239
viewsQ: Download File via API + Lumen + Maatwebsite Excel
I have an Angular 5 application that requests the backend made in Lumen 5.6, in this backend, I have a function that creates an excel file, with the Maatwebsite Excel library, for download. However…
-
0
votes1
answer1038
viewsQ: Owl Carousel + Vue.js with dynamic item
Hello, I have a component that initializes a slider with dynamic items coming from the database. However, I have a search box that makes a new request to the database and returns new items to…
-
1
votes2
answers60
viewsQ: Access the data returned in the success of an ajax request, within a $('form'). on('Submit'...)
I have a $('form'). on('Submit', Function()); and inside it I would like to make a call from a function that runs an ajax and returns an array of data. however when saving the return of the function…
-
1
votes1
answer810
viewsQ: Remove dynamically created html element in ajax Success
I created an ajax request to dynamically create a new element li, however I have a function also in ajax to eliminate registration and in success eliminate the li valet. The problem is that, in all…
-
0
votes1
answer644
viewsA: How to pass an object between independent components
Missed making me $boradcast on parent component to be able to pass it to other child component, follow solution. Component Guest.Vue: Add Dispatch, in my case it was a method: selectSemana(){…
-
0
votes1
answer644
viewsQ: How to pass an object between independent components
I have a problem, I need to pass an object between two independent components but I’m not succeeding, I tried with $broadcast but without success, follow my components to get ideas of the structure.…
-
0
votes1
answer620
viewsA: Materialize.css insert icon over a card image
My ignorance. It is documented in the materialize documentation that it is possible to add a title to the image-card. Although not yet able to center the icon it already appears on the image.…
-
0
votes1
answer620
viewsQ: Materialize.css insert icon over a card image
Hello, I have some cards in materialize.css that I would like to insert over the image (.card-image) a specific icon (in the example the video icon), but I’m not getting it. <div…
-
0
votes0
answers36
viewsQ: Changing the names of XML nodes and subnodes coming from an array
I have an array, which I want to transform into an xml document, I already managed to create it but I can’t change the names of some nodes and subnodes, follows an example of an array to be…
-
1
votes1
answer1133
viewsQ: Create dynamic inputs from a json object
I have a form that the user can add several languages who can speak, this form consists of a dropdown and a button to add the respective language. At the moment I click on the add button it adds new…
-
0
votes0
answers28
viewsQ: Open a query string and add the value to an input from an iframe
I have a page that contains an iframe with a form, I would like to be able to access a string query of the main page and add that value to an Hidden input that is in iframe. It is possible? Thank…
-
1
votes1
answer226
viewsQ: Make Vertical slide with scroll and fade and Parallax
I wanted to make a slide like this site: http://www.midtownatlinnovates.com/why-midtown/ , where the information is divided vertically and scrolling down changes the image and info. Someone can shed…
-
1
votes1
answer285
viewsQ: How to sort a category post by a Custom field?
I have a platform in Wordpress where a particular category has a Custom field (a date). You can make sure that when you show posts in this category they are sorted by the Custom field I added?…
-
4
votes1
answer1358
viewsQ: Allow to display my wordpress site in an iframe on another site
Hello, I have a wordpress site that would like to show one of the pages in an iframe on another site, is it possible to do this? At the moment doing the iframe on another page seems to me the…
-
1
votes1
answer73
viewsQ: Query to return only the records of the last 24h (Codeigniter)
Hello I needed to do a query that returns the values of only the last 24h i have the following query: $date = date("Y-m-d H:i:s"); $this->db->select('*'); $this->db->from('inscricoes');…
-
3
votes1
answer281
viewsA: Automatically populate a text box with a database value
I’ve already solved I used the following ajax code: $(document).ready(function() { $('#cPostal').focusout(function(){ localidade(); }); }); function localidade(){ var cPostal =…
-
1
votes1
answer281
viewsQ: Automatically populate a text box with a database value
I have a form with 5 fields, and I need the local field to be filled with a value of the database corresponding to the field Postal Code that was previously filled in. I’m using the codeigniter…
-
0
votes1
answer28
viewsA: Resend form and validate again after validation failure
Already solved, just insert an Else in each validation Follow the validation code: $( "#submeterForm1" ).click(function(e) { //e.preventDefault(); var pNome = $('#pNome').val().trim(); var uNome =…
-
0
votes1
answer28
viewsQ: Resend form and validate again after validation failure
Hello I have a form in which all fields are being validated by jquery, however when the validation fails and shows the messages I can’t resubmit and keeps showing me the error message Follow the…
-
2
votes1
answer82
viewsQ: Validate text box so it has 9 numbers and can only start with 9 or 2
Good afternoon, It needed to create a validation of a text box in which it is mandatory to be only numbers and which must start with 9 or 2 and must also have 9 numbers. Someone gives me a light on…
-
1
votes2
answers1348
viewsQ: Create an image with dynamic text overlay and send by email
I needed to create a system that allows me to have 2 or 3 images to choose and in these images it is possible to insert a text written by the user and that can be sent by email with the image in the…
-
1
votes1
answer326
viewsQ: Send array to Controller and insert into DB, with Ajax and Codeigniter
Hello, I am unable to receive (in the controller) the array that is sent from a View via ajax. I already tested it in the console.log and the array is sent but nothing happens in the controller. the…
-
1
votes0
answers67
viewsQ: Postcards with background image and dynamic text in php, for sending by email
Good afternoon, I will need to make a web page where a user chooses a background image and then in a text box adds a text and finally can send it by email. Kind birthday Christmas card etc. Can…
-
0
votes0
answers243
viewsQ: Sending email to gmail (Codeigniter), appears as spammer
I have a problem sending emails to Gmail through Codeigniter. Every email I send doesn’t show up the images and gets a Gmail message saying it might be a spammer. Is there any way to get over it?…
-
1
votes0
answers783
viewsQ: Add form title in Hidden field (Contact Form 7 WP Plugin)
Good afternoon, You can add the title of the Contact Form 7 plugin form in a Hidden field (Wordpress) This is the shortcut used Plo plugin: [contact-form-7 id="86" title="Titulo do Contacto"] This…
-
0
votes1
answer1020
viewsQ: Calculate the number of hours between two hours and turn into float
I needed to create a function that received two hours in the format (00:00:00), calculate the number of hours between them, and convert me to float. However the float would be of this genre:…
-
0
votes2
answers854
viewsQ: Pass value from a select to a link’s GET parameter
Hello, I needed to pass the value of one to a parameter of a link, this to be sent via GET. I am using the codeigniter framework. Follow the code I have: <div class="col-xs-12 col-md-3…
-
6
votes4
answers1343
viewsQ: Plugin bootstrap-material-datetimepicker disable days of the week
I’m using the Timepicker plugin called bootstrap-material-datetimepicker: (https://github.com/T00rk/bootstrap-material-datetimepicker). I’d like to be able to shut down some days of the week, or…
-
0
votes1
answer1199
viewsQ: Use FULL JOIN in Mysql
I needed to make a query that I return in a row the data of a candidate plus the courses to which I applied, and this data is in a relational table 'tblcandidatoCurso'. After some research I tried…
-
1
votes1
answer43
viewsQ: Show form in page load
I have a text box which, depending on the number, displays a set of inputs form as presented in the following images: The problem is that when I enter the page I have as default value 1 in the text…
-
3
votes1
answer1690
viewsQ: Datepicker is shown behind the modal bootstrap
I have a modal in bootstrap: <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close"…
-
1
votes1
answer290
viewsQ: Show rss feed news one at a time with fade
I have the following php code to fetch the news feed from a particular site: <?php $rss = new DOMDocument(); $rss->load('http://feeds.jn.pt/JN-ULTIMAS'); $feed = array(); foreach…
-
0
votes1
answer172
viewsQ: Timepicker in jquery dynamic input
Needed to add the datepicker plugin to inputs that are added dynamically via a jquery script: Follow the script I’m using: $(document).ready(function() { var txtQuantidade =…
-
0
votes1
answer22
viewsA: syntaxError: Unespected end of input OK
I discovered the problem: It was the opencart translation for PT_EN that was not well done and made this mistake
-
0
votes1
answer22
viewsQ: syntaxError: Unespected end of input OK
I upgraded the opencart version 1.5.x to version 2.0.1.1, everything went well except that I can’t edit orders from customers nor change the status of the order and notify Follow the prints of…
-
4
votes1
answer1338
viewsQ: How to Make Automatic URL in Paypal
I have a page with a form that, after submitted, sends the data to paypal, after the customer make the payment wanted it to be redirected to the return url I send along with this form, however,…
apiasked Laranja Mecânica 499 -
0
votes1
answer24
viewsQ: Re-populate input file type after codigniter validation error
I needed that whenever there was a validation error, when returning to the form the file fields were with the previously completed information, however I’m not getting it to happen, I tried with the…
-
1
votes3
answers650
viewsQ: Jquery calculate average and insert the result into the average field that is disable
Good afternoon, Needed to calculate the average of the values inserted in the 4 text boxes, and only to learn the average result in the middle text box after all are filled HTML <div…
jqueryasked Laranja Mecânica 499