Posts by Pedro Gabriel • 79 points
6 posts
-
0
votes2
answers3046
viewsA: jQuery validate submitHandler does not work on firefox
if you want to use the event, use this pattern: $("#form").submit(function(e) { e.preventDefault(); }).validate({ rules: {...}, submitHandler: function(form) { //codigo return false; } });…
-
1
votes1
answer277
viewsA: Angularjs website accessing API, authentication doubt
Angled pages are single pages, singlePage Applications (or also known as a stateless architecture), the best way to authenticate in singlePage Applications is by using JWT (Json web tokens) In case…
-
1
votes1
answer470
viewsA: How to set the value of an element using jquery and conditionally setting a manual value if the value is empty
I’ll show you two techniques (of the countless) to do this, a traditional with if and Else var texto = $("#diagnostico").val(); if(texto != "") $("#modal_diagnostico").text( texto ); else…
jqueryanswered Pedro Gabriel 79 -
2
votes2
answers396
viewsA: How to play relationship in Objects?
Pedidoitem class must contain an attribute of the product type public class PedidoItem{ ... private Produto produto; ... Request class has a list of Pedidoitem public class Pedido{ ... private…
-
1
votes2
answers3885
viewsA: Extract JSON object item with Angular.js
can try it inside your Success LatLongService.getLatLong($scope.model).success(function(data, status){ var addresses = []; angular.forEach(data.results, function(item){ addresses.push({latitude:…
-
-1
votes2
answers412
viewsA: Filter Images by Category with Angularjs Checkbox
Try to use this: ng-repeat="picture in devList | filter:item.checked as results" Tip: You can make the "Results" section optional to reuse the results, plus the filter:item.checked is what you’re…