Posts by Thiago Thaison • 1,938 points
43 posts
-
1
votes2
answers1168
viewsA: Unable to call the same variable outside of Function
What happens, @kaiquemix, is that the execution of ajax by default is asynchronous, that is, it will execute the alert(pt1) before the ajax request ends. A possible solution would be: function…
-
11
votes3
answers8386
viewsA: How to create a task scheduler without using cron and without using wordpress
Ivan, I recently developed a similar system using Node.js and PHP. Follow the project link on Github The project consists basically of two modules, send them A Node.js Server, responsible for…
-
4
votes3
answers6678
viewsA: Equivalent to PHP LIKE
You can use the function str_pos For example: if ( strpos("paralelepipedo", "para") !== -1 ){ //seu código aqui }…
phpanswered Thiago Thaison 1,938 -
6
votes1
answer11274
viewsA: How to insert data into two tables at the same time?
You can use the function mysql_insert_id to the MySQL or the function mysqli_insert_id to the MySQLi Mysql source Mysqli font For example: $query1 = "INSERT INTO test (value) VALUES ('test')";…
-
2
votes1
answer64
viewsA: Union e order by juntos
You can get this result by simply changing your select without the need to use union. select msg from chatlogs where (de = joana and para = carlos) or (de = carlos and para = joana) order by…
-
3
votes1
answer325
viewsA: change page 10 query in 10 seconds
Assuming you use jQuery. Javascript: jQuery(function(){ var semana = 0; var itv = window.setInterval(function(){ jQuery.get("consulta.php?semana="+semana, function(data){…
-
4
votes1
answer445
views -
4
votes2
answers4798
viewsA: creation of tables with margins between them
Use the attribute border-collapse: separate and in the border-spacing you define the distance between cells. table {border: 0px; border-spacing: 10px; border-collapse: separate;} table td{border:…
-
2
votes4
answers958
viewsA: How to display information (domain name) using PHP?
I believe that the simplest solution would be to use the link starting with a bar /. For example, if on your homepage you have a link to the contact page. The path would be…
phpanswered Thiago Thaison 1,938 -
4
votes3
answers546
viewsA: Simulate placeholder in IE8
you can do it this way: jQuery("input[placeholder]").focus(function(){ if ( jQuery(this).val() == jQuery(this).attr('placeholder') ){ jQuery(this).removeClass('placeholder').val(''); }…
-
1
votes2
answers1533
viewsA: Help with email form with PHP Mailer
I use a code to send a secure email with Phpmailer and comparing yours with mine, I noticed a small difference in the line: $mail->Host = 'smtp.avss.com.br'; //Endereço do servidor SMTP Try to…
-
2
votes1
answer53
viewsA: First-Hild and Hover operation
I took advantage of your code and made some changes to it. Take a look if it meets your need. .topoMenu{margin: 0; padding: 0; list-style: none;} .topoMenu li { font: 20px/20px "DINProLight"; color:…
cssanswered Thiago Thaison 1,938 -
1
votes2
answers162
viewsA: Centralize page numbers
You can do it this way: div.paginacao{float: left; width: 100%; text-align: center} div.paginacao > div.list{display:inline-block} div.paginacao ul{list-style: none; padding: 0; margin: auto;}…
-
1
votes1
answer48
viewsA: Site introduction layer (float div)
You can use the function setTimeout. Take an example: jQuery(function(){ var itv = window.setTimeout(function(){ jQuery("div.publicidade").fadeOut("fast", function(){ //ocultando a div da pagina com…
cssanswered Thiago Thaison 1,938 -
4
votes2
answers5263
viewsA: How to calculate the difference between values that are in the same column?
You can do it this way: SELECT m.id, m.data, m.saldo, IFNULL(saldo - (SELECT mt.saldo FROM movimento mt WHERE mt.id < m.id ORDER BY mt.id DESC LIMIT 0,1), 0) AS variacao FROM movimento m Take a…
-
5
votes3
answers49868
viewsA: Overwrite image with a DIV
You can insert the image inside a div with relative position and inside this div, another div with Absolute position, for example: div.img{position: relative; width: 480px; height: 300px} div.img…
cssanswered Thiago Thaison 1,938 -
2
votes2
answers1880
viewsA: Send different emails to me and the customer after filling in the form by phpmailer
The concept is the same. Try to do so: if(isset($_POST['aderir_submit'])){ require_once("class.phpmailer.php"); //Nova instância do PHPMailer $mail = new PHPMailer; //Informa que será utilizado o…
-
1
votes1
answer2525
viewsA: Stylization of HR
To hr also has edges. Try to do the following, eliminate the side Boras and the bottom edge, for example. .empresa hr { width: 100%; height: 1px; border: 0px; border-top: 1px solid red;…
cssanswered Thiago Thaison 1,938 -
3
votes1
answer1125
viewsA: Setting the "upload_tmp_dir" folder of a cloud server
Try to do the following, remove the ; of upload_tmp_dir and set a value for it, for example: Of: ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;…
-
0
votes1
answer489
viewsA: Delete a record after making a query?
You can create a Stored Procedure in your database. See an example: DELIMITER $$ USE `database`$$ DROP PROCEDURE IF EXISTS `consultaMensagem`$$ CREATE PROCEDURE `consultaMensagem`(IN idMensagem INT)…
-
3
votes6
answers14224
viewsA: Distribute list of <li> in two columns
You can also set the width to 50% ul{width: 400px; height: 400px; list-style:none; margin:0; padding: 0; font-family: Arial; color: #FFF; font-size: 1.5em} li{float: left; width:50%; height: 50%;…
-
1
votes3
answers1615
viewsA: Create mask for fields
You can use the MASKED INPUT PLUGIN See an example below: jQuery(".cpf").mask("999.999.999-99"); jQuery(".cnpj").mask("99.999.999/9999-99"); jQuery(".cep").mask("99.999-999");…
-
49
votes14
answers126839
viewsA: Phone Mask Using jQuery Mask Plugin
You can do it like this: jQuery("input.telefone") .mask("(99) 9999-9999?9") .focusout(function (event) { var target, phone, element; target = (event.currentTarget) ? event.currentTarget :…
-
1
votes1
answer154
viewsA: Select date before searching
The problem is in your query. $query_for_result=mysql_query(" SELECT * FROM $tabela WHERE $BDcoluna1 BETWEEN '".$de."%' AND '".$para."%' AND $BDcoluna2 LIKE '".$query."%' OR $BDcoluna3 LIKE…
-
1
votes2
answers6158
viewsA: Hover over one element that will effect another
If I understand well, the H3 is the brother of STRONG, then it is perfectly possible to do just with CSS. Below is an example: .tratoresList h3{ font-family: "opensans-light-webfont"; font-size:…
cssanswered Thiago Thaison 1,938 -
3
votes3
answers3470
viewsA: GROUP BY last entry
You can use the following query: select * from tabela t where t.id = (select id from tabela where protocolo = t.protocolo order by datahora desc limit 0, 1); In this way, the result will be as shown…
-
2
votes3
answers134
viewsA: Menu with the themes
Hello! Try to do so: #nav { width: 100%; background:#CCC; margin:0px; Float:left;} #nav ul { margin: 0; padding: 0; list-style: none; width:100%; float:left; height: 65px } #nav ul li { float: left;…
-
2
votes1
answer1795
viewsA: How to know if the e-mail has reached the Recipient?
There is a possible solution that can help you. Supposing you record in the database all the submissions that are made, in a table envios which contains, for example: +--------+--------+ |idEnvio |…
-
1
votes3
answers5268
viewsA: Events onmouseover and onmouseout slow to exchange images
Have you tried with css? Let me give you an example. span.switch { border: 1px solid black; cursor: pointer; display: block; width: 40px; height: 40px; background:…
-
0
votes1
answer92
viewsQ: Dbtreegrid component for Delphixe
I need a component DBTreeGrid to the DelphiXE3? I’ve Googled but found nothing :( Does anyone know any?
-
2
votes1
answer78
viewsQ: Is it advisable to keep a zTable always open?
I am developing a product registration system and cash front. My main form is the Order screen and from it I open the other registration screens (Unit of Measure, Products, Payment Methods,…
-
0
votes2
answers926
viewsA: How to store the date and time each click on the form
I don’t know if it’s the right way, but I’d do it this way: html <form> <div class="etapa"> <input type="hidden" name="cod_pergunta" value="1" /> <input type="hidden"…
-
1
votes2
answers926
viewsA: How to store the date and time each click on the form
If I understand correctly, you have a form divided into several steps. And there is a button responsible for carrying out the transition of the steps. Assuming there is a button for each step of the…
-
1
votes1
answer334
viewsA: Help with SQL to sum daily between dates
You can use the function DATEDIFF of mysql. The syntax is as follows: DATEDIFF(date1,date2) In a query would look like this: SELECT DATEDIFF('2015-07-24', '2014-07-24') AS DiffDate The return is:…
-
1
votes1
answer8104
viewsA: Load page via load()
Try to do so: jQuery(function(){ jQuery("body").on("click", "ul.menu a", function(){ jQuery("#content").load( jQuery(this).attr('href') ); return false; }); });…
jqueryanswered Thiago Thaison 1,938 -
1
votes2
answers1679
viewsA: Search System - Select within another
I don’t know if I understand what you’re looking for. You have a search field, where a user can type "Any text in the field" and in the search you want to bring all records that in a given field…
-
5
votes1
answer934
viewsQ: Changing properties of a component contained in a system module
I am modulating a system developed in Delphi XE3. One of my modules named Default has a dmDados with a connection. In my main application, onShow from my main form I am loading the module and trying…
-
2
votes1
answer1256
viewsQ: Access variable contained in a BPL
I have a system developed in Delphixe3 and I’m starting to modular it. However, another question has arisen. In a Unit that will be in one of the modules, I own: type TUsuario = record id:Integer;…
-
3
votes1
answer697
viewsQ: Modular Application Delphi
I’m starting to work with modular applications in DelphiXE3, however I’m not finding much about. Picking up a little something from here, I created a dll with a form and added it to a DLL. My…
-
2
votes1
answer1315
viewsQ: Monitor Service with Borland Socket Server
I’m developing a three-layer application on Delphi-7 , using the component TSockecConnection. It is possible to monitor the connections, identify the IP of connected users as well as taking down…
-
2
votes4
answers5887
viewsA: Is it possible to clone objects in Delphi?
Following the tips of @Gunar Bastos I managed to find a solution to my problem. Follow below: function CopiarDataSet(zTableOriginal: TDataset): TJvMemoryData; var i:integer; begin //Abrindo o…
delphianswered Thiago Thaison 1,938 -
9
votes4
answers5887
viewsQ: Is it possible to clone objects in Delphi?
It is possible to clone objects in Delphi at runtime? For example, there is a Data Module with a zTable. If I use that zTable on two screens at the same time, with different filters, the second…
delphiasked Thiago Thaison 1,938 -
3
votes1
answer733
viewsQ: How to identify which form has changed the property of a component?
It is possible for me to identify which form has changed the property of a particular component? For example, I have a Data Module with a ZTable which is accessed by several forms at the events…
delphiasked Thiago Thaison 1,938