Posts by Emir Marques • 3,586 points
120 posts
-
3
votes1
answer112
viewsA: what influences Google indexing time?
One of the main things that influence this indexing is what people call web semantics. In short, it is the act of you providing the indexer with standards that demonstrate what you are reporting on…
seoanswered Emir Marques 3,586 -
1
votes1
answer49
viewsA: Present results centered on a table
Only include the style: td {height: 50px; width:50px;} td {height: 50px; width:50px;} #cssTable td {text-align:center; vertical-align:middle;} <table border="1"> <tr> <td…
-
2
votes3
answers1559
viewsA: Map show current location
I used the code below: private GoogleMap.OnMyLocationChangeListener myLocationChangeListener = new GoogleMap.OnMyLocationChangeListener() { @Override public void onMyLocationChange(Location…
-
1
votes2
answers394
viewsA: How do I get value in the <td> tag in jquery?
You can use custom filter. See: var text = $("td").filter(function(){ return $(this).text() === "I"; }).text(); console.log("Text: " + text) <script…
-
2
votes2
answers7903
viewsA: What is the difference between offset(). top and position(). top in jQuery?
This depends on the context the element is in. The position returns the position relative to the parent, and the offset does the same relative to the document. Obviously, if the document is the…
jqueryanswered Emir Marques 3,586 -
1
votes2
answers82
viewsA: One Function does not recognize the other
I don’t know what your context is, but I’ll give you some advice. Do not burden angular services by exposing methods that will only be used locally. For this you can declare functions that will not…
angularjsanswered Emir Marques 3,586 -
0
votes3
answers66
viewsA: How do I use my jQuery extension in the on function?
For this you can use the Trigger method. In this case instead of using: $(<seletor>).on("clickOut", function(){ /* Faz algo */ }); You use: $(<seletor>).trigger("clickOut", function(){…
jqueryanswered Emir Marques 3,586 -
4
votes1
answer3550
viewsA: How to run a java program daily at a given time automatically
Web application: public class EnviaEmail implements Job { public void execute(JobExecutionContext context) { System.out.println("enviando email para evisar mudanca de senha..."); // acessar api de…
-
5
votes2
answers7536
viewsA: Select textarea text by clicking
Jquery: $(function() { $(document).on('click', 'input[type=text][id=example1]', function() { this.select(); }); }); JS Puro: document.getElementById("example2").onclick = function(){…
-
2
votes2
answers4260
viewsA: Confirmation with Bootstrap modal
You can use to open via js: $('#myModal').modal('show'); $(function() { $('#openModal').click(function() { $('#myModal').modal('show'); }); }); <script…
-
1
votes3
answers2450
viewsA: Change readonly to various fields
See example var ipExcecao = ["myText3"]; function verificarExcecao(ip){ for(i in ipExcecao) if(ipExcecao[i] == ip.id) return true; return false; } function habilitar() { var ip =…
-
3
votes2
answers1088
viewsA: Orderby with accents
You can use a custom filter to sort. See the example: .filter('ordenar',function(){ return function (items, predicate, reverse) { items.sort(function (a, b) { return…
-
0
votes1
answer69
viewsA: A lot of information on auto complete
Take a look at this guy: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/remotesearch.htm?web I recommend that you evaluate the server layer as well. This may not take long to return…
-
2
votes2
answers634
viewsA: How to mark/deselect checkboxes per column using Jquery
Would that be? $(function(){ $("table tr").each(function(){ $(this).find("td").eq(<aqui passa o indice da coluna>).find("input").attr("checked", "checked"); }); }); $(function(){ $("table…
-
1
votes1
answer110
viewsA: Research developed in Angularjs
If I understand correctly, you want a fulltext search (for any attribute related to an object that is and screen). With angular this is very simple, in this example there is also the possibility of…
-
2
votes2
answers4788
viewsA: Is it possible to use masks on mobile devices satisfactorily?
There is a framework for Angularjs mobile that works with angular. To work with fields type number, decimal, phone is much easier than using jquery. In addition to making it more functional as well.…
-
1
votes2
answers321
viewsA: Bookmark in Google Maps
I have an example using angular: https://github.com/emirdeliz/meus-projetos/tree/master/google-maps-custom app.controller("GoogleMapsCustomController", function($scope) { $scope.map = { center: {…
-
1
votes1
answer652
viewsA: How to redeem id from one controller to another controller in Angularjs?
Would that be? EDIT 1 var app = angular.module("App", []); app.controller("AppController1", function($scope) { $scope.varController1 = "JEC nao vai cair!!!"; $scope.consultarOutroController =…
-
3
votes3
answers777
viewsA: Why is the result of the textbox disappearing after the click?
You can include the value "#" for the href attribute. This way the page will not be reloaded when you click on the link to recalculate. Taking advantage, the method that calculates has a syntax…
javascriptanswered Emir Marques 3,586 -
6
votes1
answer218
viewsA: Extender plugin jQuery
Example In this example you can use a specific class to indicate who will have the custom behavior. In the example I set I used the class 'editableCustom'. Functioning The code is very simple. I…
-
2
votes2
answers1026
viewsA: How to use . Directive, modularization and layer splitting? Angularjs
Come on: First of all you need to understand what is a controller, a service and a directive at the angle Controller (Controller) Understand item as being a controller of the components that are on…
-
7
votes6
answers17707
viewsA: How to validate date with Angularjs or jQuery?
Follows: Regular expression: function isValidDate(date) { var matches = /^(\d{2})[-\/](\d{2})[-\/](\d{4})$/.exec(date); if (matches == null) return false; var d = matches[2]; var m = matches[1] - 1;…
-
2
votes2
answers1434
viewsA: Get id of the marked ckeck box
function cbx1(){ var arr = []; /* Cria array com todos os names dos check selecionados */ var itens = document.querySelectorAll('.check:checked'); /* Busca todos os elementos com o class .checked e…
-
1
votes3
answers15395
viewsA: Google MAPS API location from the address
Following example developed with angular. Design link: https://github.com/emirdeliz/meus-projetos/tree/master/google-maps-custom/src/main/webapp App: var app = angular.module("GoogleMapsCustom",…
-
4
votes3
answers721
viewsA: Why isn’t onBlur being executed?
Your code is running smoothly. I believe that the behavior you expect is not what the method does. As a suggestion, you can run both methods on the onchange. See: function DesabilitaFiltro() {…
-
7
votes1
answer4739
viewsA: orphanRemoval JPA
Orphanremoval is present in most entity relationship annotations, and serves to define how a removal action assigned to an object will impact on the related objects. The Orphanremoval marks…
-
0
votes2
answers24
viewsA: Comparing Salary among Arrays()
You are referring using: value_max = '1083.4'. The correct would be <= '1083.4'. Full query: SELECT * FROM folhapagamento_storages WHERE idFolhaParametro = '1' AND valor_min >= '1083.4' AND…
sqlanswered Emir Marques 3,586 -
0
votes3
answers63
viewsA: Id of Dice changes before JS time
EDIT 1 You can instead of incrementing the id, generate a random number to identify the item. See: $.fn.plug = function() { /* Aqui gera o id aleatório */ var id = String(Math.random() + 1); var…
-
3
votes1
answer8275
viewsA: Modal + form + values (bootstrap and javascript)
Take a look at this example: http://jsfiddle.net/emirdeliz/bbqmm3dt/ In html: <!-- Button trigger modal --> <button type="button" class="btn btn-primary btn-lg" data-toggle="modal"…
-
1
votes2
answers64
viewsA: 1054 - Unknow colunm in on clause
It’s strange your query. I tweaked the query as I believe it should be. SELECT clientes.idClientes, clientes.nome, clientes.bloqueado, planosclientes.idPlanos, planos.nome, enderecos.bairro,…
-
1
votes1
answer1194
viewsA: Use window.location.href with Angularjs variable
Do so on your controller: module.controller('myCtrl',function($window, $scope){ $scope.myFunction = function(item){ var url = String(window.location); url = url.substr(0,…
angularjsanswered Emir Marques 3,586 -
0
votes1
answer23935
viewsA: Width/size Bootstrap buttons
EDIT 1 You will need to create a custom style and include as last in the sequence. In the example below I created the small and medium styles. Note that it includes last in the sequence of Imports.…
-
2
votes1
answer170
viewsA: Add to a category
I made some adjustments to your source code. First issue you were using a collection of tasks for all categories. That’s why I couldn’t distribute the tasks correctly. <div id="div-container"…
-
0
votes1
answer761
viewsA: How to use the Angularjs ng-click function that returns from a php html?
EDIT 1 You can do the following: In the angular controller: app.controller("AppController", function($scope) { $scope.olaMundo = function(msg){ alert(msg); }; }); Call in php: echo "<script>"…
-
7
votes6
answers10103
viewsA: What is a Web Service?
Practical example Imagine the following situation. A company has an ERP full of complex rules and routines. Now imagine the following situation. This company saw the need to integrate it with a…
-
1
votes3
answers9191
viewsA: What is a Software Artifact?
Understand as artifact a sub-part of the software. It can be from the engineering that resulted in a part or artifact of software, to the source code that also make up the same. In other words, it…
-
5
votes1
answer7968
viewsA: java.lang.Classnotfoundexception: javax.faces.webapp.Facesservlet
Check that the jars of what is in your pom are also in the lib folder of the project. Otherwise do the following: Properties" -> "Deployment Assembly", add "Java Build Path Entries -> Maven…
-
1
votes4
answers2456
viewsA: Set coordinates when opening map
In your main activity, implement the interface Locationlistener and copy the code below in your main activity. public class BasicMapActivity_new extends Activity implements LocationListener {…
-
2
votes1
answer2118
viewsA: How to fill an xml (request of a WS SOAP) with Javascript
To do this first you will need: 1 - First: Declare HTML field <input type="text" id="cidade"/> 2 - Take the xml schema used in the webservice <?xml version="1.0" encoding="UTF-8"…
-
1
votes1
answer2878
viewsA: How to create a query form with Angular?
See if the example below suits you. In my view it is friendlier besides using some of the best features available with angular (sorting and table filter). var clienteApp =…
-
1
votes1
answer471
viewsA: Vraptor + Angularjs authentication
EDIT 1 Do the following: @Inject private Result result; @Inject private UsuarioDAO usuarioDAO; @Path(value = "/auth") @Consumes(value = "application/json", options = WithoutRoot.class) private void…
-
0
votes3
answers1963
viewsA: Javascript, save the initial values of the variables
Is that it? Note the Numer to String cast of variable y. Moreover I give a replace in element p whenever I need to update it: window.onload = function() { var pad = document.getElementById("res");…
-
2
votes3
answers8495
viewsA: Simulate click when opening the page
Do the following: In Javascript: function teste(){ alert("Teste") } window.onload = function() { document.getElementById("elementoTeste").click(); } In html: <input type="button"…
javascriptanswered Emir Marques 3,586 -
2
votes1
answer528
viewsA: Show a single DIV with Ajax
You can convert the return of the request into html and then extract the data you want. For example: var $log = $("#log"), str = "hello, <b>my name is</b> jQuery.", /* Aqui seria o…
-
2
votes1
answer1354
viewsA: Consume a Restful Service with Angularjs
Try the following: /* Service App */ var myapp = angular.module('myapp', []); /* Service Comum */ myapp.factory("$comum", function($http, $q) { function ajax(url, parametros, metodo) { var…
-
4
votes4
answers570
viewsA: Extend x Superscript, what’s the difference?
When you use inheritance the class you receive automatically has the same methods and attributes. In some cases you need to change the method of the class you are extending. The example below…
-
0
votes2
answers282
viewsA: How to work with jQuery autocomplete?
You need to define a "value" for the option "Select". Behold:http://jsfiddle.net/emirdeliz/swqwLfxu/ <select id="combobox"> <option value="selecione">Select algo</option>…
jqueryanswered Emir Marques 3,586 -
1
votes1
answer3577
viewsA: Is it possible to add a contact on the phone via code?
You’re trying to access something that’s inside the phone from the browser. Note, it is the same thing as trying to access a resource from your pc by Chrome, for example, without a "face" there to…
-
-1
votes2
answers288
viewsA: How to block external requests in Jboss?
See if it helps you: https://ashishpshukla.wordpress.com/2010/02/25/how-to-restrict-access-to-your-web-application-on-the-jboss-5-0-application-server/ Identify the web application that needs to be…
-
0
votes1
answer369
viewsA: Tomcat 500 Error: java.lang.Unsupportedoperationexception
See this part of the code: <<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> There’s an "<" left. See if that’s…