Posts by Emir Marques • 3,586 points
120 posts
-
1
votes1
answer276
viewsA: Error webpack with bootstrap-Loader
It seems you must be using a require('../.app/Assets/Styles/bootstrap/pre-customizations.scss') somewhere. The problem is that from the file you are using it does not locate... try to check the…
-
2
votes1
answer6137
viewsA: How to access an item in an object array?
Try the following: var dados = [ { idAluno : "1", nome: "Pedro", classe : "A1", hp : "3", ap : "5", xp : "1" }, { idAluno : "1", nome: "Carlos", classe : "A1", hp : "8", ap : "7", xp : "1" }, {…
-
1
votes1
answer284
viewsA: How to read return of a java function
Wild talk! I believe the Ws you are using is from the TOTVS flow/ECM. Here is an example of how to get the return, whether in form, process or dataset events: var result = getInstanceCardData(user,…
-
1
votes1
answer744
viewsA: How to organize my project?
First React itself is a library that proves the layer V of said MVC. The View is basically composed of components. There are components dummy, like the ones you own (Titlebox, Contentbox, Row, Col…
reactanswered Emir Marques 3,586 -
0
votes1
answer291
viewsA: Error running . jar out of eclipse with javafx
Apparently he’s not finding the file "/br/Ind/risc/view/Rootlayout.fxml". I suggest to open the file . jar and check if fxml is there. Another thing there is a space at the beginning of the informed…
javafxanswered Emir Marques 3,586 -
0
votes3
answers1618
viewsA: How to group equal values with JSON
Try the following var jsonData = [{"Estado":"São Paulo", "OrderID":"Loja1-SP"}, {"Estado":"São Paulo", "OrderID":"Loja2-SP"}, {"Estado":"São Paulo", "OrderID":"Loja3-SP"}, {"Estado":"Rio de…
-
0
votes1
answer574
viewsA: Google Maps Hide Marker
You didn’t set the function 'clearMarkers'. function clearMarkers() { setMapOnAll(null); }
-
0
votes1
answer42
viewsA: How to make the Auto Clomplete open the bottom of the line where it is being typed?
You can use the autofocus attribute for this. When you find the word just click enter. See the example: <!doctype html> <html lang="en"> <head> <meta charset="utf-8">…
-
0
votes1
answer193
viewsA: Error Code Google Maps API
The problem seems to be in your map variable. See if this example helps <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />…
javascriptanswered Emir Marques 3,586 -
1
votes1
answer283
viewsA: javascript problem the inputs do not call the function?
It ignores why it waits for you to press the enter key to then perform the search: if(e.which == 13) { } Take the example: jQuery.noConflict(); (function($) { $('#bs-mrb').on('keyup',function(e){…
-
0
votes3
answers801
viewsA: Replace in the javascript array
The point is that when you replace '"' with ' you still have a string array. Where each record contains a set of [number, number]. And then the browser console is playing a trick on you. The way the…
-
0
votes1
answer106
viewsA: Game javascript no Framework Cordova or phonegap
How Cordova/phonegap works? The operation is very simple. Cordova is nothing more than a program installed on the mobile phone that has an embedded browser engine. When we develop an app using…
-
5
votes2
answers1465
viewsA: How to make source responsive?
A little bit about font sizes: Ems (in) A unit that is used in web document means is scalable. One in is equal to the current font-size, for example, if the document font size is 12pt , 1in is equal…
-
2
votes2
answers678
viewsA: Mixing Javascript libraries in a project
I was going to open up a similar topic so I’ll leave my opinion here. This depends a lot on the frameworks involved. Jquery + Angular: Not a good practice The angular is a reactive framework.…
-
2
votes1
answer598
viewsQ: Search last firebase record and incrementing in new record
I need to fetch the last code in an array of objects in the firebase. Then increment +1 on that last code and then save the list with the objects. For now I created a generic DAO: //Dao generico…
-
1
votes1
answer240
viewsQ: Create class with common material-ui and React Imports
I would like to create a common class in my application with React and material-ui. I have, for example, to create a series of elements with tables. Every time I use I have to import some libs. For…
reactasked Emir Marques 3,586 -
2
votes2
answers346
viewsA: Infinite list with Ionic?
Take a look at this example: http://codepen.io/d4dilip/pen/rkxyA. Still about a look at the Ionic website: http://ionicframework.com/docs/api/directive/ionInfiniteScroll/ Sample code: HTML: <html…
-
13
votes1
answer5215
viewsA: What is JNDI technology?
What is? JNDI is an API used in applications that access external resources, it allows getting these resources through the name. It specifies the SPI service interface and this mechanism allows the…
-
16
votes1
answer1408
viewsQ: Pick width child element in Angular directive
Next I have a table fed by a simple routine. I need to make the scroll to tbody fixed. So far so good. I could do N shapes. To try to make the table responsive I am using a directive to calculate…
-
5
votes2
answers913
viewsA: $http.get with Angular JS
EDIT 1 Your error is in callback. Change to: app.service('pessoas',function($http){ this.getHumanos = function(callback){…
-
2
votes5
answers3991
viewsA: Update list after push Angularjs
Your problem involves some situations. First: The message attribute is not being started correctly. When you start Message.all returns Undefined or undefined. The correct would be: $Scope.message =…
-
3
votes3
answers4206
viewsA: Catch callbacks from an ajax
Come on, Regardless of your problem, "catch" or "rotate" the done doesn’t make sense. I’ll explain why. How it works The Done: is an internal jquery method that is executed after an ajax call is…
-
3
votes1
answer134
viewsA: How to create a "load" until the function is fully executed?
Come on... Your code has some bad practices. But I will stick to the main one. Whenever working with js and mass data manipulation avoid doing too many accesses to the DOM. I will quote an example:…
-
0
votes1
answer215
viewsA: Loop with Angularjs data
Would that be? var app = angular.module("App", []); app.controller("AppController", function($scope){ $scope.xxx = [ { "id":1, "ano_letivo":2016, "escola_cod":"31011975", "dia":"01/01/2016", "situ…
-
3
votes2
answers125
viewsA: Syntax error warning in the console running Angularjs
The error occurs because the $http post. return a file and not the data itself. To access the return you need to pass two methods to another that is in the called file then. The first method…
angularjsanswered Emir Marques 3,586 -
0
votes3
answers994
viewsA: $Scope Form Angularjs Directive
See if this example helps you: var app = angular.module('app', []); angular.module('app').controller('igCtrl', function ($scope) { $scope.email = ""; $scope.pwd = ""; $scope.algumaCoisaQualquer =…
-
1
votes4
answers810
viewsA: Validate Javascript fields
You can use an angular directive to validate as below: (check explanatory comments in Javascript) angular.module('myApp', ['ionic']).directive('onValidSubmit', ['$parse', '$timeout',…
-
1
votes2
answers3582
viewsA: Required does not work
I performed the test and it’s working for me. "required" was a feature added to HTML5 your browser needs to have support for it. Run a test on Chrome for example. You can use the website:…
-
4
votes1
answer5362
viewsA: What is the purpose of the @Transactional(readonly = false) annotation?
The concept of transaction in Spring can be described with the acronym ACID below: Atomicity: The transaction must be treated as a single operation, which means that all commands present in this…
-
1
votes2
answers1365
viewsA: Search only street of any city + state Google Maps API
You can restrict by the beginning of the city zip code: https://developers.google.com/maps/documentation/javascript/examples/geocoding-component-restriction: function initMap() { var geocoder = new…
-
3
votes1
answer983
viewsA: Difference between Synchronous AJAX and POST/GET
Ajax and Http Protocol(Get, Post) Ajax is a form of communication between client server that uses some types of protocol. Among these are the Http that uses Oe post and get methods to traffic…
-
2
votes1
answer6836
viewsA: I cannot call a function with ng-click
You need to use $Compile. See the example below: var app = angular.module("App", []); app.controller("DemoController", function($scope, $compile){ $scope.montaAccordion = function(){ var elemento =…
-
0
votes1
answer831
viewsA: Communication between angular components 2
After some time I implemented a datepicker component. This one is available here: https://github.com/emirdeliz/meus-projetos/tree/master/angular2-schedule/app/frontend/components/datepicker…
angularanswered Emir Marques 3,586 -
0
votes2
answers3379
viewsA: How to catch a . JSON from a JS URL
You can use the native method: To pass: var json_text = JSON.stringify(your_object, null, 2); var url + '?' + json_text; To recover: var json = JSON.parse(url.split('?')[1]);…
-
4
votes1
answer118
viewsA: Help in passing a jsFiddle code to an HTML file
Place your script at the bottom of the page. The way the browser is going to run the script before rendering the elements. See: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta…
-
2
votes2
answers564
viewsA: Why function is returning Undefined
lucianohdr has already sung the ball. This request you are trying to make is asynchronous. You will need to use a callback method to treat. function chamar(){ consultar(function(result){…
-
1
votes3
answers1233
viewsA: Pass directive inside template
Try the following: angular.module("fornecedor") .controller("pesquisarFornecedorCtrl", ["$scope", "$http", "$timeout", "request", "tools", "$compile" function ($scope, $http, $timeout, request,…
-
1
votes1
answer473
viewsA: What is the Deferred Object in jQuery for?
What good is? It server for asynchronous processing treatment. For example: var timer; (function process() { $('#output').html('Estou carregando angula coisa…'); var deferred = $.Deferred(); /* Aqui…
jqueryanswered Emir Marques 3,586 -
2
votes1
answer614
viewsA: Show only selected checkbox
You can do the following: <div ng-repeat="categoria in categorias | filter:BuscarCategoria"> <h4 ng-model="categoria.selecionado">{{categoria.nome}}</h4> <div…
-
6
votes3
answers2015
viewsA: How to create a controller service?
What is an angular service? An angular service serves to share resources between controllers. The most common use in this case is to use this feature to create a common http communication interface.…
angularjsanswered Emir Marques 3,586 -
0
votes1
answer831
viewsQ: Communication between angular components 2
I have the following code in a component: import {Component, ElementRef, FORM_DIRECTIVES} from 'angular2/angular2'; @Component({ selector: 'datepicker', templateUrl:…
angularasked Emir Marques 3,586 -
1
votes1
answer90
viewsA: Search in mysql database
EDIT 1 Missing a space between select, * and from. It would look like this: String sql = "SELECT * FROM motores WHERE numMotor LIKE ? AND marcaMotor LIKE ? AND modeloMotor LIKE ?"; EDIT 2 You must…
-
21
votes5
answers1899
viewsQ: Is dealing with business rules in the model bad practice?
This is something that may seem simple, but it is not. After all how to define whether a rule should be in the service layer or in the model itself? To illustrate, think of the following: We have an…
-
1
votes1
answer83
viewsA: Trigger() in selects js
Would that be it? Be careful not to repeat the ids. They should be unique on the page $(document).ready( function (){ $('#plan_services_attributes_0_configuration_id').change(function(){ var…
-
0
votes1
answer30
viewsA: Resizing with Jquery
EDIT 1 See if this plugin suits you: http://responsivemobilemenu.com/en/ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link…
-
5
votes2
answers195
viewsA: Clear Input When Choosing Another Option
Missing you include the filter checked at the moment pick the selected option. $("input[name='receiver-destiny_type_people']:checked"). val()…
-
0
votes2
answers870
viewsA: How best to reuse code between modules
You can create a Commons module similar to the one below. In this use module utils. to make the methods generic. Allied to this you can also create common directives to your program. If you do not…
-
0
votes1
answer72
viewsA: Angularjs Protocol file://
To work with angular you need to have an http server. However you can achieve this very simply. 1- Install node and Node package manager called npm About the Node: https://nodejs.org/en/ Nodejs and…
-
1
votes1
answer117
viewsA: Method ignoring callback function in jQuery plugin
I made some adjustments to your code. Run this example and look at the browser console. $(function(){ $("#ipTeste").tooltip('hide'); //$("#ipTeste").tooltip('show'); //$("#ipTeste").tooltip('init');…
-
1
votes3
answers989
viewsA: Execute command with variable -JS
Try the following on: function efeito_pergunta(efeito){ var modifica = '$("#div_pergunta").'; var modifica_2 = efeito+'(3000);'; var acao = modifica + modifica_2; eval(acao); }…