220,925 questions
-1
votes
0
answers
24
views
HOW TO BE GOOD IN PYTHON [closed]
the solution for code tantraa in python how to resolve the problem for leaving the small code that makes a issue to the program
0
votes
1
answer
44
views
WooCommerce Hook is not firing and seem to be deprecated [duplicate]
I know it's 2025, and this problem seems to be all over the place, and I've been trying all the recommended solutions, but it seems it's mostly old code. But I don't really know; I'll try to sum it up ...
-1
votes
0
answers
53
views
ajax request in django
I implemented the post like feature using ajax in the Django project, but it doesn't work. And it gives a 404 error in the console.
template.html
<script>
$(document).ready(function(){
...
-5
votes
0
answers
58
views
How to Make Book/Check Button Trigger Popup on Page 2+ in Traveler WP Search Results [closed]
I use the Traveler WP theme by ShineThemes. My test site is:
https://experiences.reimagine.link/search-solo/
To increase conversions, I added a Book Now button to every tour listing. The button opens ...
0
votes
2
answers
64
views
My Ajax web method call in C# keeps showing an error: "401 Unauthorized"
I'm trying to call a simple static WebMethod in my ASP.NET Webforms page using jQuery Ajax, but it doesn't seem to be working. I've tried enabling anonymous authentication and other fixes suggested ...
1
vote
1
answer
91
views
getting a 400 error with wordpress ajax call and I don't know why
I know this has been asked 1000 times already, but I'm not seeing anything wrong in my code and am still getting a 400 error (XHR).
Here is the code from my plugin:
require_once( plugin_dir_path( ...
0
votes
1
answer
95
views
Downloading file via ajax throws security error in browser in Preact web app
I'm trying to rewrite an old HTML and plain JS frontend project using Vite and Preact. I created the project as suggested in the Getting Started docs via:
npm init preact
The basics seem to work fine....
0
votes
2
answers
81
views
Correct Report not selecting date on Calendar change
I have an .aspx web form. When Ajax Calendar is changed, I'm not being able to capture date since there is no Selection_changed event firing. I tried to fire one, but that is also not working. Not ...
1
vote
1
answer
54
views
How to prevent RxJS to stop pipeline execution on the first exception
I'm trying to make 3 sequential GET requests using RxJS ajax operator. If one of the ajax requests throws an error(404 status code, for example), the rest won't execute. Is it possible pipeline to ...
1
vote
0
answers
135
views
Send array of objects to .NET controller action
I am trying to pass a javascript array of objects to a .NET controller action List<> parameter. Below is my C#
public bool ImportACE([FromBody] List<Element> elements)
{
foreach(...
0
votes
4
answers
65
views
How do I make a jQuery form fire success and failure code?
I am trying to use a javascript form to submit data to a server I control. The form works great and the data is submitted to the server, but I can't get the javascript success and fail subroutines to ...
0
votes
1
answer
52
views
Browser back button exits Single Page App despite pushState() on Chrome only
I’m working on a legacy single-page application that uses AJAX to load different internal views. After recent browser updates the Browser Back Button stopped behaving as expected.
The current problem:
...
0
votes
1
answer
72
views
How to dynamically switch products in a Dawn theme collection section on tab click?
I have a Featured Collection section in the Dawn theme. I want to add tabs like “Boy Shirt”, “Boy Pants” and dynamically load products when clicking a tab without refreshing the page. I tried using ...
0
votes
0
answers
49
views
Custom Wordpress login modal with AJAX - logging in works but then any attempt to access /wp-admin causes a redirect to 'SITE_URL/home'
I have created a custom login modal for my wordpress site. In seems to be working on the surface, as in it logs in correctly, the admin bar appears at the top on page refresh and I'm able to access ...
0
votes
0
answers
59
views
Laravel session lifetime on recursive ajax
I'm using laravel 8 with SESSION_DRIVER=file
I have code that run like below, and I have a problem why the recursive not extending the expired time of session?
Each process take 30sec, but after ...
0
votes
0
answers
32
views
Rewritten URLs seems to conflict with preload animation. ISAPI rewrite or window.onload problem?
I am getting crazy about this issue that I can not figure out. I have these two URLs, the first one is a dirty one the second is a Helicon ISAPI 3 rewritten, nice URL.
http://nova.exclusive-immo.hu/...
0
votes
0
answers
132
views
How to prevent exposing real data in AJAX response (SSR vs CSR) and instead return opaque tokens?
I’m comparing two ways of rendering HTML structures with data from PHP + MySQL.
Option 1: SSR (Server-Side Rendering)
PHP builds the HTML and returns it directly:
PHP:
else if(isset($_POST["...
-2
votes
1
answer
109
views
Why does curl return a 400 Bad Request even though the same AJAX request works in the browser? [closed]
I’m trying to replicate a browser AJAX request using PHP’s curl, but the server always responds with HTTP 400 Bad Request.
Here’s my current code:
$headers = [
"Accept : application/json, ...
0
votes
0
answers
102
views
Wordpress get_posts() issue via ajax
I have the following issue:
I run the following query:
$interventii = get_posts( array(
'post_status' => 'publish',
'post_type' => '...
-3
votes
1
answer
235
views
Setting SESSION data in a CURL request
I have a PHP script to be used as an Ajax responder, which I want to remember a previous call. I thought that it should be able to remember using $_SESSION data.
I’ve simplified it down to a pair of ...
-1
votes
2
answers
117
views
AJAX file upload request will not end [closed]
I am trying to upload an image to the server but the request will not end. In DevTools, the request shows as pending while, in the backend, php is continuously writing to an ever growing file until I ...
-1
votes
1
answer
140
views
Results from AJAX/PHP call aren't showing when Submit button clicked [closed]
I'm struggling to figure out why my results data isn't showing on my webpage from the AJAX/PHP call. I'm pretty sure it's something to do with the coding in the HTML and the way I am trying to pull ...
-1
votes
1
answer
133
views
Reload page after mysql input in different folder and file [closed]
Hello i am bit struggling to find the solution or there is other effective way to do it, so here is the case, i have file named display.php in display folder, then i have add_data.php in kas folder, ...
0
votes
2
answers
116
views
Bootstrap DataTables Arabic Search Not Working (English Search Works Fine) [closed]
I'm currently using Bootstrap DataTables on the front end with JavaScript and AJAX to fetch data from a Spring Boot backend.
The table loads correctly and searching in English works as expected. ...
0
votes
3
answers
125
views
live commenting system with laravel and ajax
I want to implement a live commenting system for each post of my project
this is my view
@extends('layouts.main')
@section('content')
<p>{{ $post->title }}</p> // there is nothing ...
1
vote
1
answer
75
views
On passing json stringify data to controller method shows null
I am trying to post my form data using ajax. I am serializing the form data before posting. But at the controller method, it shows null. There is no problem with the form data because I can pass data ...
1
vote
0
answers
48
views
How to update and render Bokeh plots immediately, without reloading, using AJAX JS?
So I am working on a dashboard in which there are bunch of KPIs and Graphs. The dashboard have filters that when applied, filter whole dashboard. Before I was totally reloading the page and every ...
0
votes
4
answers
180
views
Passing parameter to route function from ajax
I am trying to call a controller method using ajax. But I do not know how to do it? I have tried several ways but can not find the right one.
My controller method::
use App\Http\Controllers\Controller;...
0
votes
0
answers
204
views
Why when using Symfony UX and Forms I get INVALID CSRF TOKEN?
I have a question regarding Symfony UX Live Components and forms.
Context:
Imagine you have a Parent Component and a nested Child Component. Both are Live Components and both include Symfony FORMS (...
0
votes
1
answer
85
views
How to send model and some other parameters from javascript to controller using jquery.ajax?
I have an ASP.NET Core MVC project and I am trying to send a model and some other parameter from JavaScript to a controller action. First I fill the model from view fields whose names match the model ...
0
votes
0
answers
26
views
Javascript Function Returns Null in ByRef Argument But Response has Value inside the function [duplicate]
The console.log(oResponse); of oResponse in the function mGetLookUpTableArray writes the information of the json_encoded object in the console log. There is data from the database in the oResponse ...
0
votes
3
answers
84
views
Ajax/JSON Call to PHP Script is Failing To Populate on the Client Side (DB Call is Working)
I have a bare bones AJAX script that calls a PHP page to retrieve data from the database. The database call is definitely working. I am getting the below error in the console which seems to indicate ...
2
votes
2
answers
99
views
Ajax POST returns undefined from ASP.NET Core Web API with no errors
In my ASP.NET Core MVC web app project, I'm sending a POST request to an external API using HttpClient. Everything seems to be working correctly, but on the JavaScript side, the response is undefined. ...
1
vote
1
answer
58
views
OpenCart 4.x: AJAX request returns "Invalid token session" despite valid user_token
I'm developing a custom OpenCart 4.x module that adds a button to the order page to log order data via AJAX. The button makes a GET request to my custom controller, but I'm getting an "Invalid ...
0
votes
1
answer
100
views
Disable and enable button in oracle apex
I have a button which uses DA and executes the server side code... when there is a low network user clicks the button multiple times which cause duplicate entry... I want to disable when user clicks ...
0
votes
1
answer
74
views
Progress bar display issue with setinterval
I have a jQuery script that makes an Ajax call to a PHP file (process.php) to retrieve the status of a database (The upload.php and import.php parts are working fine and not relevant here I would say),...
-3
votes
1
answer
75
views
Update Current Time Automatically And Update Database via ajax php mysql after video fully watched [closed]
Currently I am using following code to check video is fully watched or not.(Code is borrowed from This Stackoverflow Question)
I want to record the total watch time where it should be updated per ...
0
votes
0
answers
41
views
Why the ”[_]” apear en the last ítem array data section Ajax Jquery? [duplicate]
I build an array key:value pair for data section in ajax jquery, when read the request in php, I read all ítems but the last have [_]=>random_number, I set cache:false, whats is wrong?.
How can I ...
0
votes
2
answers
109
views
How can I make the form fill with its corresponding information from the database when it's displayed?
I have a local project in which I edit the fields inserted in the database through a form, and the information should appear in the form because in DevTools > Network, the status shows that the ...
0
votes
2
answers
59
views
access form data in controller via request variable
I have a form modal and I am trying to send data using ajax post method to the controller method 'store' via my blade file.
//// temp.blade.php file
<script type="text/javascript">...
-4
votes
1
answer
62
views
Undefined results after successful Ajax call [duplicate]
I have a basic jQuery page that I am trying to figure out. The Ajax function on line 38 is supposed to return results from a table in the database called activity.
function gethtml(result)
{
let x=`...
1
vote
1
answer
83
views
Sending Laravel form with dynamically added fields with AJAX, Undefined parameters
I have a form in Laravel where I use Ajax to dynamically create options in the selects, based on previous filled information. I am very new to Ajax, so maybe I understand the concept wrong.
Below the ...
1
vote
0
answers
51
views
Embed a multi-step form which interacts with an iframe
I would like anyone who are experienced with drupal and ajax api can point me at the right direction.
I am very new to drupal and have to implement this without using any contributed module.
I tried ...
0
votes
1
answer
65
views
Unknown web method IsLocked. Parameter name: methodName
An Ajax call to a web method is failing with the error Unknown web method IsLocked. Parameter name: methodName. My method code is:
<WebMethod>
Public Function IsLocked(ByVal pCompany As String, ...
0
votes
1
answer
79
views
ASP.NET Core POST endpoint returns null DTO from jQuery but works fine from Postman
I have an ASP.NET Core Web API endpoint that receives all null values when called from jQuery/browser, but works perfectly when called from Postman with the exact same JSON payload.
The Problem
When I ...
1
vote
1
answer
51
views
multiple data doesnt deleted from table using Ajax in wordpress
I was define following script for deleting multiple data. Please check the attached image. I will select multiple title and click deleted title button data will be deleted. I checked the log there is ...
0
votes
1
answer
87
views
Using the AJAX WordPress Plugin to change values on a DIV container
I am working on a simple AJAX WordPress plugin. The plugin needs to make a call and then pass the results using AJAX.
Here is my function in JavaScript:
function courseGradeHistory(student_id) {
/...
0
votes
0
answers
44
views
HTML form and AJAX (Link checkbox to hidden field)
I have a HTML from.
<input type="checkbox" class="checkit" id="10" name="Tid" value="10">
<input type="hidden" id="23" ...
0
votes
0
answers
15
views
How to debounce an AJAX search input in custom Gutenberg block using React hooks?
I created a custom post type portfolio and called apiFetch inside the edit() method of the block to try and get data from /wp-json/wp/v2/portfolio. However, I only get empty reply or unauthorized ...
2
votes
1
answer
106
views
How do I change the array values by getting multiple selected checkbox values?
I am try to use Ajax to Post value of an array at a time sequentially. There is working if the array values are fixed.But it is not working if the values are variable.
How could I change the array ...