Posts by mend3 • 1,410 points
26 posts
-
1
votes1
answer519
viewsA: Updating only a tr with ajax with returned mysql data
You can do it using the Success callback of your ajax request: $(document).on('click', '#button', function() { // armazena o botão do formulário que está requisitando o ajax var caller = $(this);…
-
1
votes3
answers2852
views -
3
votes2
answers6602
viewsA: Insert data into database using mysqli
First of all, connections using mysql_connect are being discontinued by PHP, so it is recommended to treat your connections using PDO. But in the brute way: $sql = "INSERT INTO tabela (coluna1,…
-
0
votes2
answers179
viewsA: Error in using glob function with wordpress
First of all, make sure your $folder path is valid "need to end with /" Then use this: $a = glob($pasta.'*.{jpg,png}',GLOB_BRACE); echo '<pre>'; print_r($a);…
-
4
votes4
answers24621
viewsA: Program to manage Mysql database on Windows?
I use the Workbench and the Navicat. Navicat makes connections with various types of databases (Mysql, MSSQL, Postgre, Oracle and Sqlite) as well as having several very useful functions, such as…
-
21
votes4
answers17125
viewsA: net error::ERR_BLOCKED_BY_CLIENT when making Ajax request
Well, I did a bigger sweep and I found references at this link. I tried it on firefox (and it worked). Actually, it wasn’t code error or anything, it was just Adblock (Chrome extension) blocking the…
-
10
votes4
answers17125
viewsQ: net error::ERR_BLOCKED_BY_CLIENT when making Ajax request
I came across a strange error when I tried to execute an ajax request, and I was not very successful in finding solutions. That is the error: The line 199 of forms.js is the $.ajax({ in: $.ajax({…
-
0
votes3
answers145
viewsA: Mark html element
If you want to store in an array to work with them dynamically, you can use this: jQuery(document).ready(function(){ var data = []; $('h2').each(function(){ data.push($(this)); }) }); Jsfiddle…
-
0
votes2
answers255
viewsA: Multiple clicks
while($('#elem').is(":hover")){ $('#elem').trigger('click'); } I didn’t test it, but it should work =) I took from here, for any doubt.…
-
2
votes3
answers1927
viewsQ: PHP: filter_input with REQUEST
As most of you know, in PHP 5.2 the function has been implemented filter_input. I’m working quietly with her, no doubt very alarming. The problem is that: I can work well with it, using in the first…
-
1
votes2
answers167
viewsA: How to use Jquery Custom Scrollbar on elements with display:None
Put an Handler to your elements for when they are displayed: $('.elemento').each(function() { if (!$(this).is(':visible')) { return; } $(this).mCustomScrollbar({ scrollButtons: { enable: true } });…
-
1
votes2
answers94
viewsA: Javascript error function. $. toJSON
toJSON (English) is a method of Javascript itself is called from your object. var d = new Date(); var today = d.toJSON(); //Resultado: 2014-02-21T21:57:42.080Z Receiving this via jQuery, you should…
-
1
votes3
answers134
viewsA: Is there a PHP function that simulates a LEFT JOIN?
You said you need the values of both arrays PLUS the keys of the 1st, right? Try it with this: $array = array_intersect($dados, $dadosFiltrado); $array_final = (array) ($dados + $array);…
-
0
votes2
answers891
viewsA: Obfuscating Java code with Proguard
The mistake is giving you the solution: "21 unresolved references for classes and interfaces. Maybe you should add libraries or update their versions. If your code works without the missing classes,…
-
2
votes3
answers2440
views -
51
votes4
answers60985
viewsA: Difference between :disabled and :readonly in HTML?
Disabled does not pass the value to the user, and can not edit. Readonly sends the value to the form and also cannot edit. Assuming you have this html: <form method="post" action="page.php">…
-
0
votes8
answers7407
viewsA: What better way to work offline and synchronize data with server?
Like previous responses, use Sqlite to save to your device. Services on Android (Documentation) When the application opens, start a service that will synchronize with the server when it has internet…
-
0
votes3
answers941
viewsA: Is it possible to convert several tables from Myisam to Innodb at the same time?
You can try this (1 table per line, not forgetting the ;) ALTER TABLE t1 ENGINE = InnoDB; ALTER TABLE t2 ENGINE = InnoDB; ALTER TABLE t3 ENGINE = InnoDB; [..]…
-
0
votes2
answers93
viewsA: Refresh a window when I close another
Test using this method function closeCallback() { //your code here } var openTab = function(uri, name, options, closeCallback) { var win = window.open(uri, name, options); var interval =…
-
9
votes1
answer3748
viewsQ: How to create automatic subdomains from a form?
I am developing a large system, which already serves almost 30 companies in the state and some more are to join. The system is accessed by companies from this url: meudomínio.com.br/business1…
-
0
votes2
answers512
viewsA: phpmailer gets blank screen
Check your server output settings as well. Some SMTP servers were upgraded last year and the output port went from 25 for 587.
-
2
votes2
answers234
viewsA: Auto increment ID value
Truncate the table, it will reset auto-increment. Note: if your table has records you don’t want to lose, make a backup first: TRUNCATE [TABLE] tbl_name More in the Mysql documentation…
-
8
votes2
answers12503
viewsA: How to save data to the internal memory of an Android device?
First of all, it’s worth a read in the official documentation of Android on How to Save Files. To save in internal memory, we use the method openFileOutput() passing as parameters the file name and…
-
1
votes1
answer201
viewsA: How to create a button with the Custom Scrollbar plugin?
Create custom scroll for a div: $(".content"). mCustomScrollbar({ scrollInertia:150 }); Remove custom scroll from a div: $('#remove-scroll').click(function(e){ e.preventDefault();…
-
1
votes1
answer1360
viewsA: How to create fade-in effect in div?
var data = $( '<div>'+response+'</div>' ).find('#modal').html(); It would be interesting to assign an 'id' or 'class' to your div, make your life easier (and maybe help the script) to…
-
5
votes2
answers1202
viewsA: What is the name of this 'effect' of selecting objects and how to do it in pure JS?
I got the answer from @Guilherme Bernal (more precisely the example of selecting div’s) and incremented so that they remain selected in the event mouseup. Example: Jsfiddle The changes were: 1 - a…
javascriptanswered mend3 1,410