Posts by Silvio Andorinha • 8,394 points
171 posts
-
0
votes4
answers1193
viewsA: Color loop in text
try so with the colors Random setInterval(function() { var cores = [ "#ff00ff", "#ff00cc", "#ff0099", "#ff0066", "#ff0033", "#ff0000", "#ff3300", "#ff6600", "#ff9900", "#ffcc00", "#ffff00",…
-
3
votes3
answers3756
viewsA: Problem using subst in text with PHP
php automatically puts that strange character when it does not recognize the character set that this character belongs to. To solve the problem you need to turn your string into utf8 universal…
-
1
votes3
answers5697
viewsQ: Download images
Problem How do I download several images with javascript? For example, how do I when I click on a javascript button it automatically accesses url:…
-
-3
votes2
answers824
viewsA: Name of months in Portuguese and English
Use this mysql_query('SET lc_time_names = "pt_BR"');
-
0
votes3
answers3315
viewsA: PHP session expires before time
Try going there in the codeigniter application config.php and changing these values $config['sess_expiration']= 0; /* nunca expirar a sessão sózinha */ $config['sess_expire_on_close'] = TRUE; /*…
-
12
votes1
answer6004
viewsQ: HTML5 print screen automatically
Is it possible or is there a Html5/javascript/jquery library that allows me to take a print of the window or a div and save automatically without the user’s permission? I’ve tried to window.print()…
-
-2
votes4
answers41617
viewsA: Sign of different Query
Solution: Difference sign sql or mysql is <> for example: AlvaraValidade <> '0000-00-00' ie use <> in place of !=.…
-
0
votes3
answers1762
viewsA: Php MYSQL query several tables
Very simple way using the junction in the clause WHERE <?php include("conectar.php"); $quantidade = 1; $pagina = (isset($_GET['pagina'])) ? (int)$_GET['pagina'] : 1; $inicio = ($quantidade *…
-
0
votes2
answers2126
viewsQ: Error making Ajax request
When I try to make a requisition ajax using the command $.post jQuery appears an error in Chrome Network someone knows what might be this error Code: I’m using the codeigniter framework…
-
2
votes3
answers997
viewsA: How do I add jQuery library with Javascript?
Use this function src = file url for example http://code.jquery.com/jquery-1.10.2.min.js use of callback LoadScript("http://code.jquery.com/jquery-1.10.2.min.js",function(){ alert('Acabou de…
-
1
votes4
answers1855
viewsQ: PHP/Codeigniter error "Array to string Conversion"
I did a foreach to go adding values to an Insert but suddenly an error appeared Array to string Conversion strange and have no idea what it is. public function distribuicaoprodutos(){…
-
2
votes1
answer1510
viewsQ: How to do multiple simultaneous inserts with php
I need to go through a json and take the values and insert into the bank but I think it would be a bad idea to put an Insert inside a loop. I would like to know how to do several simultaneous php…
-
0
votes4
answers3403
viewsA: Check data in the database according to the date
Try this MONTH = http://www.w3resource.com/mysql/date-and-time-functions/mysql-month-function.php YEAR = http://www.w3resource.com/mysql/date-and-time-functions/mysql-year-function.php $condicaoData…
-
-2
votes7
answers3042
viewsA: Hide input value
Use the <input type='password'> is much better.. and when you go to take the value of it it returns you as string, you understand ? nothing encrypted.. thus: http://jsfiddle.net/V4swX/…
-
0
votes3
answers1795
viewsA: Tinymce catch and set value
tinyMCE.get('mensagem').getContent(); /* Pegar valor tinyMCE */ tinymce.get('mensagem').setContent(''); /* Popular campos e limpar campos */
-
3
votes3
answers1795
viewsQ: Tinymce catch and set value
How I pick up and Seto the value of tinymce plugin? tinymce is a textarea plugin with various options is a text formatting box, when I say grab the value I mean what was formatted by the user for…
-
3
votes2
answers921
viewsQ: Text input box on the right
In a box the text is aligned to the right, as I do so that when focusing the text box regardless of the place the writing cursor goes to the right? I want that when clicking an input of type text…
-
2
votes1
answer554
viewsA: What is required to create an authentication system (login/password/session) in PHP? What important points should I be concerned about?
A command that is very important to use is the addslashes at the time of receiving the login data, because it prevents you from being a victim of sql inject because it puts a \ before each quotation…
-
27
votes3
answers6437
viewsA: Inaccurate result in broken numbers calculation
Source: http://www.guj.com.br/8905-problemas-no-calculo-com-javascript The reason for this is this:. The computer does not work well with decimals. As you know, the data is represented internally in…
-
39
votes3
answers6437
viewsQ: Inaccurate result in broken numbers calculation
Problem Test there in the consoles of your browsers: 1067.11-1000 = 67.1099999999999 The right thing would be 67.11 Could someone explain this to me? And how do I fix it?…
-
0
votes4
answers15127
viewsA: Uncaught Syntaxerror: Unexpected end of input
Friend, try to put a comma at the end for example: $('.bullets-area ul li a').click(function(){ var desloca = $(this).attr('index'); //alert(desloca); $('.destaque-banner…
javascriptanswered Silvio Andorinha 8,394