Questions tagged as 'ajax'

1
answer

How to treat data from a Date lookup in the where clause in Postgres?

I have a screen where you have a list of payment titles for a company, and I need to do a dynamic search from the issue date of the title. The idea is that when the user enters the date in a search field, this data will be passed dynamically via...
asked by 23.10.2015 / 15:05
2
answers

Overwriting a page with ajax

The question is simple. I use Ajax Javascript so it can load contents, however how can I for example, load another html2 page and make the page that loaded html2 go away? Question, does ajax have the ability to load content in real-time while...
asked by 19.04.2016 / 12:24
2
answers

getJSON Ajax for JSON with multiple objects

To search for data in a simple JSON , such as: { "chave1":"valor1", "chave2":"valor2" } I use something like this: $.getJSON(dados, function(json) { $.each(json, function() { $('#r').append("<p>"+this.chave1+"&l...
asked by 16.01.2016 / 07:36
1
answer

Jquery if element (': visible') [closed]

I'm trying to create an if so if one div is visible, another disappears (in a wordpress template): jQuery(document).ready(function($){ if($('.classe1').is(':visible'){ $('.classe2').hide(); } }); But you are not...
asked by 13.01.2016 / 15:50
2
answers

POST method Jquery and PHP

Dear colleagues. I have a button in the bootstrap: <button class="btn btn-xs btn-primary active" name="Botao" value="Ativar" id="ativar">Ativar</button> I would like the status to be changed to Disable by clicking this butt...
asked by 09.07.2015 / 21:12
1
answer

Content loaded in a DIV with automatic scroll bar scrolling

I need your help. I'm setting up a chat system, and because I'm a hardhead I'm putting everything in my hands so I can learn. The question is as follows, I have an index.php page and a page called chat.php. I would like to know how to create a s...
asked by 28.03.2016 / 08:15
1
answer

Error Uploading images with ajax

Index.php <<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="css/style.css"> <title>Upload com Ajax</title> </head> <body> <div id="Principal">...
asked by 09.06.2015 / 15:09
1
answer

Object Object, how not to issue this alert

Well, I have pages that send asynchronous requests, but when interrupted they issue an alert [Object Object]. This is a bit of a problem as it appears while the server is directing to the page (like the one the client chose). Is there a wa...
asked by 01.06.2015 / 04:34
1
answer

ajax upload does not pass variables

I can not pass 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" id="ID_Cotacao" value="555"> . $(function(){ $('...
asked by 05.09.2015 / 05:24
1
answer

Explode in Jquery

I'm still having difficulties in Jquery, on the face of it I'm bringing a value from the Mysql database: <div id="cod_<?php echo $jmValor->IdCodUsuarios; ?>">Nome do usuário</div> But I need to type what happens with th...
asked by 23.04.2015 / 17:03