Posts by Rúbio Falcão • 111 points
13 posts
-
1
votes3
answers41543
viewsA: Alignment from side to side
FLOAT div.container { height: 100%; background: -webkit-linear-gradient(top, #088fad 20%, #00d5ff 100%); } div.titulo { font-size: 5vw; background-color: blue; text-align: center; padding: 3vw;…
-
1
votes2
answers155
viewsA: How do I not get the site bugged when I lower the screen and have a problem with a button going up in CSS?
Creating sites that adapt to the size of the screen is a job that most often depend on an unnecessary effort "There’s no need to reinvent the wheel" - Of course you’ve heard about it and there are…
-
0
votes4
answers1152
viewsA: How to transform a string into an object?
As a matter of curiosity Researching I managed to find a way to do what eval() create the object as you wanted using a closure public function criaObjeto($obj){ eval("\$newObj = function(){return…
phpanswered Rúbio Falcão 111 -
2
votes4
answers1152
viewsQ: How to transform a string into an object?
I have the following String: $exp = "(10-9)+(7-6)"; Let’s say I process this String and can return the following result, in the format String: $exp = "new Expressao( new Expressao(new Numero(10),new…
phpasked Rúbio Falcão 111 -
0
votes1
answer44
viewsA: Send Variable Ajax to PHP
The idea of ajax is to make requests without refresh, when the answer comes you use javascript to make changes to the page giving the impression that everything is happening in real time. So, when…
-
3
votes1
answer1005
viewsQ: How to make a horizontal line in relief?
Many sites use a kind of <hr> in relief, ex: For some time now I have been trying to do in hand without success. I also found nothing about it on the internet <div>…
-
-1
votes2
answers121
viewsA: Redeeming values from a SESSION
On any page you need to handle the data in one session you should use the function session_start(); to open a session. This goes so far for the moment you will store the data in one session:…
phpanswered Rúbio Falcão 111 -
0
votes1
answer81
viewsA: Jqueryui autocomplete does not refine search
I discovered the problem, the detail is that I was not treating the false return to my PHP as a JSON. public function getDisciplina(){ $data = (isset($_POST['term']))?$_POST['term']:false; $model =…
-
1
votes1
answer81
viewsQ: Jqueryui autocomplete does not refine search
Using the Jquery Ui autocomplete I have had a small problem. I am performing an ajax search to feed a text field. In this field a discipline will be sought and the autocomplete assembles the…
-
0
votes2
answers70
viewsA: Validation criticism for form fields
The detail is that your code when it perceives an error it immediately writes the error on the screen. A more interesting implementation is to create an array of errors. Within this array you save…
phpanswered Rúbio Falcão 111 -
0
votes1
answer167
viewsA: Change button behavior according to URL
I guess that’s what you’re looking for: $(document).ready(function(){ var get = document.URL; if(get.match(/filter=asc/i)){ //Faz isso } else if(get.match(/filter=desc/i)){ //Faz aquilo } else{…
-
1
votes1
answer160
viewsQ: Conflict between focusout and click
I am creating a form. In the text field I want to put an auto-complete screen on it. I manually created the whole structure that works as expected When typing will be presented options that the user…
jqueryasked Rúbio Falcão 111 -
-1
votes3
answers2199
viewsA: Offline and online PHP application
PHP is a server-side language, meaning you need to send data to the server, which will return a response. So PHP cannot run on a machine without a web service running. At least it would be necessary…