Skip to main content

All Questions

Tagged with
24,059 questions with no upvoted or accepted answers
10 votes
3 answers
528 views

Prevent infinite AJAX loop when using own API

I am currently trying to figure out integration between 2 Wordpress plugins: the WooCommerce Follow Up Emails plugin, and the Ninja Forms plugin (with the end goal that we can send a manual-type ...
Chris O'Kelly's user avatar
8 votes
1 answer
943 views

How do I do WebRTC signaling using AJAX and PHP?

I'm new to WebRTC and I don't understand how the signaling works on the server side. I know the request must be two-way. I'm able to send an offer to a PHP page but from there I'm stuck.. How does the ...
PhilipKim's user avatar
  • 109
8 votes
2 answers
5k views

Upload multiple files directly to AWS S3 bucket from browser with PHP

I need to make a web form capable of uploading multiple files directly to my AWS S3 bucket from browser with PHP. I came across this nice solution for single file uploads (https://www.sanwebe.com/...
Acidon's user avatar
  • 1,334
8 votes
3 answers
17k views

Upload files via jquery $.post

For send ajax form i use this code : <input type="file" class="file_1" id="file" /> note : not use "FORM" tag My jQuery code : var file = $('#file').val(); $.post('form.php', {file:file}, ...
Mohammad's user avatar
  • 179
6 votes
1 answer
2k views

Load the Latest Posts by Category in a div via WordPress Menu using ajax

I want my index.php with a horizontal list of category names on the top and when i click on any category name, it would display latest 10 posts in index page on specific div container without ...
gul rathod's user avatar
6 votes
1 answer
581 views

Laravel timeout on auth login

Laravel 5.3 - My goal is to send login form via ajax to login controller (AuthenticatesUsers trait), and to get a response (json would be ok), so i could set timeout before redirect to "dashboard" ...
Denis Solakovic's user avatar
6 votes
2 answers
2k views

how to pass hindi fonts from clients to server using ajax request

I am using ajax request to send a value from client side to server side to insert in mysql database using ajax request. The value is in hindi language (हिन्दी मतलब जाने). But on client side when i ...
Kushagra Singh Rajput's user avatar
6 votes
1 answer
4k views

Upload files with ajax and Symfony2

I've problem with upload file from form to Symfony2 controller by ajax. This is my form by client side: var uploadFile = function() { var content = "<form id='uploadFile' enctype='multipart/form-...
math's user avatar
  • 81
6 votes
1 answer
9k views

"Reload the page to get source for ..." in AJAX

I am using ajax for an auto-complete field, initially it was working but recently it has broken. I have checked the firebug, initially i used to get the JSON array with data for auto-completion, but ...
Dmytro Zarezenko's user avatar
5 votes
0 answers
944 views

Blocked by CORS policy: Request had a target IP address space of `unknown`

Happening only in chrome. Working fine with other browsers e.i Firefox, Edge, etc. Access to XMLHttpRequest at 'https://www.example.com/ajax-file.php' from origin 'https://www.example.com' has been ...
Mhandzkie's user avatar
  • 209
5 votes
0 answers
2k views

How can I make the WooCommerce "Add to cart" button switch to a quantity increment button when clicked?

I would to like modify the WooCommerce "Add to cart" button behavior as follows: When the "Add to cart" button is clicked, the selected item is added to the cart and the button changes to a quantity ...
bumblebee-bee's user avatar
5 votes
1 answer
1k views

add action woocommerce_add_to_cart breaks websites original add to cart functionality

I built a node express API and have it listening for post requests coming from the woocommerce_add_to_cart webhook, but the payload from that is essentially worthless. body:{ action: '...
Yale Newman's user avatar
  • 1,221
5 votes
0 answers
1k views

Laravel CSRF across subdomains, AJAX JS

I seem to have an issue with CSRF protection when making a request from subdomain to my domain. I've set up CORS, but preflight check fails. I've set up in my main head <meta name="csrf-token" ...
Norgul's user avatar
  • 4,753
5 votes
3 answers
5k views

Wordpress and Ajax form submission

I'm totally lost here. Can anyone check what is going wrong with the form I'm trying to create here? It should send data with Ajax in WP custom theme without storying anything in the DB. The console ...
zametsv's user avatar
  • 77
5 votes
1 answer
347 views

Laravel 5 and weird bug: curly braces on back

Whenever I go back in history on my Laravel website, the response I see is this: {} When I go forward to where I was before that, it shows those braces as well. The problem doesn't occur if I ...
Robo Robok's user avatar
  • 22.5k

15 30 50 per page
1
2 3 4 5
1604