Posts by Tiago • 2,377 points
213 posts
-
0
votes3
answers544
viewsQ: Open php file in ascending order
I have an update/ folder with PHP files, so: These are mysql update files, when it is updated soon after the server erases. When the client does not access the Admin the file stays there, when we…
-
3
votes2
answers224
viewsQ: Is there a paid localhost server?
I searched the internet and found nothing related. I want to set up a localhost server, to test my applications. I have tested Xampp, Wampserver Easyphp and others... Is there a system that gets…
-
3
votes3
answers447
viewsQ: Divide a date into two parts
I’m making a calendar using Mysql, html, JS and PHP. This calendar serves to book the ballroom here in the building. There may be two reservations on the same day, morning and afternoon that would…
-
-5
votes4
answers8168
viewsQ: Is it possible to make an IF with javascript directly in html?
I have a button that I want to show only if the person logged in is an administrator. But it has to be in JS. In PHP, I would do so: <!doctype html> <html> <head> <meta…
-
4
votes2
answers294
viewsQ: What is the correct way to return a "switch" value?
How is the correct way to return the value of switch? HTML: <h3 id="txtOcorrenciaStatus">Status</h3> Javascript: switch(ocoStatus) { case C: $("#OcorrenciaStatus").html("Concluído");…
-
-6
votes1
answer917
viewsQ: Place a pager in json
A friend helped with the code, but I need to make it display 5 results per page and have a pager like < >. var operacao = "selectOcorrencias"; var condominioID = "2";…
-
4
votes1
answer278
viewsQ: View json value in a div
How to make a value that is in JS appear in html content? app js. // BUSCA OCORRENCIAS $("#menuOcorrencia").click(function() { var operacao = "selectOcorrencias";…
-
1
votes1
answer76
viewsQ: FOR with getJSON file URL
I need to make a FOR with getJSON file. As is the correct form? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for…
-
1
votes3
answers190
viewsQ: Ajax upload does not send image and parameter
I’m trying to upload without From, for image upload, but I can’t. html <input id="avatar" type="file" name="avatar" /> <button id="btnOcorrenciaSalvar">Salvar</button> Javascript…
-
1
votes0
answers39
views -
6
votes3
answers1209
viewsQ: Get the name of the Image in the URL
I need to get the name of the image in the url. /data/data/com.intel.appx.IZICondominios.xwalk15/files/_pictures/picture_006.jpg I need you to come back: picture_006.jpg The URL template is not…
-
0
votes1
answer138
viewsQ: Uncaught Referenceerror: takepic is not defined (Intel XDK)
I saw on the internet an example to capture photo in the app. I am debugging and appears this error: Uncaught Referenceerror: takepic is not defined My code: function takepic(){…
-
0
votes2
answers258
viewsQ: Mysql, selecting 4 related tables
I am trying to make a select on 4 different tables. They are all related. It all starts with the Resident. SELECT morador.* ,unidades.* ,grupo.* ,condominios.* FROM morador LEFT JOIN unidades ON…
-
7
votes1
answer1010
viewsQ: PHP - Make 3 INSERT in different tables with relationship between them
I’d like your approval. I need to do 3 INSERT all at once. Only I also need to get the last ID of each table, to do the relationship of the tables. That’s right, do it that way? if($_GET['operacao']…
-
1
votes1
answer99
viewsA: Intel XDK $.getJSON does not return php value
RESIDUE! For those who have the same doubt, just missing [] in the $return, being like this: $retorno[] = array();
-
0
votes1
answer99
viewsQ: Intel XDK $.getJSON does not return php value
I’m making a query in mysql using the $.getJSON, but I’m not getting back the value. test page: <!doctype html> <html> <head> <meta charset="utf-8">…
-
0
votes1
answer89
viewsQ: Include variable in json output
if($_GET['operacao'] == 'banners'){ header('Content-Type: application/json; charset=utf-8'); $rs = $mysqli->query("SELECT foto AS image FROM banners"); $registros = mysqli_num_rows($rs); $arr =…
-
0
votes1
answer49
viewsA: Intel XDK, jquery-1.11.3.min. js and Ionic.bundle.js conflict
I found out, just use jQuery version 2.
-
0
votes1
answer49
viewsQ: Intel XDK, jquery-1.11.3.min. js and Ionic.bundle.js conflict
I’m making a select simple, because I’m learning how to use the Intel SDK. I realized there’s a conflict between the archives: <script…
-
0
votes1
answer43
viewsQ: Difficulty making Rewriteengine work
I need to use this command below. On my server works well, but when I went to install on another this same line of error throughout the site. I need this because the command will come differently…
-
1
votes1
answer215
viewsA: Open page after 2 seconds with js on intel xdk
I got! For those who have the same question follow the answer: setTimeout(function() { activate_page("#inicio"); }, 2000) ;
-
1
votes1
answer215
viewsQ: Open page after 2 seconds with js on intel xdk
I’m using the intel xdk. On the first page is the system logo, I want the system homepage loaded after 2s. As a test I did it with button to know how it is done, but I am not able to do to…
-
0
votes3
answers825
views -
3
votes1
answer657
viewsQ: Run ECHO without interpreting HTML
I have a value in mysql database that contains some html commands like: <b>Olá</b> <br> Other... I need that when I show the value using <?php echo $row_rs['original']; ?>…
-
0
votes3
answers106
viewsA: show("show") does not work on firefox
Hello, thank you all... You know that moment of distraction, you do things but don’t pay attention to what’s on the screen... kkkk Correct, it was very simple. 1º) I had forgotten to put a else and…
-
0
votes3
answers106
viewsQ: show("show") does not work on firefox
show("show") is not working on firefox. This same code works on Chrome. What would be wrong? $('#conteudo').hide(); <?php if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] ==…
-
1
votes0
answers171
viewsQ: jQuery datatable sAjaxSource - Show error while searching
At great cost, I was able to find an ajax code for loading the tables. It was necessary, because there are more than 5 thousand records. Error appearing while searching: Datatables Warning (table id…
-
2
votes3
answers3959
viewsQ: INSERT INTO NOT EXISTS
I need to create an INSERT where it is checked if the value already exists. I looked at some posts, but I am not able to execute. INSERT INTO `pagina_extra` (`ID_PExtra`, `ordem_paginas`, `id_menu`,…
-
0
votes2
answers66
viewsQ: Place a value inside the jquery val
What is the correct way to assemble this line? $("#rastreo").val('BR'<?php echo date("hYmdi"); ?>json[0].estado); Trace ID is an input field.
-
0
votes1
answer64
viewsA: Install and use Launch-Navigator
A boy helped me in this forum http://forum.mobilezone.com.br/viewtopic.php?f=15&t=3#p8
-
1
votes2
answers82
viewsQ: Intel XDK - Input Hidden
I’m learning to use the Intel XDK. I need to create a hidden field where you will have device information. In html we use hidden, but this command is not accepted in XDK, or I am doing something…
-
1
votes0
answers495
viewsQ: Create intel xdk chat
I would like to create a chat using Intel XDK, but I found nothing on the internet. Know some tutorial for this?
-
0
votes1
answer64
viewsQ: Install and use Launch-Navigator
Using the Intel XDK. I would like to know how to install and use this plugin https://github.com/dpa99c/phonegap-launch-navigator Does anyone know any video tutorial explaining how to use it? If you…
-
0
votes1
answer47
viewsQ: ajax upload does not pass variables
I’m not getting past the variables in the ajax method. <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> <input type="hidden" name="ID_Cotacao"…
-
2
votes1
answer645
viewsQ: PHP Upload ajax of miscellaneous files without Submit
I need to upload without leaving the page, I believe the best would be ajax, correct? I found some post here on Sopt, but I could not adapt my need. I need to send these two fields, one of file and…
-
3
votes2
answers6021
viewsQ: Check if a file has been selected "input file"
How do I check if a file has been selected? <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> With confirmation, I will start the upload automatically,…
-
1
votes1
answer84
viewsQ: Picking up PHP file with GET variables
Good afternoon. I will use Phpmailer, but I am not able to send using variables. Behold: $mail->CharSet = "text/html; charset=UTF-8;"; $mail->IsHTML(true);…
-
-1
votes1
answer814
viewsA: Enable temporary domain /~USER/
For you to have the same problem, follow solution:
-
0
votes1
answer814
viewsQ: Enable temporary domain /~USER/
Good morning, I do not know how to describe well, but I would like to enable "temporary domain" I will call so to try to express myself. When I create a domain in the whm, I know it’s possible to…
-
1
votes2
answers1625
views -
5
votes2
answers1625
views -
0
votes1
answer96
viewsQ: Load jQuery does not capture data
Hello, I made a registration page, where I get consular origin and destinatario, working perfectly. Now I’m doing the editing page. Since I already have the cpf_cnpj of origin and destination, I…
-
1
votes2
answers15503
viewsQ: Run JS when opening the page
Good evening. I have a js where I need it executed when loading the page. It works when I click, but I cannot make the calculation automatically when loading the page. $(document).ready(function(){…
-
5
votes2
answers1005
viewsQ: jQuery - Use two functions together
I need the same method to be called in two events, that is, in the page load the data, and if the input value is changed load the code again. ($("#cpf_cnpj").load(function() or…
-
1
votes3
answers2776
viewsQ: Send POST Textarea one value per line
I have a form with a textarea where it will have a value per line. Example: I need to send this value to the Mysql database. Then on another page I need to create a For to list these values. What…
-
2
votes2
answers8912
viewsQ: Add days to Javascript Date() in dd/mm/yyyy format
Hello, How do I show the date generated in Brazilian format? I searched here and on the internet, but I could not execute as needed. Behold: $(document).ready(function () {…
javascriptasked Tiago 2,377 -
6
votes2
answers2492
viewsQ: JOIN with two columns in the same table
Good morning. How can I make a two column JOIN in the same table? On the table quotation, has the column with cpf_cnpj from warhead and fate. SELECT cotacao.*, clienteOrigem.ID_Cliente as…
-
1
votes0
answers29
viewsQ: XCACHE - xcache.mmap_path and xcache.coredump_directory problem
Hi, I’m installing XCACHE on my WHM server. I am putting the configuration in my php.ini, after saving, I started receiving several root emails from the server. Commenting on each line of the code I…
-
5
votes1
answer573
viewsA: How to configure security for dedicated servers and VPS?
Via SSH - Shell access Install the ELS wget --output-document=installer.sh http://servermonkeys.com/projects/els/installer.sh; chmod +x installer.sh; sh installer.sh; els --update; els --chkrootkit;…
-
2
votes1
answer573
viewsQ: How to configure security for dedicated servers and VPS?
I’m having problems with virtualized and dedicated server security settings (VPS). What I need to do to protect my Linux server, with Apache, against major security threats such as rootkits, open…