Posts by Marcus Daniel • 483 points
18 posts
-
1
votes1
answer81
viewsQ: C# - Check if dates are missing in the selected period
I have the following SQL SELECT dt_finished::date AS "DataFinalizacao", count(DISTINCT tba.id_batches) AS "Quantidade Total" FROM tb_batches AS tba INNER JOIN tb_routes tro ON (tro.fk_id_products =…
-
2
votes0
answers340
viewsQ: Select * from Table and No Select * from Entityname - JPA JAVA
My query was built like this, but when it does the request: @Query(value = "SELECT CT.id FROM CursoTurno AS CT LEFT JOIN Curso AS C ON C.id = CT.curso_id INNER JOIN Turno AS T ON T.id = CT.turno_id…
-
0
votes1
answer4559
viewsQ: Error resolving template "Meutemplate", template Might not exist or Might not be accessible by any of the configured Template Resolvers SPRING
Performing an ajax request function buscarDisciplina(){ var codigoDisciplina = String($("#codigo").val()); $.ajax({ url: urlApplication+"/grade-curricular/buscar-disciplina/"+codigoDisciplina, type:…
-
0
votes1
answer443
viewsQ: Print a Java Object List
When making a filter of courses belonging to a given shift , the correct thing would be to make a foreach by walking through an object , but by doing so he gives an error ';' expected , I didn’t…
-
0
votes3
answers5068
viewsA: How to include the Access-Control-Allow-Origin header?
for some time I had this same problem , put the header Access-Control-Allow-Origin has to be added to the server-side. Add to your server: header('Access-Control-Allow-Origin: http://site1.com');…
html-metaanswered Marcus Daniel 483 -
1
votes1
answer17867
viewsQ: Response to preflight request doesn’t pass access control check
When I try to give a GET on a link here on my server that is not in host location happens this message: Xmlhttprequest cannot load…
-
1
votes1
answer45
viewsA: Query return , Fatal error: Maximum Execution [PHP]
function text_limiter_caracter($str, $limit, $suffix = '...') { if (strlen($str) <= $limit) { return $str; }else{ return substr($str, 0, $limit + 1) . $suffix; } } The Error was in the while,…
phpanswered Marcus Daniel 483 -
1
votes1
answer45
viewsQ: Query return , Fatal error: Maximum Execution [PHP]
<tr> <td id="titulo"> <a href="./visualizar" data-html="true" data-trigger="hover" data-container="body" data-toggle="popover" data-placement="right" data-content="<?=…
phpasked Marcus Daniel 483 -
2
votes0
answers25
viewsQ: Shorten words
How do I shorten the word to stay Illo qui facere... However when passing the mouse you must open a full-name Popover Illo qui facere temporibus ut adipisicing pariatur…
-
3
votes2
answers268
viewsQ: Space Lock with REGEX
My code for locking characters is like this: $('#rg').on('keypress', function() { var regex = new RegExp("^[ 0-9]+$"); var _this = this; // Curta pausa para esperar colar para completar setTimeout(…
-
0
votes2
answers7764
viewsQ: Lock special characters but allow hyphen
My code for locking characters is like this: $('#nome').on('keypress', function() { var regex = new RegExp("^[ 0-9a-zA-Zàèìòùáéíóúâêîôûãõ\b]+$"); var _this = this; // Curta pausa para esperar colar…
-
0
votes1
answer361
viewsQ: How to use oninvalid in textarea [HTML5]
I wanted to know how to use oninvalid in the text area. <textarea type="text" pattern=".{1,255}" id="mensagem" name="mensagem" class="form-control no-resize" rows="6" placeholder="A mensagem"…
-
2
votes2
answers3935
viewsQ: Grab user id by SESSION
I have a question , how do I get the id of the guy who logged in to my system? So that later he can change his data. <?php if (isset ($_POST ["loginUsuario_externo"])){…
-
11
votes3
answers26056
viewsQ: How to block special characters in the field
How not to allow the user to enter special characters such as *-/+.,:;[]{}ªº^~?<> in the field of question?
-
4
votes1
answer243
viewsQ: How to remove required HTML5 validation icon
How to remove this icon marked above in the image?…
-
0
votes0
answers55
viewsQ: Rename Mes to pt_BR
So Galera, I have this doubt if there is how to change the name of the month, as in the image change from Feb/15 to Feb/15 Code: <?php $cronog = $editais->listarCronogEditalVigente();…
-
4
votes1
answer448
viewsQ: You can block the Arrow from the DATE field
Would there be some way to block that little arrow there ?
-
2
votes0
answers61
viewsQ: Upload files with AJAX
I’m participating in a project but I can’t upload files using ajax. MODEL <?php // You need to add server side validation and better error handling here $data = array(); if(isset($_GET['files']))…