Will it be possible to get the zip code used with my latitude and longitude? I am using ionic 2 and the cordova-geolocation plugin. I already get the latitude and longitude. I ask this because I have a form which asks for the zip code, but it would be better if it was obtained automatically.
Wuilmer Medrano's questions
I have a field password
and a pattern, but it only validates some passwords for me.
Pattern policy:
- Minimum 8 characters
- An uppercase letter
- a lowercase letter
- A special character (
!#$%&/()?¡_-
)
I use the Ionic 2 framework .
I am doing the validation like this:
public passRegex ="(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" return this.formBuilder.group({
correo: ['',Validators.compose([Validators.required,Validators.pattern(this.emailRegex)])],
confirmarEmail: ['',Validators.compose([Validators.required,Validators.pattern(this.emailRegex)])],
passwordRetry: this.formBuilder.group({
clave: ['', [Validators.pattern(this.passRegex)]],
passwordConfirmation: ['', [Validators.pattern(this.passRegex)]]
},{validator:this.compararPass('clave','passwordConfirmation')})
},{validator:this.compararEmail('correo','confirmarEmail')});
If I put the chain it Ejemploj#240518
works, but if I put Pruebaenki#123456
it it doesn't work.
ionic info:
Your system information:Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 0.0.43
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.8
Node Version: v6.5.0
Xcode version: Not installed
Hello I have a project in development with ionic. And I need to display a sidemenu, but the examples I've gotten are using the ionic sidemenu template which works very differently. If you could explain me or place a link to see how I could do it
Hello I have a validated form, but I want to show a toast to inform the user that the field is empty ionic 2
I have a problem when compiling:
Error: Source path does not exist: platforms/android/res/screen/android/3.jpg
I have the images in:platforms/android/res/screen/android/
I have a map which calculates with this method of google directionsService.route, with that method a response is returned. I just want is to be able to get the time calculated by google.
var directionsDisplay = new google.maps.DirectionsRenderer();
var directionsService = new google.maps.DirectionsService();
var request = {
origin:{lat:latitudUsuario,lng:longitudUsuario},
destination: {lat:9.95,lng:-67.39},
travelMode: google.maps.DirectionsTravelMode['DRIVING'],
unitSystem: google.maps.DirectionsUnitSystem['METRIC'],
provideRouteAlternatives: true
};
directionsService.route(request, function(response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setMap(map);
directionsDisplay.setDirections(response);
}else{
alert("No existen rutas entre ambos puntos");
}
});
I am developing an app with phonegap and jquery mobile. I have a screen similar to the uber map screen. Uber has a foot panel on the map screen which, when you touch it and go up, the panel goes up. What is it called or how could I do that effect?
I am using the plugin from: cordova-plugin-geolocation. The problem is that if the device has gps disabled, it does not show the map.
I want to mask an input text with the following format: Aa-1234, where the 2 letters are the initials of US states, separated by a hyphen, and the 4 numbers are the 4-digit zip code: how could I do it with javascript?