Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [ajax]

AJAX (Asynchronous JavaScript and XML) is a technique for creating interactive website user interfaces without the traditional web page refresh or reload. It uses asynchronous data exchange between client and server to update displayed information and respond to user interactions seamlessly. Include additional tags for programming languages, libraries, frameworks, web browsers, protocols and other environmental information.

0 votes
0 answers
6 views

Django modal window

I have a modal window for deleting comments. It looks like this: <div id="deleteModal" class="modal"> <div class="modal-content"> <img class=&...
katsuyorii's user avatar
0 votes
0 answers
18 views

Cannot display image with JavaScript from Django Base

I am attempting to get a customer logo to load when a user signs into my app. To do that I am using the views function below to generate the logo url: Views: def view_company_logo(request): print(&...
Doing Things Occasionally's user avatar
0 votes
0 answers
13 views

when export data to pdf using itextcharp libarary it give me empty file downloaded and can't open

I work on asp.net I face issue when export grid view have more than 2000 rows it download empty file pdf without data inside . and when click on file not open and give me file not in correct format ...
ahmed salah abd elaziz elbarba's user avatar
0 votes
1 answer
26 views

AJAX Patch Request returns empty in Laravel Controller

I am trying to update a resource in Laravel sending a PATCH request to my controller. This is my AJAX call $.ajax('profile', { // Replace with your actual endpoint URL type: 'PATCH', ...
SBECK1's user avatar
  • 247
0 votes
0 answers
18 views

Can I be sure that the application/json header is only set on ajax requests?

I need to distinguish browser requests from ajax requests and can see that when making a request via a form submission in regular HTML, I get the following value for the accept header: text/html,...
Oscar R's user avatar
  • 452
0 votes
2 answers
30 views

Htmx on custom events

I'm trying to use htmx triggers and custom events without success. I'm using custom events because I'm going to trigger multiple refresh in a page. My source is very simple, but I cannot make it work: ...
Dario Basset's user avatar
-3 votes
0 answers
26 views

Hi i'm making kuro panel of bgmi mod with pre-built src after deploying my site table id=datatable - Ajax error [closed]

plz help i tried to solve this porblem by chatgpt but not works plz if anybody help me im oppening keys page and it was giving me error = DataTables warning: table id=datatable - Ajax error. For more ...
hunter34's user avatar
0 votes
0 answers
11 views

ASP.NET MVC (blocked:csp) error when running in local

I am getting the (blocked:csp) error in my Chrome browser when my app. I have the headers set up like this: HttpContext.Current.Response.Headers.Add("X-Content-Security-Policy", "...
Wasyster's user avatar
  • 2,447
-2 votes
0 answers
17 views

Données formData envoyées à d'autres routes laravel vide alors que les données sont present pour un route [closed]

Bonjour, j'utilise laravel 10 pour mon projet et je rencontre un problème que je n'arrive pas à comprendre.. J'utilise FormData pour mes données et les envoyé via ajax avec jquery. Les données du ...
Dhakii's user avatar
  • 1
-4 votes
0 answers
21 views

Using ajax and js pop up message is coming undefined [closed]

Pop up message is showing undefined code is correct but I have changed so many times See I want in pop up that message texted successful but when I am refreshing then also it is coming undefined plz ...
darshan jadhav's user avatar
0 votes
0 answers
21 views

Handling long-running async AJAX requests in ASP.NET Core MVC with Bootstrap 4.8 and JS

I have an ASP.NET Core MVC project with HTML Bootstrap 4.8 and JS. Some user requests take longer (like 30 seconds or even more) due to the nature of my business. These are async AJAX requests, and ...
rd1218's user avatar
  • 371
0 votes
0 answers
11 views

CodeIgniter 3: Fatal Error. Uncaught error: Class 'CI_Controller' not found

So this is a kinda old project running CI3 and we're facing this issue. It's very sporadic, it seems like it happens when requesting Ajax routes and the temporary fix testers have found is to "...
Santiago Cuartas Arango's user avatar
0 votes
0 answers
33 views

JQuery - How to append to element during each iteration of a loop

This is a question that seems to have been asked a number of times here by different people using a number of different coding languages, but no one seems to have come up with a clear definitive ...
Graphic Detail's user avatar
1 vote
0 answers
28 views

"AJAX Request Not Working: Listener Indicated Asynchronous Response but Message Channel Closed" Unsure where to go from here [closed]

I'm working on a simple search functionality using jQuery and AJAX. The script is supposed to send a POST request whenever the user types in the search box and display the results in a div below the ...
George N.'s user avatar
0 votes
1 answer
30 views

How properly to integrate part of the JS code of the save button for the output script

Good day. I'm trying to transfer the Opencart module, I've done everything, but I can't integrate part of the JS code of the save button for the output script on the main page. All this works through ...
Den4will's user avatar
2 votes
1 answer
58 views

Clear WooCommerce Custom Fees on shipping method change

I'm implementing some additional fields and fees on the Woocommerce Checkout Page depending on the chosen shipping method. I'm stuck when I try to clear all fees when user changes the chosen shipping ...
user520300's user avatar
  • 1,527
0 votes
0 answers
51 views

TYPO3 object is undefined in the JavaScript file

I am trying to make an Ajax request to the backend, but I get the error Uncaught ReferenceError: TYPO3 is not defined which is caused by this line : const url = TYPO3.settings.ajaxUrls['...
pixilatedDev's user avatar
0 votes
4 answers
55 views

Ajax post call to Controller method keeps saying 400 Bad Request

I am trying to make an Ajax post call to a method in my HomeController but I keep getting 400 Bad Request error. This is the ajax call $.ajax({ url: '/home/findareacode', contentType: '...
Afz's user avatar
  • 77
0 votes
0 answers
25 views

DataTable Column Value as Variable to another DataTable

How can i give a column variable out of a datatable to another datatable ? I have a datatable and if i click a column opens a new datatable with data based of the first datatable. var table1 = new $('#...
x.oli's user avatar
  • 1
0 votes
1 answer
32 views

Uncaught ReferenceError: javascriptFunction is not defined at HTMLAnchorElement.onclick exception

I try to implement a simple calendar in ASP.NET MVC 4. Its aim is to view a day and schedule meetings among different units of an organization. I am getting "Uncaught ReferenceError: GetDayViewJS ...
tahasozgen's user avatar
0 votes
1 answer
30 views

Issues Implementing AJAX Autocomplete in WordPress Admin with Select2

I'm trying to implement an autocomplete feature in my WordPress admin area using Select2 and AJAX. However, I'm having trouble getting the AJAX requests to work correctly. PHP Code to Handle the AJAX ...
Matteo Didonè's user avatar
-2 votes
1 answer
42 views

Ajax is not working without refreshing the page [closed]

Ajax is not working without refreshig the page to make it work.I am coding an ecommerce website in django and need to show quantity of products in the cart but it dont show quantity without refresh ...
Mohi's user avatar
  • 3
0 votes
1 answer
38 views

How to Display Item Quantity Based on Product Selection in Laravel 11?

How to display the quantity of items from the 'item_amount' column when a product name is selected from the 'item_name' selector in Laravel 11, based on the data in the database? Database id ...
Yuda AdyaJudha's user avatar
-3 votes
0 answers
21 views

javascript 403 forbidden wilayah codeigniter 4 [closed]

Mohon bantuannya untuk mengatasi javascript wilayah View: <select name="prov" class="form-control" id="provinsi"> <option value=""><?= $prov ?...
Daarud Dhiyaafah's user avatar
-2 votes
1 answer
53 views

JavaScript Uncaught ReferenceError: jsPDF is not defined at HTMLButtonElement.<anonymous> (id.php?userPhone=123:93:23)

I am trying to create a user ID card web page that displays user information which was received via the backend. I also have to add a button below the id card which allows users to download the ID ...
Unusual Catcher's user avatar
0 votes
0 answers
21 views

Ajax Pagination 404 not found in Wordpress

I create a theme and want to make ajax pagination for my blog page. Actually, from page 1 to 5 its working normally. But why from page 6 to the end of pagination, have 404 not found? If you think, &...
Hendra's user avatar
  • 113
-1 votes
0 answers
40 views

Empty cache and weird first page loads on symfony 7.1

In my symfony 7.1 (php 8.3) application, on the registration page, the first attempt to submit the form always results in a console error message "turbo.index-810f44ef1a202a441e4866b7a4c72d11.js:...
RoZx93's user avatar
  • 1
0 votes
0 answers
23 views

WooCommerce wc_fragment_refresh fragment

I’m trying to figure out how to access the html fragment returned by the min-cart template when retrieved by the WooCommerce wc_fragment_refresh event. The filter function in this solution isn't ...
Rip's user avatar
  • 49
0 votes
0 answers
20 views

accessing html fragment returned by WooCommerce wc_fragment_refresh [duplicate]

I’m trying to figure out how to access the html fragment returned by the min-cart template when retrieved by the WooCommerce wc_fragment_refresh event. I’d like to update several custom attributes in ...
Rip's user avatar
  • 49
-1 votes
0 answers
25 views

Return view from nested classes in ASP.NET MVC for complex json String

My Model is : (Problematic section is Variant[] Variants, that is not passing to controller) public class SingleProduct { public Product1 product { get; set; } } public class Product1 { [...
Samie Ullah's user avatar
0 votes
0 answers
50 views

Menu and submenu with 2 modal in laravel

I have a problem with menu and submenu calling with 2 different modal. I would like when choose in the first menu see the elements of the submenu in another modal. The problem is that I loss the ...
Grazy's user avatar
  • 11
0 votes
0 answers
11 views

ASP.NET controller not receiving input

I have some mock web interface. It is supposed to take a user comment and save it to a json file. Then print the contents of the json in the html. However for some reason my controller is unable to ...
Love Happy's user avatar
-1 votes
1 answer
30 views

Update Dom With Result from Ajax with Action Event Not Working

I'm Developing a Comment Replay System As any Social Media website But Using YII2 Framework I Created Wedget To Show a list of Comments On Some Items ( like products ) Each Comment is With button &...
عماد الصلاحي's user avatar
3 votes
2 answers
65 views

How can I populate Textfield using php ajax in each row of a table upon change of another textfield within the row

I have a javascript where upon click of a button a row with two cells is added to the table. One cell has a livesearch textfield and the another cell has a quantity textfield, whose value suppose to ...
GoodNews Carrier's user avatar
1 vote
0 answers
67 views

Multiple requests being made from a single click

There is a duplicate request issue that affects staff members at our company. I am unable to replicate it in our development environment (or in production for that matter, but I work from home so ...
Antonio Agiste's user avatar
0 votes
0 answers
22 views

resolve ajax failure in codeigniter 3 view page?

in codeigniter 3 view page i have following to edit comments : function toggleEdit(commentId) { console.log("Toggling edit for comment ID:", commentId); var commentText = ...
Solmaz's user avatar
  • 25
0 votes
2 answers
50 views

Post raw HTML data via AJAX to server with ModSecurity

I have a website that uses jQuery ajax $.post to save html data to a PHP script. The data for $.post is serialized textarea form data (where the user edits css, javascript & html). All works well ...
Jsp's user avatar
  • 176
0 votes
0 answers
23 views

javascript and php handling when form submits [duplicate]

Im new to web development, im trying to create a to do list. How to include this javascript function when form submits. I tried doing onClick(addTask(event)) it ignores javascript,page reloads and ...
Les Jetskii's user avatar
-1 votes
0 answers
37 views

Send a form using ajax on ASP.NET Core 8 MVC

I want to implement a form in which there are various types of inputs, such as several text and file type inputs for sending photo, and the information must be sent through ajax and with a model, and ...
Ashkan Amjad's user avatar
1 vote
1 answer
53 views

CodeIgniter and Ajax: Dynamic Dependent Dropdown not working

I'm trying to create a Dynamic Dependent Dropdown via Ajax and CodeIgniter 4. However, I could not make it work. Can you help me figure out what's wrong? I'm trying to follow this tutorial online: ...
cjvdg's user avatar
  • 533
-1 votes
1 answer
37 views

WordPress ajax request with authentication user, pass in custom theme

Title: How to Securely Handle AJAX Authentication in a Custom WordPress Template? Question: Hi everyone, I'm designing a custom template in WordPress that includes a form. When a user submits the form,...
Sanikookalam's user avatar
0 votes
0 answers
17 views

Problema with bootstrapDualListbox and ajax

I have the following: html: <div id="modal-form" class="modal fade" tabindex="-1" aria-hidden="true" style="z-index: 0;"> <div class="...
Javier Mejías's user avatar
0 votes
1 answer
33 views

Properly reload and reformat a Bootstrap Popover after Loading Data with ajax

Let me state first of all that there are a lot of articles out there asking about simply loading an Ajax call's data into a Bootstrap 4.0 popover; this question regards a slightly different topic. The ...
Freerey's user avatar
  • 184
0 votes
2 answers
53 views

Problem in sending data to the controller through Ajax in ASP.NET MVC

I use this foreach: foreach (var item2 in RItem.GetChildItems(item.ID_Ca)) { <div id="@idc" class="accordion-collapse collapse" aria-labelledby="headingTwo2" ...
Hamed Javadi's user avatar
-1 votes
0 answers
19 views

Ajax Jquery append dropdown only populating once [duplicate]

When choosing a state, the user can also filter by city. However, the cities only populate once on their dropdown. All of the data for the new state selection(the cities) is being sent and logged. But ...
Sovereign Vapor's user avatar
0 votes
1 answer
35 views

jQuery Chat - Scroll to the bottom

I have a script that scrolls to the bottom of the messages div when it loads the chat or when a new message is sent. I was checking if the user was already at the bottom of the div because if it is ...
Cezar Duarte's user avatar
0 votes
1 answer
27 views

Wordpress / Elementor How to pass data from one site to another

I have a problem. I have one page that has a slider and a button. On the second page, I would like to read what value the user sent. I tried to do it using cookies and session, but the problem occurs ...
Ownedds's user avatar
  • 27
-1 votes
3 answers
55 views

How to prevent page to scroll on top when user add a comment on post?

i am trying to make website using Laravel 10 and i have added comment option for users so they can leave comment on any post but the problem is when use add comment on post the page scroll to top even ...
my apps's user avatar
-2 votes
0 answers
24 views

how to upload directory of file in Laravel 10 [duplicate]

I would like to know if it is possible to upload a directory containing files in the application laravel. This simply means that I choose the upload file option then I have the possibility of ...
Simon Thiombiano's user avatar
0 votes
0 answers
27 views

Blocked mixed content, HTTP request

please help me - I need to send requests to an API that runs on an insecure HTTP protocol. Unfortunately, I can't use PHP, but I have to use AJAX (the API server runs on localhost), so only a device ...
Kevin Colbert's user avatar

15 30 50 per page