Posts by Luiz Antônio Cardoso Costa • 43 points
10 posts
-
1
votes1
answer120
viewsA: Button Submit closing modal
You’ll have to use Ajax. The problem is that when Click on the Submit button the form action property redirects Submit to the same page, which gives the impression that closed the modal. But not…
-
-1
votes1
answer44
viewsA: Receive data from and submitted through a modal window
Good afternoon. Face this way does not work when you use action in the form it generates a request doing Load on screen. the best way is to use an ajax…
-
0
votes1
answer102
viewsA: Roll anchor
Guy uses that example here. it’s very simple $('a[href^="#"]').on('click', function(e) { e.preventDefault(); var id = $(this).attr('href'), targetOffset = $(id).offset().top; $('html,…
-
0
votes2
answers55
viewsA: How can I receive all values that correspond to a search list
Hello I would wear so. let result = [ { id: 1, firstName: 'Pedro', lastName: 'Silva', code: 'AA', }, { id: 2, firstName: 'Maria', lastName: 'Lurdes', code: 'AB', }, { id: 3, firstName: 'Joao',…
javascriptanswered Luiz Antônio Cardoso Costa 43 -
0
votes6
answers16160
viewsA: Format 9 and 8 digit phone numbers
I wear it like this. function clean_char($string) { return preg_replace('/\D/', '', $string); } function telefone_format($tel) { $tel = clean_char($tel); if(empty($tel)){ return " Nenhum"; //OPCINAL…
phpanswered Luiz Antônio Cardoso Costa 43 -
2
votes3
answers9080
viewsA: On-demand paging with Angular or Javascript
var c = sualistaEmJson; $scope.totalPorPagina = 10; $scope.totalRegistro = c.length; $scope.pagina = []; var p = $scope.totalRegistro > $scope.totalPorPagina ? Math.ceil($scope.totalRegistro /…
-
-1
votes1
answer591
viewsA: ng-View does not render content - Angularjs
so! almost sure it’s the missing controller call: you set there. <div ng-controller="search" ng-view> ou <div ng-controller="search"> <div ng-view> </div>…
-
0
votes3
answers506
viewsA: Apply "datepicker" to element after angular call
Hello to integrate Datepicker in Angularjs the best way out is to create a custom Directive. In the example below I created an angular app and includes a Directive named "incluiDatepicker" could be…
-
-1
votes1
answer1421
viewsA: Clear URL Parameters after include
For a redirect you better switch. include("templates/inicio.php") for header('Location: templates/inicio.php'); ou header('Location: http://site.com/pagina.php'); //Ai já redireciona. more if it is…
-
1
votes2
answers6542
viewsA: Currency mask problem in input
Here I created a function to format. //Função formatação e Mascara de input. function funSftMask(value, format) { /* Aqui verifica se o campo aceita mais de um formato.…