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.

ajax
0 votes
1 answer
24 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', ...
4 votes
2 answers
17k views

How can I load cross domain html page with jQuery AJAX?

How can I load cross domain HTML page with jQuery AJAX? Suppose I want to get a page outside my domain using jQuery AJAX: $.get('http://www.domain.com/mypage.html', function(data) { alert(data); })...
0 votes
0 answers
13 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(&...
0 votes
2 answers
13k views

How to send data to spring boot method using FETCH API

I am exploring fetch api and want to send some for date to a spring boot method, but it is throwing 400 error JS code let fetchConfig = { method : params.method || 'GET', ...
2 votes
2 answers
1k views

How is the best way to return an error to ajax request?

When one WebMethod it's called from ajax, if I return a simple string, the ajax code go to success method without errors, something like this: [WebMethod] [ScriptMethod(ResponseFormat = ...
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 ...
6 votes
3 answers
2k views

using jQuery AJAX to post JSON to a CFC

I'm trying to use Jquery/AJAX/JSON with a CFC to send an email (easy right?) After spending many hours trying to find one complete example of how this should work, I'm getting close but am stuck on ...
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,...
2 votes
3 answers
20k views

Check if username exists in database with codeigniter and ajax

Can anyone help me check if a username is in my database using ajax and code igniter? I can't use the form_validation method as I have modal windows which interfere with the checking. Currently my ...
0 votes
2 answers
29 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: ...
0 votes
0 answers
25 views

How to display large PHP array as information is loaded [duplicate]

I have a PHP file that scrapes pages and provides output. However, because scraping sometimes takes a little bit of time, the page takes a while to load. How could I print the contents of a page as it ...
-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 ...
0 votes
2 answers
448 views

Scrape product details from samsclub.com [closed]

I'm scraping data from SamsClub.com using PHP $res = file_get_contents('http://www.samsclub.com/sams/bath-towel-apple-gr-100-cotton/prod10450797.ip'); I have create function using PHP explode to ...
1 vote
5 answers
8k views

405 Ajax POST error

So basically my main html page has 3 button with each of them having a different background image linked to it. I'm trying to pass down the source of this image through ajax post to my Php file to ...
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", "...

15 30 50 per page
1
2 3 4 5
14796