Questions tagged as 'ajax'

0
answers

How do I store checked-in Checkboxes values?

Hello. I'm making a system that allows access to folders. I look for the folder, which has its id and permissions saved in the database, selecting it, loading its subfolder and checkboxes are loaded to determine the permissions that users will h...
asked by 10.03.2017 / 14:14
1
answer

How do I open a specific div on another page?

I'm not sure whether this question is duplicated or not, I may not know how to look right. Anyway, I'm developing a question and answer system (which is already ready) and I'm going to make a page just for exercises with this system. So fa...
asked by 02.03.2017 / 17:55
1
answer

cURL PHP - Retrieving page html

Hello, I'm training this cURL. Can you tell me why the following snippet does not work? <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $cURL = curl_init...
asked by 21.02.2017 / 20:21
0
answers

have to make the request only when there is change in the database? instead of checking every second

<script type="text/javascript"> function atualizarTarefas() { $("#header").load("<?=site_url('home/notificar/')?>"); } setInterval("atualizarTarefas()", 1000); </script>     
asked by 16.03.2017 / 03:17
1
answer

Call functions / procedure via buttons using Object Oriented PHP

I'm starting in PHP O.O and I'm having a hard time calling functions that are in the class via HTML buttons. In fact, it is not in calling but in setting the values that are in the function. Example: <?php Class Conta{ public $saldo;...
asked by 18.02.2017 / 03:19
1
answer

Uploading files with PHP does not recognize

I'm trying to upload images with PHP and Ajax but the result says it's an undefined value Javascript code $('form[name="update-user"]').submit(function(){ form = $(this); $.ajax({ url: 'switch/painel.php',...
asked by 17.03.2017 / 23:09
1
answer

Uploading Multiple PHP Files jQuery

I would like to send multiple files via post using jQuery, I tried several codes and I could not, I would like you to help me. I have this form: HTML - index.html <div class="arquivo" style="display: none;"> <form name="for...
asked by 17.03.2017 / 13:30
3
answers

How to do something asynchronous with jQuery, search in MySQL with PHP?

I'm having a lot of trouble with this part. I want to simply do a search in the database and move to my main program, this without giving a refresh . I know how to do all of PHP and MySQL, however the jQuery part is no longer my area, I know th...
asked by 26.01.2017 / 17:30
1
answer

php result in a W3CSS Modal

Hello! I'm testing W3.CSS and I really enjoyed what I saw until I crashed into a form with the result inside a Modal. My difficulty is when the onclick event submits the form, it opens the modal and the page gives a refresh without passing the d...
asked by 05.03.2017 / 06:00
3
answers

send json data from ajax to php

JS file: var jsonsave = []; var dado = new Object(); dado.nome= "João"; dado.cpf = "000"; dado.teste = "teste"; var jason = JSON.stringify(dado); jsonsave.push(jason); $.ajax({ type: "POST", dataType: "JSON",...
asked by 22.01.2017 / 21:17