Posts by Joao Nivaldo • 1,229 points
84 posts
-
5
votes5
answers338
viewsQ: Move background of text
Staff need to place and animate a degrade as background of a font with a written text. I need this gradient to be applied to the source (not behind the text) and to keep moving from left to right…
-
0
votes0
answers28
viewsQ: Swap text color by draw
Guys I have an array with 4 colors I would like to draw a color every 4 seconds and change the font color of an H1 I have on the page and for this use fadein and fadeout as transition. Thank you…
jqueryasked Joao Nivaldo 1,229 -
4
votes1
answer164
viewsQ: Invert 0 or 1 in a column
I have a table that has numerous records and a column called posição. It only gets the value 0 for locked and 1 for released. There now with a change I need to reverse these values, where this 0 has…
-
0
votes1
answer87
viewsQ: Detect an image exchange
Guys I have an img tag that has a button that loads several images for the person to choose, so he chooses the src of this tag is changed. I need to detect when this src change happens and show an…
-
2
votes3
answers302
viewsQ: Find the highest value ending ID
I have an html structure like this: <div id="container1"> <p>Texto</p> </div> <div id="container2"> <p>Texto</p> </div> N vezes este bloco <div…
jqueryasked Joao Nivaldo 1,229 -
1
votes1
answer188
viewsQ: Close modal in the REMODAL plugin
I’m using the Vodkabears Remodal plugin, https://github.com/VodkaBears/Remodal#readme I open a modal with it and inside the modal I have an iframe, I wanted to know how I close the modal from a…
-
2
votes1
answer77
viewsA: HTML is not being displayed
I decided using the htmlspecialchars_decode(); before sending to TWIG.
-
0
votes1
answer77
viewsQ: HTML is not being displayed
I have a field in my table that records formatted text in HTML correctly. When I’m trying to display it on the screen, via TWIG using the filter RAW, it continues to be displayed as text and not as…
-
2
votes2
answers392
viewsQ: Reduce image and center
I have an image that I bring from the database and put an IMG tag in the size of 960px by 480px. I need to resize it to 470x160. I need it to be resized by the length and the leftover height to be…
-
2
votes4
answers191
viewsQ: Doubt with CSS selector
People are doing a grid that displays from 1 to n images and in each row it shows 2 columns. The HTML structure is this: <div id="container"> <h2 class="linhasFotos"> <a title="nome…
-
1
votes2
answers147
viewsQ: Activate the Hover in series
Staff I have the following structure: <h2> <a class="imgHover" title="titulo" href="#"> <span id="box" class="imgHover"> <img src="imagens/estrutura.jpg" width="400"…
jqueryasked Joao Nivaldo 1,229 -
1
votes1
answer80
viewsQ: Run SILEX website on shared hosting
Staff have developed a website using Silex Micro Framework for a client and need to host it on Ocaweb with a shared hosting. Silex as well as Laravel and other frameworks index.php is not in the…
silexasked Joao Nivaldo 1,229 -
1
votes1
answer587
viewsQ: Response time from Ajax
Guys I’m doing my first AJAX and I’m having a problem which is this. It calls a PHP routine that downloads and uploads via FTP one or more files. And this may take a while. How do I keep AJAX…
-
0
votes0
answers89
viewsQ: Doubt in Jquery Filer plugin
I’m trying to use this very cool upload plugin I found, Jquery Filer 1 I just can’t seem to do two things on it. See if you can help me. 1- When I click the recycle bin button in the thumbnails of…
-
2
votes1
answer69
viewsQ: Return property in a Manytomany relationship
I have a relationship ManyToMany between 2 classes. Campannha and Empresa. A Annotation of the class Campanha is like this: /** * @ORM\ManyToMany( targetEntity="JN\Entity\Empresas\Empresa") *…
-
0
votes0
answers123
viewsQ: How to use_valuesin Twig
Personal peercebi that when I pass some variable with _ in the name in Twig it of the error causing me to remove _ from the variable name to work. How to hit you? Ex. in PHP $data_birthday in TWIG:…
twigasked Joao Nivaldo 1,229 -
1
votes1
answer187
viewsQ: Doubts in the creation of the relationship
Personal I have 2 classes, a call Venda and another ItensVenda. I need to create a relationship to: when I open a sale can see all the items of this sale. when I access an item of a sale I can see…
doctrine-2asked Joao Nivaldo 1,229 -
0
votes1
answer56
viewsQ: How to do Innerjoin with related table?
Guys I got a class Arquivo who has a Manytoone relationship with a class Usuario working right. I need to list all the data that are in the class Arquivos including relationships. How I do that in…
doctrine-2asked Joao Nivaldo 1,229 -
1
votes2
answers218
viewsA: Running Silex on the shared provider
Solved. I switched to a plan of Resale ai la I can change the document_root of the site and all right now. Thank you
-
3
votes2
answers218
viewsQ: Running Silex on the shared provider
I just uploaded a site to Locaweb on a simple and shared Linux hosting, only it didn’t work for once. I imagine it is because the index is not in the site root, but inside the folder public.…
-
1
votes1
answer218
viewsQ: How to use Onupdate=Cascade in Doctrine 2
Personal I have a relationship of much for one in a table and I need to put the Onupdate in Cascade as I do because I try so of the error: /** * @ORM\ManyToOne(targetEntity="JN\Entity\Planos\Plano")…
doctrine-2asked Joao Nivaldo 1,229 -
1
votes1
answer263
viewsQ: Disable icheck in a checkbox
Guys I’m using the icheck plugin to customize my page checkboxes. I have some checkboxes in a form and I would like the icheck to work only in the checkbox that has the class with the name icheck…
jqueryasked Joao Nivaldo 1,229 -
0
votes2
answers261
viewsQ: Doubt in the Middleware Before of the Silex Controllerprovider
Opa to all of you, Personal I have several classes that follow this structure: class TestController implements ControllerProviderInterface { public function connect(Application $app) { $adm =…
-
0
votes1
answer1615
viewsQ: Generate image dynamically by url
How do I create in PHP with the Placehold.it image server Intervention? Type like this when I write the HTML IMG tag inside src I pass an address that should return an image. Ex.: <img…
-
5
votes1
answer325
viewsQ: How to work with Séssions at Silex
Good night, I have a question about how to include, change and delete data in the Silex Session. Its API documentation is very simple and without explanation. Is the following: I need to create a…
-
3
votes1
answer159
viewsA: I cannot persist the data in the Bank
I found the problem. Just for the record. The problem was that I had a column with the name SQL and Data, these 2 words are reserved and could not be used. After a lot of trying you decided to…
-
4
votes1
answer159
viewsQ: I cannot persist the data in the Bank
I think I’m doing something wrong in this class, because it is the only one of my system that is not persisting in the database. What am I forgetting to do to make it work? The method incluir()? If…
-
1
votes1
answer111
viewsQ: Convert SQL to DQL
Opa to all, I need to convert a SQL in DQL of Doctrine 2 if someone can help me thank you. SELECT produtos.id, produtos.categoria_id, produtos.nome, produtos.descricao, produtos.valor, (SELECT…
-
0
votes1
answer49
viewsQ: Inclusion of record in Manytoone with Doctrine
Opa to all of you, Personal have created entities a call Products and another call Categories they are related in type Manytoone with Doctrine. In case it would be several products for one category.…
-
2
votes1
answer255
viewsQ: View HTML with TWIG
I’m using TWIG in a project of mine but I’m not able to display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed. Example: {{ 'Ao…
-
0
votes1
answer422
viewsQ: Using FQL in facebbok api php 4
Staff need to run a simple FQL using Facebook SDK PHP 4 using the following command: $result=(new FacebookRequest( $session, 'GET', $fql))->execute()->getGraphObject()->asArray() and it…
-
5
votes1
answer2967
viewsQ: How to Recover Facebook Friends List
People I need to return to facebook friends list using facebook API 4 for PHP. I can log in, get the account information but the list only comes the following result for me: Array ( [data] =>…
-
2
votes2
answers601
viewsQ: Swap the Ckeditor Toolbar
I’m using Ckeditor on a PHP site using Composer to install Ckeditor. I’ve set up several types of Toolbar in the archive config.js of it. When I change the Toolbar that I want on file config.js he…
-
1
votes1
answer321
viewsQ: Problems with SLIM paging with Pager
How to change page using Pear-Pager in SLIM Framework? The code of router is: $app->get('/imoveis(/:pg)', function($pg = '') use($app) { $imoveis = array('casa 1', 'casa 2', 'casa 3', 'casa 4',…