Posts by Ramos • 612 points
146 posts
-
0
votes1
answer841
viewsQ: How to read the result of a JSON array using Ionic 3?
I’m doing a GET for login, but I need to get the user ID for the session as well: submit(){ var link = 'http://localhost:1337/usuario?email='+ this.usuario.email + '&senha='+ this.usuario.senha;…
-
0
votes0
answers272
viewsQ: Relationship local tablesStorage Ionic 3
I want to make a relationship between two "tables" in Ionic 3 with Localsotrage. I created a preview with the first that would be the movement register: import { Injectable } from '@angular/core';…
-
0
votes1
answer180
viewsA: Colors of buttons created in Ionic Creator do not stay in the project as in mockup
The Ionic Creator for version 3 is still in the testing phase and takes a lot of Ionic 1 and a bit of 3. You need to get the documentation and go fixing the code.
-
0
votes1
answer180
viewsQ: Colors of buttons created in Ionic Creator do not stay in the project as in mockup
I created a layout using Ionic Creator, exported but the button colors and other elements created (in Ionic version 3) are ALL blue. Follow an example code: <div id="wellFit-button-bar1"…
-
6
votes1
answer691
viewsQ: GIT error sending project to Ionic Pro: fatal: sha1 file '<stdout>' write error: Broken pipe
I signed Ionic Pro and I’m trying to send my local project to their Cloud. I use the command: git push ionic master It starts all right but makes the mistakes to follow: git push ionic master Enter…
-
1
votes2
answers57
views -
1
votes1
answer844
views -
2
votes1
answer1500
viewsQ: How to insert specific fonts into the CSS?
My client passed specific fonts to a website. These are in TTF format. I’m used to using Google fonts and there’s no fonts there. How can I use these fonts in my CSS or HTML?…
-
2
votes1
answer594
viewsQ: HTML and CSS - Center Tabs in the center of the page
It’s a Newbie question, but I’m having a hard time. I have 3 tabs that are like this: But I’d like you to stay in the center like this: Also instead of text, I would like to place images. My CSS for…
-
1
votes1
answer308
viewsA: Build Ionic on MAC: When adding plugin says " Requirements check failed for JDK 1.8 or Greater" but already installed
You need to install the Java version of the Apple Store, it cannot be direct from the Oracle website and install Cocoa.
-
1
votes0
answers31
views -
1
votes1
answer308
viewsQ: Build Ionic on MAC: When adding plugin says " Requirements check failed for JDK 1.8 or Greater" but already installed
When I add the Ios platform on Mac, it gives the message that the codova file tranfer plugin has not been installed, to try with --force. But when installing with the command: cordova plugin rm…
-
1
votes1
answer471
viewsQ: Ionic 1: Error compiling for iOS - [ERROR] An error occurred while running Cordova build Ios (Exit code 1)
I’m compiling for the first time on Mac, for iPhone, when I type the command for compilation: cordova build ios Error arises: [ERROR] An error occurred while running cordova build ios (exit code 1).…
-
0
votes2
answers568
viewsA: Ionic with Cordova, Androidmanifest.xml build error
I decided, in addition to what was mentioned by @Wéllingthon M. de Souza, I changed the values that were "null" in: apply from: 'CordovaLib/cordova.gradle' // The value for…
-
1
votes2
answers568
viewsQ: Ionic with Cordova, Androidmanifest.xml build error
When in my console I give the command to compile my project in Ionic and Cordova, I get the following message: :mergeArmv7DebugResources UP-TO-DATE…
-
1
votes1
answer611
viewsQ: Ionic and Cordova build error: An error occurred while running Cordova build android --debug (Exit code 1):
I’m trying to compile my application, but it gives the following message:: > cordova build android --debug × Running command - failed! [ERROR] An error occurred while running cordova build…
-
0
votes1
answer53
viewsQ: Firebase Cloud Messaging with $cordovaPush, how to work also for iPhone?
I am emulating my application by Intel XDK for IOS. I use it by working with Windows and it emulates and gives the error messages very well. The first mistake, is that when the user logs in, he…
-
4
votes1
answer198
viewsQ: How to perform a type of href with parameters on an image using Ionic / Angularjs
I have this snippet of code, which shows an image with a CSS on top: <img class="imagemCapa" image-lazy-loader="lines" ng-src="{{item.cadastra_oferta_foto}}" /> <div…
-
0
votes3
answers968
viewsQ: How to use SHA1 in login with PHP picking up parameters?
I created a registration using as password encryption the SHA1, where the password parameter step as: $senha = sha1($_GET['senha']); However, I’m not sure how to decrypt, still passing parameter,…
-
0
votes1
answer168
viewsQ: phpmailer is not taking the values from my database
I’m trying to recover e-mail and password, where: $o_email = $_GET['email']; $celular = $_GET['celular']; Receives via URL the user’s email or mobile phone. But I am not able to get these recovered…
-
0
votes2
answers174
viewsA: Angular scroll with problem loading BD data
Your PHP, try turning it into a JSON, like this example. The way you’re doing, I don’t know if you get the results. <?php header('Content-type: application/json');…
-
0
votes2
answers174
viewsA: Angular scroll with problem loading BD data
In View, something like on-Infinite: <ion-list class="list"> <div class="spacer" style="width: 300px; height: 90px;"></div> <ion-infinite-scroll ng-if="!noMoreItemsAvailable"…
-
0
votes1
answer121
viewsA: How to search for words in a JSON using Ionic?
I solved using POG! Follows the resolution: $scope.fechaTeclado = function () { $cordovaKeyboard.close(); if ($scope.q === '') { $scope.q = ''; window.localStorage.setItem("q", $scope.q);…
-
0
votes1
answer115
viewsA: How do I get splice() into http.get using Ionic / Angularjs for searching?
I settled with POG! Follows: $scope.fechaTeclado = function () { $cordovaKeyboard.close(); if ($scope.q === '') { $scope.q = ''; window.localStorage.setItem("q", $scope.q); $scope.pagination = {…
-
0
votes1
answer36
viewsA: How to make a required ion-radio, or make the button inactive while not choosing an option?
I used POG (Gambiarra-oriented programming)! ng-required does not accept. Where this if finds nothing, but also does not let pass if there is nothing selected. Nor does Alert give... total POG.…
-
0
votes4
answers1346
viewsA: Select query by age group
Let’s assume you’re passing the dataini parameters, like: $dataini = $_GET['dataini']; So the WHERE clauses should be: SELECT data, sexo, idade, count(*) qtd FROM marcacao WHERE (data >=…
-
1
votes3
answers1764
viewsA: Ionic - Display side menu in all view except main page
In your view, use hide-nav-bar="true" as in the following example: <ion-view title="Sua localização" hide-nav-bar="true"> <ion-content padding="true" class="has-header"…
-
0
votes1
answer36
viewsQ: How to make a required ion-radio, or make the button inactive while not choosing an option?
How can I make an ion-radio as required, or disable the button if nothing is selected? <ion-radio ng-model="escolhido.categoria_comida_cod_categoria_com"…
-
0
votes1
answer44
viewsQ: Why is my WHERE statement in Mysql not working?
I have the SELECT below, and in the WHERE clauses the amount of credit would only be shown if >= 2, but even putting the condition, shows me everything. (fornecedor_credito.qtd_credito >= '2')…
-
0
votes1
answer115
viewsQ: How do I get splice() into http.get using Ionic / Angularjs for searching?
I want to filter according to what the user type on the screen. I have a form with the ng-model="q" and the | filter:q Where my http.get pass the parameters I am filtering, where ng-model is the…
-
0
votes1
answer121
viewsQ: How to search for words in a JSON using Ionic?
I have a JSON and it’s paginated. When it was not paged, when typing anything in the search, it looked for what was printed on the screen, as in the following example: <form…
-
0
votes1
answer1564
viewsQ: How to pass a parameter via curl_exec to another url with PHP?
I have a PHP that after performing an operation it calls an external URL and returns the value of this external URL, using curl_exec. However, I need to pass a parameter to this new url, preferably…
-
0
votes1
answer434
viewsA: How to reduce image quality in upload using Cordova and Ionic 1?
In 'quality' I put 20 and reduced by 80%: $scope.selectPicture = function (sourceType) { var options = { quality: 20, destinationType: Camera.DestinationType.FILE_URI, sourceType: sourceType,…
-
0
votes0
answers57
viewsQ: How to resolve require_once with Unexpected T_STATIC error in PHP?
I’m using the library https://github.com/nfe/client-php from Nfe.io to issue tax note automatically when the return of Paypal and Paypal is "Paid". Try using the call in various ways, according to…
-
0
votes0
answers338
views -
0
votes3
answers1380
viewsA: How to print an HTML using PHP a <ul> list of items with 3 different types?
The answer I marked as correct is perfect. Thank you @Inkeliz. How I use PDO connection I had to adapt, so just to add here to this post, follows as I did using PDO connection: <div…
-
0
votes3
answers1380
viewsQ: How to print an HTML using PHP a <ul> list of items with 3 different types?
I have a Mysql table called Plans with the fields: Which is a table of subscription plans of a website, the final template is as shown in the following image: Where: name = Name of Plan op1 = First…
-
0
votes0
answers285
viewsQ: How to get the latitude and longitude values of the Google Maps Autocomplete example?
I’m using this example in the Lavarel form: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform?hl=pt-br Works well, I do the fields autocomplete,…
-
0
votes1
answer434
viewsQ: How to reduce image quality in upload using Cordova and Ionic 1?
Using the Cordova plugin: cordova-plugin-file cordova-plugin-file-transfer cordova-plugin-filepath cordova-plugin-camera cordova-plugin-actionsheet Who together use this code template: `// Present…
-
0
votes1
answer110
viewsA: How to turn off the Ionic menu startup?
Try something like: $ionicHistory.nextViewOptions({ disableBack: false, historyRoot: true }); $ionicHistory.clearCache(); $ionicHistory.clearHistory(); $state.go("nhaac.perfil"); Declaring…
-
1
votes2
answers984
viewsQ: How to update data from a table only if the new values are different from the current ones?
How can I do an UPDATE only if the data sent is different from the data stored? I’m with the following: <?php header('Content-type: application/json'); header('Access-Control-Allow-Origin: *');…
-
1
votes1
answer663
views -
0
votes1
answer343
viewsA: How to make a Radius calculation in SQL, using Mysql, with two conditions?
Solved as follows and seems to be working. I created a new field, in the table supplier_configura_freight called raio_actuacao, I took what was right in the user location filter and changed only the…
-
1
votes1
answer343
viewsQ: How to make a Radius calculation in SQL, using Mysql, with two conditions?
Hello, I already do a radius calculation in SQL, using Mysql and PHP, which takes the location of the device (latitude and longitude) and filters the radius according to the location of the device.…
-
1
votes2
answers530
viewsA: Field Ionic search, need to close when user click "Go" or "OK" from Keyboard
The only way it worked was by transforming it into a form: <form ng-submit="fechaTeclado()"> <div class="bar bar-subheader bar-light"> <label class="item item-input…
-
0
votes1
answer75
viewsA: Phpmailer does not recognize "-" character in the form input
Try on your form: <input type="email" class="form_control" name="email" required /> And forget PHP validation. Or: <input type="text" name="email" pattern="[^ @]*@[^ @]*" required />…
-
1
votes3
answers557
viewsA: See if a video has been paused to upload?
Long ago I did this, I can’t find here... But, you can define . playing as a custom property for all media elements and accessing it when needed. An example:…
-
1
votes1
answer528
viewsQ: How to make an SQL (Mysql) query with medium and multiple INNER tables?
I have an instruction SQL with 5 tables. Note that I make even a calculation of radius. I need to add a new table of evaluations with: cod_evaluation int(11) cod_client cod_supplier general decimal…
-
1
votes0
answers175
viewsQ: How to upload images with Cloudinary and PHP
My client is clueless. He sends photos of 4MB to the system, and complains about speed. I’m thinking about using the Cloudinary to solve this problem. There are libraries for PHP in the…
-
0
votes1
answer68
viewsA: How can I set ranges in Ionic with a predetermined initial value?
It was actually lack of attention from me. I had to have created the models after the array: $scope.configura = []; $scope.configura.hora_prazo_min = 0; $scope.configura.minutos_prazo_min = 0;…