Questions tagged as 'ajax'

1
answer

Header location of php is inserting file instead of redirect

When I log in to my form, after checking if the user is valid there should be a redirection to the home page. However, when using header('location: home.php'); , the contents of the home.php page are being inserted in the login page. I'm u...
asked by 31.12.2017 / 02:06
1
answer

Ajax Request with Laravel 5.4

I'm trying to make an example request Ajax with Laravel 5.4 . The test example is simple, just enter a numeric value in a input=text field in my View and exits the field to send to Controller , then add + 10 to that...
asked by 30.12.2017 / 22:11
1
answer

Deleting records marked with checkbox

I wanted to be able to delete multiple records from a table just by selecting the records using checkbox , same as Gmail, I select the emails that I want to delete or mark as read. Because when I need to delete some registry I still have t...
asked by 19.10.2017 / 14:28
2
answers

Error in request Delete in Spring: console indicates that method is not supported

I am making a request via Ajax to delete a user and I get the message that the delete method is not supported, does anyone have any idea what it could be? My controller: package com.br.livraria.controller; import javax.servlet.http.HttpServ...
asked by 25.10.2017 / 14:53
1
answer

Define variables to call a function

I'm trying to include variables to call a function, but I'm not getting it function Geral() { xmlHttp=GetXmlHttpObject(); var url="pagina.asp?a=1"; xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xm...
asked by 26.10.2017 / 17:43
2
answers

How to execute a function in ajax when opening the page?

I have the following function in Ajax: $.ajax({ type: "POST", url: "tra.php", data: {}, dataType: 'json', suceess: function(Last) { line.originalData[0].push(Last); line.originalData[0].shift();...
asked by 31.10.2017 / 23:49
1
answer

Ajax sending _POST without max character

In this ajax the post sends more than 1000 caracters: $.ajax({ url: 'inserir.php', type: 'POST', data: { inseason: document.getElementById('comment').value }, success: function(result) {...
asked by 11.11.2017 / 20:12
2
answers

Array of objects in ajax with mvc

I have a function that takes the variables from a list, creates the objects, and inserts into a list of objects. But I need to pass this list to the mvc driver; jquery function $(function() { jQuery.ajaxSettings.traditional = true; $("#save...
asked by 23.06.2017 / 19:23
2
answers

Pass the search input to another file

I'm doing a car registration project, it's almost at the end, but by altering the style file a bit and tinkering with the list to leave AJAX without refresh a bug strange happened, I've already tried several ways to solve : input w...
asked by 26.07.2017 / 14:55
1
answer

How to show result via ajax and jquery without refresh on page

I tried to implement an Ajax call on a project and I can not identify the error. I have a form for posting status and I would like it as soon as I post something it does not refresh on the page and rather it shows the result, then in a div. I...
asked by 16.07.2017 / 08:03