Posts by helderburato • 1,019 points
29 posts
-
1
votes1
answer635
viewsQ: Background only in one part of the element
I have an element, which occupies 100% of the page, but it has a background up to a part of the element, I even know how to do, only I need it to adapt to 1024px screens and I would like to know…
-
6
votes2
answers1120
viewsA: What is the use and when to use version in . js and . css files?
Usually this is done, using some back-end support language, to be modifying the timestamp parameter at the end of the file, for example: <link href="css/application.css?1305608333" media="screen"…
-
1
votes3
answers506
viewsQ: Apply "datepicker" to element after angular call
I’m having a problem, when loading an HTML block from the page via the angular, the elements that have the class ". datepicker", activate the jquery of the plugin "datepicker", however, as I…
-
12
votes2
answers4037
viewsQ: Arrows using CSS only
I would like to know if it is possible to do the following arrow using CSS only: I usually do other types of arrows, using CSS, but whenever I struggle with cases like this, where the arrow has a…
-
1
votes1
answer74
viewsA: Select by clicking on all IE’s
In the selects Hover, I was making the following: .form-private .f:hover { height: 26px; width: 327px; } .form-private .f:hover, .form-private .sel-header:hover { border: 2px solid #62A639; } I only…
cssanswered helderburato 1,019 -
1
votes1
answer74
viewsQ: Select by clicking on all IE’s
I am having a problem, that in all versions of Internet Explorer, when clicking on a select, it automatically closes when moving the cursor, without the possibility of choosing one of the OPTIONS:…
cssasked helderburato 1,019 -
1
votes1
answer577
viewsQ: Keyboard navigation
I started to develop a project, which has some needs of navigation via keyboard, as it is a municipal site, in case it should be accessible to disabled also. I’m a little lost on how to start, or…
-
1
votes2
answers970
viewsA: Time between (between) "start time" and "end time"
Now it worked, really the logic was wrong. As suggested in a comment in the previous reply, I was reversing the initial and final time values. SELECT Programa.name, ProgramaHorario.horario_inicio,…
-
4
votes2
answers970
viewsQ: Time between (between) "start time" and "end time"
I’m having trouble picking up the current time, in case I’m using CURTIME(), need to fetch the results that the current time, is between the value(time) of the column initial time and of final time,…
-
7
votes2
answers1406
viewsA: Hover on selector :before
Pfss, solved. .call-box:hover:before { background-color: #00BF8B; }
-
5
votes2
answers1406
viewsQ: Hover on selector :before
I found myself in a situation, I even know how to get around, doing otherwise, but I wonder if it is possible to use :Hover in an element :before, I have the following structure: <a href=""…
-
0
votes1
answer89
viewsQ: Break line (clearfix)
I would like to know, which forms you use when you need an element to occupy the total WIDTH+HEIGHT that it is using, for example: <p> <span>Teste</span> </p> So that the P…
cssasked helderburato 1,019 -
0
votes1
answer103
viewsQ: Streaming (video) does not pause when refreshing the page
I need to make a player (streaming) when browsing between pages, that it does not pause, as if it were something external, only that has on all pages, an example, would be the facebook chat, that we…
-
4
votes1
answer1198
viewsQ: Combobox ( select ) extended option
I have a select with a "width" defined, however, there are some cases where the "option" is too long, end up cutting the selected option as the image: Customer complained from that point, a…
-
1
votes3
answers65
viewsA: Go to jQuery
HTML: <div class="blocos" id="bloco1"> <img class="imgBloco1 item-bloco" src="" />IMAGEM DO BLOCO <p class="fraseBloco1 item-bloco">AQUI É TIPO UM TITULO</p> <span…
jqueryanswered helderburato 1,019 -
1
votes3
answers275
viewsA: How to make a php script inserted into a page through a "require" run from time to time?
If your server has CPANEL, you can set up a "cronjob", just search the panel and configure how long the file or url should run, and use something like: curl -s -o /dev/null…
-
2
votes2
answers518
viewsA: Jquery: Fadeout(), fadein() and Ajax calling do not work at the right time
Try it this way, I think it will work, you give the fadeOut(), removes html from inside the tag #Prods, and when the result is obtained by calling ajax, insert the result into the tag that is hidden…
-
15
votes2
answers2610
viewsQ: When to use prototype (JS)
What’s the difference between: Person.prototype.sayHello = function() { alert("Hello, I'm " + this.firstName); }; and Person.sayHello = function() { alert("Hello, I'm " + this.firstName); }; ?…
javascriptasked helderburato 1,019 -
7
votes1
answer12118
viewsQ: Break lines in CSS without using extra elements
I have 2 elements inline and I need to get the line broken without me having to add display: block; or if possible add but not occupy 100% of the line: <div class="box-error-page cb"> <h1…
-
0
votes1
answer217
viewsQ: Cakephp problems with . htaccess
I made the publication of the project, ran correctly, however, the other projects that were at the root stopped working, I checked and from what I noticed the problem is in . htaccess, which is so…
-
1
votes1
answer179
viewsA: Grab main image of the last post in Wordpress
I managed to do it this way, but it got a little strange: $post = $this->Post->query( "SELECT posts.id, posts.post_title AS title, posts.post_date, posts.guid FROM wp_posts posts INNER JOIN…
-
0
votes1
answer179
viewsQ: Grab main image of the last post in Wordpress
I need to display the latest post posted Wordpress blog in a Cakephp application and am doing it as follows: $post = $this->Post->query( "SELECT posts.id, posts.post_title AS title,…
-
3
votes1
answer49
viewsQ: Global object for project
I am doubtful, if this way would be a very "ugly" method of making: https://gist.github.com/anonymous/6df36cc016a10bed0d66 In this case, an object called "Ecommerce" was defined, and I am assigning…
-
0
votes2
answers1308
viewsA: Passing Appcontroller variables to Elements in Cakephp
But I have seen several users comment that it is not a good practice to use "requestAction", and even it will be discontinued in the cake version 3, but if you just want to set a global variable…
cakephpanswered helderburato 1,019 -
1
votes1
answer49
viewsA: Sending form
Solved, the Auth Component, used for the admin, was causing this conflict, I did as follows: if (!isset($this->params['admin']) || !$this->params['admin']) { $this->Auth->enabled =…
cakephpanswered helderburato 1,019 -
0
votes1
answer49
viewsQ: Sending form
I am trying to send a contact form, which uses the model "Contact", save the data, however, it does not enter the: if (!empty($this->data)) { $this->Contato->save($this->data) } From the…
cakephpasked helderburato 1,019 -
12
votes9
answers13997
viewsA: How to create a website without reloading every click on a link?
You could use the function "load" of jquery and update certain element of the page, for example, let’s assume that every click on elements with the class "change-content", it uses "href" to search…
-
1
votes3
answers405
viewsA: Pick up last Wordpress post on Cakephp
Really, there’s no need to carry all this, I did it that way: $post = $this->Post->query( "SELECT posts.id, posts.post_title AS title, posts.post_date, posts.guid, files.meta_value AS filepath…
-
1
votes3
answers405
viewsQ: Pick up last Wordpress post on Cakephp
When loading: define('WP_USE_THEMES', false); require(ROOT.'\blog\wp-blog-header.php'); I’m having the following mistake: Fatal error: Cannot redeclare __() How can I upload the latest blog post to…