Questions tagged as 'ajax'

0
answers

Send form to two locations and redirect

I need the script to send my form to two locations and after sending it to the response page. <script type="text/javascript"> function EnviaForm2() { document.getElementById('formnewsletter').action = 'https://docs.google.com/...
asked by 24.09.2017 / 04:42
1
answer

Ajax data - Paging

I've been studying jquery documentation and about ajax. I'm trying to understand how ajax and php requests work. I'm trying to turn a normal paging into ajax paging. More specifically, I use ajax data and work with it on the server....
asked by 12.09.2017 / 02:43
1
answer

Add to cart with Ajax without updating page - Laravel

Hello, I'm trying to use Ajax in a form to add products to the cart without refreshing the page but I can not if someone can help me. I'm using Laravel 5.3 based on this site : HTML <form id="form_ideal" action="/cart/add" method="po...
asked by 11.09.2017 / 22:42
0
answers

"Uncaught SyntaxError: Unexpected token:" and "Access-Control-Allow-Origin"

Personally I'm trying to do a MailChimp integration, but I'm having problems with this error: 1 - Access-Control-Allow-Origin 2 - Uncaught SyntaxError: Unexpected token: I can not find the problem. Can you help me? For the "Access-Contr...
asked by 11.09.2017 / 21:02
1
answer

Verify that the user is logged in

I would like to do a check to know if the user is logged in, I am trying to pass this to an ajax request, but I am not succeeding. PHP function that checks whether it is logged in public function verificalogin(){ umask(0);...
asked by 11.09.2017 / 18:11
2
answers

Reload with Jquery without cache (Chrome)

I do not really know if the problem is the cache or the script I made or the server I'm using, but come on. I am using this code to upload a document to the server (I have not yet evaluated security and performance issues). if($("#add-d...
asked by 11.09.2017 / 16:11
1
answer

Problem in AJAX query in a loop

I have a view that has several pie charts, using the D3 plugin. Each chart should display different data. With PHP I make a foreach on the screen, creating the div where the graph will be displayed, each with a specific id . Then with J...
asked by 12.09.2017 / 16:10
1
answer

Error after 100 AJAX requests

I have the function below that makes a request every second to the MySQL database and updates a DIV on the page. But after more or less 100 requests the "I ACHIEVE" database blocks and returns "An error occurred in the ajax request". What could...
asked by 03.09.2017 / 02:59
1
answer

Ajax stacking requisitions

I have a web page that displays a list of people registered in my DB. Each name is a hyperlink that, when clicked, an Ajax function opens a modal containing information specific to the person and leaves the radio buttons selected according to th...
asked by 30.08.2017 / 21:16
1
answer

Execution of setTimeout with replaceWith

I have the following code that executes a query in DB with ajax. So when in success I add append instead of replaceWith, the function works perfectly and runs every 5 seconds, but when I insert replaceWith instead of append, the function only ex...
asked by 29.08.2017 / 17:13