175 questions from the last 365 days
-1
votes
0
answers
46
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(){
...
0
votes
2
answers
63
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 ...
0
votes
1
answer
88
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....
1
vote
1
answer
53
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 ...
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
71
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
55
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
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["...
0
votes
0
answers
97
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' => '...
-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
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
3
answers
124
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
0
answers
45
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
0
answers
193
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
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 ...
2
votes
2
answers
95
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. ...
0
votes
1
answer
98
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 ...
-3
votes
1
answer
73
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
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 ...
-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
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
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 ...
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
11
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 ...
0
votes
0
answers
26
views
Is "data-val-required" supposed to display message when required validation fails?
The cshtml for my modal dialog has two input forms. When I click on "Submit" the required attributes for the input forms are working since the ajax call is not invoked unless both inputs ...