Posts by Marcelo • 1,768 points
151 posts
-
0
votes1
answer71
viewsQ: Pdfsplitmerge class not registered in Delphi XE
I have a system that uses Unit Pdfsplitmerge_tlb, happens that compiles in a good, but when executing and trying to use the Object Tcpdfsplitmergeobj he says the class is not registered Example of…
-
0
votes0
answers60
viewsQ: Error starting CWP Centoos + Apache
Guys I use CWP to manage my domains where I put my systems in PHP, it turns out that today creating a domain the server generated an error, I think some bug, and I can no longer start Apache or CWP,…
-
1
votes1
answer789
viewsQ: Can you create a cron to delete files with retroactive dates?
See my need, I have a cron that runs every morning and creates a file.ddmmaaaa.backup on the Linux Kubuntu server, it happens that the hard drive fills up quickly since this backup file has 500MB on…
-
2
votes1
answer643
viewsQ: Fastreport’s Tfrxrichview changing color on its own in Delphi XE?
I searched the web but found nothing in this sense, there must be some bug in the component TfrxRichView of Fastreport 5.1.9, when placing this component and setting the background color it accepts…
-
2
votes2
answers2434
viewsQ: In terms of performance, "Character Varying" or "text" in Postgresql?
Before posting this question I scoured the internet to know the differences and performance of each type and I came to the conclusion that I should discuss a little more on this subject here with…
-
1
votes1
answer535
viewsQ: How do I force . htaccess to direct a domain into a folder?
I don’t understand much of it. htaccess from apache, so I would like to ask colleagues if it is possible what I am going to explain, I have a domain: mycard.com.br and a domain test.mycard.com.br…
-
2
votes1
answer360
views -
0
votes1
answer619
viewsQ: What’s the command to cut paper on the Bematech MP-2100 TH?
What is the command to cut paper on the Bematech MP-2100 TH? See that it is not the FI she is not fiscal, on the Internet she finds it easy when it is fiscal. I tried #27+#119 but it won’t take…
-
2
votes1
answer155
viewsQ: How to work with IN instruction in PHP + PDO?
I’m trying to build a dynamic SQL but I’m getting beat up for not understanding how to work with the IN statement in PDO Example: $SQL = "select * from tabela where (campo in(:valor))"; $Query =…
-
0
votes1
answer150
viewsQ: How to decode this json in php?
I saw some similar questions here on satckoverflow, but I found no answer to this problem. I have a Result that brings me the json next: HTTP/1.1 200 OK Server: nginx Date: Fri, 07 Jul 2017 19:44:04…
-
0
votes3
answers1087
viewsQ: How to put default value in time field in mysql?
I searched the web but I did not find anything specific for time field in mysql, only date and timestamp, I am creating a field "hora_emissao" type "time", because I want to store only the time in…
-
3
votes2
answers944
viewsQ: How to insert an item into a particular php array position?
I have the following array, $status = array(); $status["Visualizar"] = "Visualizar"; $status["Editar"] = "Editar"; $status["Status"] = "Alterar Status"; $status["Boleto"] = "Gerar Boleto"; It turns…
-
0
votes0
answers33
viewsQ: Can you turn a literal string into a variable?
I searched the web, but I didn’t see how to turn a simple string into a variable, I saw parse_str but it’s not quite what I need. I want the following, I have the string "userName 1", and I would…
-
3
votes1
answer1473
viewsQ: How to expect one javascript function within another?
I have the hypothetical situation: function fTeste2(valor) { setTimeout(function() { alert("Hello"); }, 3000); return valor + 5; } function fTeste1(valor) { return fTeste2(valor); }…
javascriptasked Marcelo 1,768 -
8
votes2
answers9843
viewsQ: Export to excel via javascript, put name in file
Guys I use the very simple routine below to export to excel, it works cool, but I would like to give a name to the file when exporting, but I didn’t want to use plugins or huge functions just add a…
-
0
votes0
answers216
viewsQ: Can you open "accdb" access files with PHP using PDO on linux?
That’s right guys, I searched but did not find how to open accdb files using PDO in PHP, my environment is linux.
-
1
votes2
answers589
viewsQ: How to activate onclick after a jquery?
I have some botões which are mounted dynamically via jquery, Turns out on the front page I have some events like that botões, but as they do not yet exist at the time of page loading the events are…
-
0
votes0
answers1345
viewsQ: How to inhibit confirmation "form forwarding"?
I have a list of records where I do a search (via post) and after the result select a record through a select, and go to another page to edit this record. It turns out that when I finish editing…
-
1
votes1
answer263
viewsA: How to use Tinymce with Jquery?
I’m sorry guys, the solution is quite simple, just add the line tinymce.triggerSave(); before var form = $(this). parents("form"); and it works!…
-
0
votes1
answer263
viewsQ: How to use Tinymce with Jquery?
I’m trying to use Tinymce with Jquery but unsuccessfully, it sends the textarea data without formatting, if I try without Jquery it works, will Jquery not accept the html tags inserted by Tinymce?…
-
0
votes0
answers209
viewsQ: How to organize html listbox items?
I have 2 listbox where I pass the items from one to another, but it always adds at the end of the list, I would like to be able to organize the list to my liking, Itemup style, Itemdown in the…
-
0
votes0
answers29
viewsQ: How to scroll to an iframe with reference to another url?
I have an iframe that has src directed to another url, I know that in this case I can not access the content for security reasons, but what I wanted is to simply position the scroll I a certain…
-
-1
votes2
answers1305
viewsA: Using the soundex mysql function with like parameter
You can try it: select * from clientes where (soundex(nome) LIKE concat('%',soundex('POLIANA'),'%'))
-
0
votes1
answer4482
viewsQ: How to get the index number of an array?
I have the following array: Array ( [CPF_CNPJ] => Array ( ) [TIPO] => Array ( ) [NOME] => Array ( ) ) I know that key(array) me returns the current key NAME in a loop, but would like to get…
-
1
votes1
answer291
viewsA: How to highlight text in jQuery autocomplete?
Solution: open: function (event, ul) { $('.ui-autocomplete li').each(function () { var texto = $(this).html().toUpperCase(); var busca = $("#pesquisax").val().toUpperCase(); var troca =…
-
1
votes1
answer291
viewsQ: How to highlight text in jQuery autocomplete?
I am using jQuery autocomplete and would like to underline inside the result the text being searched, I looked for some examples on the web, but only found with plug-in, like this: Example I tried…
-
2
votes2
answers863
viewsA: Calling function after choosing date
That might be what you need $("#SeuInput").on("change", function(){ alert("Mudou o valor"); suafuncaoaqui(); });
-
2
votes1
answer1977
viewsQ: How to put Scroll in table inside div with width 100%?
The example shows a div with scroll horizontally, but would like the table along with the scroll div to adjust 100% to the screen size. .div { border: solid; display: inline-block; width: 300px;…
-
4
votes2
answers1683
viewsQ: How to sort this php array?
I have this array: $res = array(); $res[] = array("16/08/2013", "13:32", "ROBERTO"); $res[] = array("16/08/2013", "13:16", "AMANDA"); $res[] = array("14/08/2013", "12:36", "SILMARA"); $res[] =…
-
-1
votes3
answers418
viewsQ: Is it possible to keep an object in a session variable?
I create the variable: $Client = new SoapClient(...); And then: $_SESSION["Cliente"] = $Client; Not to have to make a complete request on each page. Is there such a possibility?…
-
0
votes2
answers1128
viewsA: How to upload this Header using Nusoap PHP?
Guys a simple thing that has consumed me a lot of time, but of what I will consume in WS rsrs, the header has to go like this: $Header = '<Autenticacao xmlns="' . PORTNAMES . '"><Token>'…
-
0
votes2
answers1128
viewsQ: How to upload this Header using Nusoap PHP?
Guys I’m trying to authenticate in a WS but I’m not getting it, I can connect and generate a token, but when trying to do other operations with token received I can’t fill the header and validate…
-
0
votes3
answers1509
viewsQ: How do I resolve this conflict in php?
Guys I have the routine below that makes the listing of files from a directory: if (is_dir($dir)) { $dh = opendir($dir); while (($file = readdir($dh)) !== false) { if (!in_array($file, array(".",…
-
-1
votes1
answer180
viewsQ: Why is the TXT file having problems using file_put_contents?
I am creating files with the "file_put_contents" function of PHP, on my machine it opens normal in Notepad++, but when sending to someone and it will open in ultra Edit it asks "Do you want to…
-
0
votes1
answer101
viewsQ: How to change the text smoothly?
I am using Bootstrapdialog and I have to change the text frequently, I would like a tip on how to treat this, follow the example: $(document).ready(function() { Janela = new BootstrapDialog.show({…
-
4
votes1
answer1891
viewsQ: How to monitor the change of an input type text field?
I need to monitor the change of the content of a text field, the function I use is this: $(document).ready(function() { $("#nome").on("keyup change click focus", function() {…
-
0
votes1
answer812
viewsA: Can you create css class at runtime? But with a caveat!
I came up with a simple solution, but it works until I find a more elegant solution: $(document).ready(function () { $(".wpx").before( function() { var x = $(this).prop("class"); var n =…
-
0
votes1
answer812
viewsQ: Can you create css class at runtime? But with a caveat!
I came up with a question that can be of help to many, the point is that in an html form we make a lot of use of style class (css) to make life easier, it turns out that creating classes for some…
-
0
votes1
answer71
viewsQ: Is there any way to work with data groups in html form?
I have the following scenario: The client chooses more than one benefit package on a page (html form), so far so good, work with array Example: <input type="checkbox" name="pacote[]"…
-
0
votes0
answers60
viewsQ: Is Div Load obsolete?
I’m using $("#minhadiv").load("url.php"); but Chrome is saying it’s obsolete, is that right? So how to use?
-
0
votes0
answers69
viewsQ: Div gets cropped when changes window size + css
Guys I don’t know how to look for this on the web, until formulate the question is difficult, what happens is that I have a div on the screen with background=red for example, the screen being…
-
4
votes1
answer819
views -
0
votes1
answer368
viewsQ: Why do Eclipse and Netbeans spoil accentuated files?
Look, I tried and I tried, I looked on the web for some way to learn how to use these tools, but I’m giving up, I’m going to use Notepad++ anyway. Before I used to use the Dreanweaver and never had…
-
1
votes1
answer932
viewsQ: Move bootstrap window
I’m using the following code to move bootstrap windows: $('#divform').modal({ keyboard: false, show: true }); //Jquery draggable $('#divform').draggable({ handle: ".modal-header" }); That is, I have…
-
4
votes1
answer1041
viewsQ: What is the elegant way to read this PHP Object?
I have the Result of a Webservice below, I’m doing a "foreachs" to read each level of the Class, but I think it should have a more elegant way to read and get the values of the object, follows the…
-
4
votes2
answers366
viewsA: Active = False before starting a Delphi application
I decided to treat in the Beforeconnect event of the component, there I Seto all the variables related to the connection taking into account if it is Development or Production.
-
2
votes2
answers366
viewsQ: Active = False before starting a Delphi application
Every time we work on Datamodule on the connection component, we activate to do tests and the like. It turns out that if we forget to disable when we compile, it can give error when we send to the…
-
0
votes0
answers105
viewsQ: Sqlite3 with Dev-C++
I am trying to make a connection test with Dev-C++ and Sqlite3 but am having the following error: [Linker error] undefined reference to `sqlite3_open' I’ve already added: #include <sqlite3.h>…
-
0
votes1
answer456
viewsA: List only data from the same id
Look has 2 Sqls in the same table in your example, in my view there are two things, either you use only one table to save the sale or you must have wrong the table name in the second SQL. By way of…
-
7
votes5
answers675
viewsQ: Why does Netbeans warn you not to access global variables directly?
Netbeans suggests that we do not access the global variables of PHP type $_SERVER[''] directly, what is the suggestion in this case? It’s usually done this way: <?php $ip =…