220,951 questions
-1 votes
0 answers
44 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(){ ...
-6 votes
0 answers
50 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
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 ...
1 vote
1 answer
85 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
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....
0 votes
2 answers
78 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
48 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
134 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
48 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
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
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
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
28 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["...