Questions tagged as 'ajax'

3
answers

Upload post without refresh of page with AJAX and JQUERY

I need help with Wordpress because I would like to load posts without refresh or reload of the page. I have a menu that returns posts of a certain category in a <div> to the left and I would like to be able to l...
asked by 18.02.2014 / 16:09
3
answers

How do I bind events to dynamically created elements and pass parameters?

I have a table that is generated via ajax and a certain column generates a link. As it was implemented, it currently writes a html with javascript intrusive. Something like below: return "<a href=\"#\" id=\"detalhe-nota-" + record.dat...
asked by 25.11.2015 / 19:34
2
answers

Check if username is unique in real time

Hello, guys! Currently, to check if a user name is unique, I do the most basic. I send the POST to a PHP page that checks in MySQL, only then returns the error. cadastro.php: <form role="form" action="https://<?php print $_SERVER['HTTP...
asked by 01.11.2017 / 21:34
1
answer

Ajax function does not pass through success

My role calling my web service var email = document.getElementById("email").value var senha = document.getElementById("senha").value $.ajax({ url: "http://localhost:8080/Servidor/rest/service/loginCustmerUser/"+ email...
asked by 08.09.2015 / 23:53
2
answers

Currency exchange online

I spent some time looking for a site where I can change currency. Where can I make requests via client-side script using a url address and receive a JSON object with the conversion. (I ended up finding a solution I like that I put here.)    ...
asked by 17.12.2013 / 00:17
2
answers

Catch only one div from another page via jQuery

Paste content of another page by javascript or jquery In another question I wanted to know how to get content from a page. In this I wanted through this code to get only a <div> instead of the whole content. Let's say I want...
asked by 17.06.2015 / 16:37
4
answers

Upload with Ajax and formData does not send data

I have a problem and I can not solve it, I'm trying to upload via ajax and php , I already got some tips here for SO , but I still have problems and I know the big chance of doing something bullshit is great. I'll try to show....
asked by 01.02.2017 / 13:06
5
answers

How to receive a JSON object from an external url / domain?

I found a lottery API that brings me the result data of a lottery of Lotofácil, but I'm not able to access the data of the JSON object. I'm trying this way: $(document).ready(function(){ $.get( "http://developers.agenciaideias.com.br/lo...
asked by 24.10.2014 / 19:25
2
answers

How to display quotation marks in echo in PHP?

I'm developing an application that uses PHP + AJAX and I came across a boring problem. AJAX only recognizes the function if it is like this: onclick="remover_musica_ftp('0','Deposito de bebida' );" I'm using PHP to "print" these values in t...
asked by 16.08.2014 / 09:46
2
answers

How to read a JSON file without a server?

I'm developing a simple static website with html, css and javascript hosted in Dropbox, using javascript with the JQuery framework and trying to read a JSON file. var jqxhr = $.getJSON( "example.json", function() { console.log( "success" );...
asked by 12.10.2015 / 02:45