Posts by Douglas Dreer • 394 points
21 posts
-
0
votes1
answer63
viewsQ: Null Exception when importing the service into the Rest controller
In the example below, I am trying to make a Restful Service by fully separating @Restcontroller, @Service and @Repository. But I’m having a difficulty, because when I try to use the service inside…
-
3
votes2
answers743
viewsQ: How to control Scroll in JS / jQuery
I’m having a question, I created a system where there’s a 'navigation' between items, but I couldn’t make the scrollbar 'track' the items. Would anyone have an idea how to get him to follow? Link…
jqueryasked Douglas Dreer 394 -
0
votes2
answers919
viewsQ: JSON Infiito when using GET @Manytomany
I have two classes, of which you have a @Manytomany relationship generating the third table described in the code below: Card package br.com.rpgnext.deck.critical.model; import…
-
1
votes1
answer761
viewsQ: Fix Header and Footer on each print page
I wonder how do I fix a Header and a Footer on each page to be printed, keeping the content between them [Edit] respecting the header space and footer. I would also like to take advantage and ask…
-
1
votes0
answers92
viewsQ: How to make inheritance with Javascript / jQuery
I have a question about how to use inheritance with Javascript / jQuery (if possible), I did a search but found confusing materials of gringos who could not help me. Let’s go to the classic example…
-
2
votes1
answer1207
viewsQ: How to save an html page in java
I have a project that I need to make a report for each code. And save it on disk in PDF format. After generating the report, I don’t know how to pass the page (generated) to Servlet and save it in…
-
1
votes1
answer315
viewsA: How to properly step data type by PDO
The answer to the question is even PDO::PARAM_STR, which as it was said in the link I leave the bottom serves to string , dates and times. - PDO::PARAM_STR - for string values, dates, times... -…
-
4
votes1
answer315
viewsQ: How to properly step data type by PDO
In the php section below, what is the type of PDO::PARAM should I use ? $cnx = new PostgreSQL(); //Classe de conexão do banco $data = '2015-02-13'; $select = 'SELECT * FROM eventos WHERE "data" =…
-
0
votes2
answers2499
viewsQ: How to take position of the Object (Indice)
How to get the position of the object that was found in $.inArray() ? var obj = [ { cidade : [ { nome : "Maringá" , uf : "PR" , } , { nome : "Curitiba" , uf : "PR" , } , { nome : "Londrina" , uf :…
-
0
votes2
answers578
viewsA: Decrement PHP variable by clicking a form button
This function can also be done in javascript if necessary, and send only the month that was configured. I’ll give an example. $("#btnEnviar").on("click" , function(){ $.ajax({ url :…
phpanswered Douglas Dreer 394 -
1
votes1
answer39
viewsQ: Configuration of XML
In the configuration of pMapper (Mapserver framework for PHP), there is this configuration which I am in doubt how to configure it. <dsn…
-
4
votes8
answers95476
viewsA: How to check with jQuery if there is a checkbox checked?
To check if there is one selected, you can use the $(':radio').is(':checked'); Follow a simple example; =D var ok = "#btnOK"; var clean = "#btnClean"; var radio = ":radio"; var msgbox ="#msg-box…
-
0
votes1
answer1045
viewsQ: Calling a Class by javascript/Jquery
Is it possible to load a specific method from an ajax ? I’ll give you an example: var actions = { options : { action : "newPost" , dados : { title : "Novo Post" , content : "Conteúdo" , author :…
-
1
votes2
answers3432
viewsA: How to pass Javascript array for PHP variable
Experimete use jquery, follow example below: var numeros = [0,1,2,3,4,5,6,7,8,9]; var letras = ['a', 'b','c','d']; $.ajax({ url : "arquivo.php" , dataType : "json" , data : { letras : letras ,…
-
0
votes2
answers455
viewsA: List of Exception PHP errors
You can get the code from Exception yes, different with @Maniero said above. I’ll post a simple example showing how: <?php try{ $x = rand(0,15); if($x > 1 AND $x <=10){ echo "O valor está…
-
1
votes1
answer47
viewsA: Knowing when I click on a div the value in the PHP table
Why not try using javascript/jquery and $.ajax to request ? Here’s a basic example. js $('#div-alvo').on('click' , function(){ $.ajax({ url : <caminho do arquivo.php> , dataType : 'json' ,…
phpanswered Douglas Dreer 394 -
0
votes4
answers522
viewsA: AJAX does not pass values to PHP
Why not try jQuery+AJAX’s native function? Follow a simple example: $.ajax({ url : 'login.php' , //Caminho do Arquivo PHP dataType : 'json' , //Tipo de retorno data : { //Enviar dados usuario :…
-
1
votes1
answer34
viewsA: How to Use Zend 2 + Mapserver
For all inetessados, I managed to make it works and there were no needs and make any changes. follows an example: public function Mapserver($map , $mapPath , $img , $imgPath){ $path = array( 'img'…
-
1
votes1
answer567
viewsQ: Translation Laravel 4
I did a search and found only one translation for PT (Portuguese - Portugal), there is some project or package for translation of errors and related ?
-
2
votes4
answers10222
viewsA: Regressive Count Script
Why not use a jQuery plugin to do this procedure ? /* * Não vai executar por que eu não apontei os arquivos. * Isso é somente um exemplo, se quiser posso mandar um exemplo funcional */ $(".contador…
-
0
votes1
answer34
viewsQ: How to Use Zend 2 + Mapserver
How do I use the functions of MapServer() inside the Zend controller ? I am using MS4W which has Apache, PHP and Mapserver. If it were straight, it would be something like this: <?php $mapserver…