Posts by André Vicente • 984 points
47 posts
-
0
votes1
answer266
viewsA: How to generate the SHA-1 hash
Google is asking for the path to your debug key. In my notebook I use: keytool -exportcert -keystore C:\Users\meuNome\.android\debug.keystore -list -v
-
0
votes3
answers202
viewsA: Change entire application font without changing the size (Swift)
From swift 4 you can change the font without having to change the size. Swift 4 UILabel.appearance().font = UIFont.preferredFont(forTextStyle: UIFontTextStyle(rawValue: "Roboto-Medium")) Swift 4.2…
-
2
votes1
answer14955
viewsA: Angular 7 - How to make "Else if" with "*ngif"?
In case your project will not need to use else, only using the *ngIf in each ng-container you can display the content according to the selected item. I’ll put the file function . ts for future…
-
1
votes1
answer770
viewsA: Upgrade version of Ionic
It can upgrade without fear. I have several projects with Ionic 1 and I started some time using Ionic 2. What set your project settings are the file information package.json of your project. There…
ionicanswered André Vicente 984 -
0
votes1
answer46
viewsA: Show Page 2 event value in a Page 1 input
One of the ways you can do this is by using Events https://ionicframework.com/docs/api/util/Events/ In your page 1 you start the event listener. events.subscribe('usar:forca', (valor) => {…
-
0
votes1
answer1896
viewsA: Parameters and variables between components [Ionic + Firebase]
You can pass the whole object as a parameter in its function. On your page html breweries. I advise changing the name you use in *ngFor because you are using "brewery of brewery", this can give…
-
1
votes1
answer511
viewsA: Cordova.js file does not appear
This file is automatically generated when you build it, so you should reference it and it is not in any of the folders of your project. There is a story explaining in more detail Testing…
intel-xdkanswered André Vicente 984 -
1
votes1
answer4234
viewsA: How to get input text value with Angularjs?
I don’t understand why your controller is making select outside the click function, I imagine you want to select already once you load Ionic, but the function does not need to be inside the ready.…
angularjsanswered André Vicente 984 -
0
votes1
answer520
viewsA: Clear a route between two points (API google maps)
You must store the directionsDisplay object in a variable if it is set from setMap(null). //variavel para guardar o directionsDisplay var displayObject = false; // Obtendo a latitude e longitude…
google-mapsanswered André Vicente 984 -
1
votes1
answer558
viewsA: How to hide Undefined or validated variables after reloading the page?
Is giving undefined which does not yet have the $_POST, then what you have to do is check if you have the POST. At the beginning of your code put this way: if(isset($_POST)){ $datee = explode('-',…
-
3
votes2
answers271
viewsA: jQuery with Internet Explorer
Your problem is that the getElementsByTagName returns a NodeList and the for .. in should not be used for such, it should be used to traverse enumerable properties of objects. If you change yours…
-
2
votes1
answer663
viewsA: Pull API Rest data and display the data on the screen
The code is wrong. The correct way to show the array inside the object would be: output+="<li>" + data.Product.ProductImage[i].http + "</li>";
-
2
votes3
answers7027
viewsA: Search ZIP Post Office
There is an example in PHP for this, including I’ve used, access http://www.rafaelwendel.com/2012/08/preenchimento-automatico-do-endereco-a-partir-do-cep/. In the Url you use in your example does…
phpanswered André Vicente 984 -
12
votes2
answers34056
viewsA: Convert ZIP to latitude and longitude (Javascript)
You can use the geocoding of the google api. Add the Google API <script src="http://maps.google.com/maps/api/js"></script> Then just pass the zip code or address to get the latitude and…
-
1
votes1
answer38
viewsA: Get path using the user’s location to the predefined marker (javascript google-mapsv3)
document.getElementById("map") In this part of the code you put the id of the div where the map will be made, in this example the id of the div is "map". You can replace it with the id of your div.…
-
0
votes4
answers116
viewsA: Help with Jquery appear div
<ul> <li><a href="#div1" id="1" class="link">Conteudo1</a></li> <li><a href="#div2" id="2" class="link">Conteudo2</a></li> <li><a…
jqueryanswered André Vicente 984 -
2
votes1
answer8628
viewsA: Mask to validate CPF and CNPJ in the same field with jQuery
There is an example in javascript that is easy to find on the internet, I’ve used in a project. Javascript function mascaraMutuario(o,f){ v_obj=o v_fun=f setTimeout('execmascara()',1) } function…
jqueryanswered André Vicente 984 -
0
votes1
answer136
viewsA: APP works on XDK debug but does not work on smartphone
To better see the error it would be better to run the app in the XDK debug, go to the tab Network and see what is returning, or give a console.log(jqXHR) in its ajax error function. I’ve had a…
-
2
votes2
answers363
viewsA: Directive Angular
You put: <meu-botao-editar href="/fotos/edit/{{foto._id}}" nome="Editar"></meu-botao-perigo> <meu-botao-perigo acao="remover(foto)" nome="Remover"></meu-botao-perigo> The…
-
11
votes3
answers2168
viewsA: How to Make Icone Ride in the Google Maps api
I use the Marker Animate https://github.com/combatwombat/marker-animate var marker = new google.maps.Marker({position: new google.maps.LatLng(0,0), map: myMap, title: 'Hello World!'}); var…
-
4
votes1
answer121
viewsA: Change programming language pro APK
You can update the app. In the company I work for today they only had native apps for android and Ios. I made hybrids with Ionic and already updated on both platforms. What you need is to sign the…
-
0
votes3
answers1243
viewsA: How to select the content of an input in ng-Focus?
I used in ng-click and ng-Focus and it worked, in both cases called the function, but to get the value of the field used $Event.target.value Just one question: Why do I pick up the Focus? when the…
-
2
votes2
answers1418
viewsA: Redirect to External Link
To open in the browser you can use the plugin inappbrowser. This link has some references of how to use. You can do this way: <a href="#" onclick="window.open('http://www.site.com',…
-
0
votes1
answer59
viewsA: Title system bug I developed
Using pageX and pageY when vc scroll on the screen he keeps picking the distance the mouse to the top of the div. Using the clientX and clientY it takes the correct distance.…
-
1
votes1
answer336
viewsA: How to add scroll in ion-tabs with various tab?
Are you still having this problem? I managed to solve a similar one today, in my tabs are dynamic, the user can add as many as he wants and delete as well. To solve the problem I added a minimum…
-
0
votes1
answer40
viewsA: Call slider slide method - jQuery Ui
From what it says in the documentation: Triggered in each mouse movement during slide. The given value in case as ui.value represents the value the handle will have as a result of the current…
-
1
votes1
answer898
viewsA: Place local Json in external Json $http Angular / Ionic
You can pull the files that are in the project or on an external server using $http.get, have you tried it this way? I’ll just change your getProducts, I can’t test the full code now, see if it…
-
0
votes3
answers350
viewsA: Data of an Array
Dude, I managed to solve it this way: I create an array where the Dice are the times and I see if this already set, if I’m concateno the day, otherwise I create the position in the array. var…
-
0
votes1
answer109
viewsA: Ionic + Angularjs error list item
I didn’t see in your controller where you try to redeem the value of the ID you passed, we usually use the $stateParams.NomeDoparametro. I would do this: Take out href and call a function in…
-
0
votes2
answers257
viewsA: Extra margin appearing on elements with display input-block. How to resolve?
Leave their <div class="container"> with display: flex; or display: table; solves, but I don’t know if it will disturb you in your button alignment…
cssanswered André Vicente 984 -
1
votes2
answers52
viewsA: Problem with <select> animation
I understand what you want. I’ve made some changes. In HTML, in the first div: <div class='form-group-select'> <label class='control-label'>CENTRO DE CUSTO</label> <select…
-
1
votes2
answers1596
viewsA: Get cursor position with jquery
You can save the mouse information and pick up when calling the keyUp: var posicaoMouse = { x: -1, y: -1 }; $(document).mousemove(function(event) { posicaoMouse.x = event.pageX; posicaoMouse.y =…
-
0
votes2
answers831
viewsA: Using dynamic maps with the Google Maps API
In the example that @Guilherme Nascimento passed I would only change the function initMap() function initMap() { // Try HTML5 geolocation. if (navigator.geolocation) {…
-
0
votes1
answer83
viewsA: Problem when updating Scope
Alter your ion-content. I did a test here on codepen, see if mobile works. <ion-content overflow-scroll="true">
ionicanswered André Vicente 984 -
1
votes2
answers1588
viewsA: How to pass input value with POST method using Angular
On the ng-click call you are passing val1, val2 and in the function receives operation You could send : <input id="soma" type="button" value="soma" ng-click="doClick(val1, val2, operacao)">…
-
1
votes1
answer202
viewsA: Doubts Intel XDK
I don’t know if we can call xdk programming language, in the meta description here in the stack says : Intel® XDK is an HTML5-based hybrid web application development tool. I believe it is an IDE…
intel-xdkanswered André Vicente 984 -
0
votes1
answer383
viewsA: IOS app with Intel XDK on windows
I’ve already published the application for Ios done in windows. You can generate the file . ipa but the problem is sending to itunnes. I needed to use macinclound to access a virtual Mac and send my…
-
2
votes1
answer453
viewsA: Editing the Package Name on Intel XDK
On the upper left side has the flap Projects, click there, then go to build Settings, Flap Android and change the App ID which is that package name.…
-
0
votes2
answers572
viewsA: Remove previous route from Google Maps
The setMap(null) @Dian Carlos passed is correct, maybe you didn’t put it in the right place. Try this way: var directionsDisplay = null; var directionsService = new google.maps.DirectionsService();…
-
1
votes1
answer750
viewsA: Google Maps API Return markers with JSON as you move the map or zoom
There is an event called when the user stops dragging the map: map.addListener('idle', function () {} ); You can pick up the visible points on the map using Bounds(): var bounds = map.getBounds();…
-
1
votes2
answers96
viewsA: Google Maps API
You mean the establishments, bus stops and everything else that appears? It has to remove. var mapOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP, disableDefaultUI: true, }; var map = new…
google-mapsanswered André Vicente 984 -
0
votes1
answer665
viewsA: Validation messages appearing before sending form
You can also validate if the field has already been modified: !Empresa.nomeemp.$pristine && Empresa.nomeemp.$invalid $pristine means that the field has not been modified, in this case it is…
ionicanswered André Vicente 984 -
1
votes2
answers3348
viewsA: Call function in $state.go() Ionic/Angular.js
You can do it this way: .controller('HomeCtrl', function($scope, $state) { $rootScope.myFunction = function(valor) { alert(valor); } }) .controller('AddCtrl', function($scope, $state) { $scope.add =…
-
0
votes3
answers189
viewsA: Ion-tabs with tabs-top class on iOS?
As it is only on iphone you can set in css to give a bigger top. .platform-ios .tabs-top{ top: 90px !important; } I put 90px, but if it does not get good you can increase. In iphone usually tabs are…
-
3
votes2
answers7111
viewsA: How do I pass a parameter to another Scope with Angularjs?
You can configure your route as follows: $stateProvider.state('detalhes', { url: '/detalhes/{idItem}', templateUrl: 'detalhes.html', controller: 'DetalhesCtrl' }); To pass the item id you put in the…
angularjsanswered André Vicente 984 -
0
votes2
answers659
viewsA: Problem when trying to get $Scope of form with Ionic
I had this problem, I solved it this way: - On your button you can pass the form this way: ng-click="save(user, user)". - Exchange the Function call for $Scope.save = Function(user, form) - At the…
-
1
votes2
answers80
viewsA: <ion-spinner> only works once, how to correct it?
I had problems with spinner when I was using old version of Ionic. Take a look at the Ionic/version.json file and see what version you’re using. Check on the website http://code.ionicframework.com/#…