All Questions

4
answers

javascript error if

I'm not able to do a condition with if for example: asd=true; if(asd=='true'){ alert('funcionou'); } but it seems that somehow it is not entering if     
asked on 25.03.2014 / 16:51
1
answer

Method with foreach only returns false

I have a method that will check if the debt equals zero ( divida == "0" ). If it returns true , otherwise it returns false . Code: for(String divida : dividas){ return divida == "0"; System.out.println(...
asked on 26.07.2015 / 20:05
3
answers

How to get the last days of the month in PHP

I want to get the last months of the month from today's date. Here is the code for today's date: $datee= date("d/m/Y");     
asked on 29.10.2014 / 23:27
3
answers

Javascript: Give .hide on everything that is open

Good afternoon. I would like to know how to do it instead of writing: $("#removemirror3").click(function(){ $("#mirror31").hide("slow"); $("#mirror32").hide("slow"); $("#mirror33").hide("slow"); $("#add4mirror").hide("slow"); Writ...
asked on 05.03.2015 / 18:18
2
answers

How to check if a response (date) is a json

How can I check if a result (date) coming from an ajax request is json or not? I tried this code but I did not succeed var obj = $.parseJSON(response); if(obj.avatar) { } else { }     
asked on 10.12.2014 / 18:35
3
answers

How to "undo" any text at the time of "echo" and turn each word into a link

I made a database, and in that database I registered a phrase, I would like that when I was to echo the phrase, each word would become a single link. Ex: recue o código em 4 espaços The sentence is simple, but I would like each word to crea...
asked on 22.11.2014 / 20:44
2
answers

Header trampling Echo

I'm trying to use the following code: echo "<script>alert('Erro. Tente novamente.');</script>"; $insertGoTo ="pág.php"; header("Location: $insertGoTo"); However, running code header() runs over echo and the aler...
asked on 25.08.2014 / 23:41
2
answers

indexOf starting at the right

Problem I would like when I make "asdhusaidhi asdhasuidhu".indexOf('s') it would return 17 referring to the last s of the string, for example, it start looking for the right .. but instead it returned me 1 for the fi...
asked on 01.04.2015 / 16:46
2
answers

Bottom flap menu

I would like to know how to create a menu like this in a table row? Or what's the name I'm looking for ...     
asked on 04.09.2014 / 02:28
3
answers

Check the runtime of a Javascript function

I would like to know if it is possible to know the running time of a particular javascript function. This function does not need to fetch external data, it can only handle form tags, set value, calculate fields, like this: function idade(an...
asked on 10.07.2015 / 14:52