Questions tagged as 'ajax'

1
answer

How do I pass data to a php class via ajax being class instance another?

Personal hello I hope you can help me, I have this problem a long time I'm trying to get my data via Ajax for my class but in the URL I do not know how to reach it in a way that does not error I tried the following way $.ajax({ type...
asked by 27.01.2016 / 03:21
1
answer

How do I get the value of Variables Separately from PHP?

This is the Ajax code $('#FormEs').submit(function(e){ e.preventDefault(); $.ajax({ url: "VerificarPerson.php", type: "POST", dataType:"html", data: { 'metodo': $('#metodo').val(),...
asked by 14.02.2016 / 20:16
2
answers

Post via Ajax arrives empty at PHP

I have some values selected by checkboxes that I would like to send to be processed in another PHP script. When I send the post via ajax to a page that receives the variable $ _POST and prints it, I only see "Array (0) {}". var objeto = {fl...
asked by 18.02.2016 / 00:36
2
answers

How to get variable js from sucess pro php

How to make the latitude variable work? I have tried this and nothing is appearing! In succession la within a variable latitude works, but outside does not want to function, it is empty. How to pass the variable latitude pro php? I have this cod...
asked by 13.01.2018 / 19:19
3
answers

Ajax opening content without refresh

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" cont...
asked by 28.05.2015 / 20:01
2
answers

Checkbox is not checked

I have an application where a table is loaded dynamically via ajax, and inside the table there is a condition, if the condition is true I have to load a checkbox next to each name that is loaded, but when I load my application and I try to choos...
asked by 27.08.2014 / 21:36
2
answers

Cancel redirection when submitting a form

How can I make anything change after ajax is sent, the page stay in the same place and not load again? script $(function() { $('.form-carro').submit(function(){ $.ajax({ url:'insert.php', type: 'post',...
asked by 18.10.2016 / 21:56
2
answers

How to get JSON from an external url

I'm trying to get a JSON from an external page, I'm using dataType=jsonp , but only that url, returns me a JSON and the following error: / p>    Uncaught SyntaxError: Unexpected token: The JSON returns me the following token: {...
asked by 14.09.2015 / 19:57
1
answer

Pass data via Ajax to the MVC Controller ASP.NET CORE C #

Hello, I'm a beginner in programming, and I'm trying to pass data via Ajax to my Controller, to be honest I'm just studying so I do not know for sure to understand the advantages of Jquery for this ... Following some examples, I did the follow...
asked by 18.11.2018 / 15:41
1
answer

Find data with JSON [closed]

I need to, with a <select> </select> , bring the data to some input[type='text'] . I believe it is through JSON and AJAX, because the page can not have any "Submit". For example: I have a <select> </se...
asked by 05.11.2018 / 15:40