Questions tagged as 'ajax'

0
answers

ModelAndView object change with Ajax

@GetMapping("/cadastrarProduto") public ModelAndView cadastrarProduto() { modelAndView = new ModelAndView("pages/index"); addObject("produtoEntity", new ProdutoEntity()); modelAndView; } Is it possible with ajax to change the...
asked by 11.01.2017 / 12:47
1
answer

how to return array pax html via ajax / php

I have the function below in the functions.php files function get_ADRESS(){ if(isset($_POST['getcep']) and $_SERVER['REQUEST_METHOD'] == "POST"){ $cep = escape($_POST['cep']); //10 $cep = preg_replace("/[^0-9]/", "",...
asked by 14.02.2017 / 11:38
1
answer

Doubt with EnableCors asp.net web.api

When you are done releasing an address using EnableCors can you use Route or do you need to change anything? is this correct? [HttpGet] [Route("consulta/BuscaTipoPagamento")] [EnableCors(origins: "http://localhost:50907", headers: "*", methods...
asked by 02.01.2017 / 15:07
1
answer

Ajax access error with friendly url

Viwer.js $(function() { form = $('form[name="atualizar"]'); action = 'swith/controler.php'; form.submit(function(){ var atualizar = $('input[name="enviar"]').val(); $.post('swith/controler.php',{enviar:...
asked by 04.01.2017 / 01:28
0
answers

Serialize does not load after request Ajax

I have a query that brings the result of the database to a table that each line of the result has the option to edit, until there the query and executed normal, after clicking on edit it loads the function SELECIONA_EDITAR_DOCUMENTO , whic...
asked by 29.12.2016 / 13:33
0
answers

Ajax does not receive data in json [closed]

Personal I've created a function with Ajax that should return the posts that are in the database. Ajax requests a PHP script that it responds with a JSON but I get the following message in the browser console    Synchronous XMLHttpRequest sho...
asked by 28.12.2016 / 22:33
2
answers

How to get json data coming from php with javascript

I'm having a question, how do I retrieve values, which are transformed into json, into javascript? I believe it is a more elegant way of communicating both. I'm seeing a lot of gambiarra on the internet. $json_data = array( "dados" =>...
asked by 13.12.2016 / 19:31
0
answers

Sending emails with php and ajax

I'm trying to send email from my page, but it does not return any messages if I succeeded or not, I'm using php along with bootstrapvalidation and ajax to forward the information to my php page. > JS // Contact Form Scri...
asked by 19.01.2017 / 19:22
0
answers

Skip field when selecting ajax result

I have a div that has an "input" that returns the query results via ajax. I need that when selecting one of the results of the user, automatically jump to the next field or give an enter also jump to the next field. But these divs are inside a "...
asked by 07.01.2017 / 17:49
0
answers

Load content into div without having to load page using treeview menu

Next I researched a lot here before asking this question, I have a menu that when I load the content in the div it gets bugged, it opens and closes at the same time after I load the contents in the div. I need some help. Menu: <...
asked by 10.12.2016 / 18:16