All Questions
18,665
questions
1
vote
2
answers
78
views
Getting json data from AJAX in MVC Resource Command (Liferay 7.4)
I am unable to get the JSON data from AJAX in MVC Resource Command because I am getting null value in the request parameter.
I have searched for several Stackoverflow answers to solve the problem, and ...
0
votes
0
answers
28
views
json_encoded array ajax response interpreted as text [closed]
My ajax response seems to be interpreted as text even though the ajax request contains datatype: "json". My understanding is that header line in the php script below should have no effect, ...
-1
votes
0
answers
31
views
How do I use Json response into an event of Ajax request?
Hi i am using the following code to send an ajax request in my application
//dal form utente e password
$("#btn_login").on('click', function(e) {
e.preventDefault();
username = $("#...
1
vote
0
answers
25
views
Laravel AJAX/JSON Redirecting Issue
newbie here...
I'm trying to populate a form and table using json and ajax. The populating of the data seems working but I am being redirected to a black page with the data that I am trying to get.
...
0
votes
0
answers
27
views
JSON format for string
Getting string data from ajax request : result is dates and number of events on specific dates.
[['2012-06-20',13],['2012-06-21',2],['2012-06-22',2],['2012-06-24',1],['2012-07-04',1],['2012-07-05',4],[...
0
votes
0
answers
28
views
How to select a new option from country borders dropdown menu and have it return data for only that option
I have populated a dropdown menu of countries from a local country borders json file using php and Ajax. Everything is populated fine and when a new country is selected the leaflet.js map zooms to the ...
1
vote
1
answer
54
views
CODEIGNITER: I can't input/search any words and not showing the datavalue from my database using select2
Selection of Items/Search of items
I have problem inputting a words i can't input or click in the search box or maybe i have error in my code or in my script.
My View:
<select type="text" ...
0
votes
0
answers
49
views
Get dynamic form inputs as JSON
I have an HTML form with many inputs. After submitting the form I should get these values as JSON format. The challenge here is that the form has dynamic fields that can be increased/decreased during ...
0
votes
0
answers
31
views
Exception of type 'System.OutOfMemoryException' was thrown by fetching large data in ASP.NET ajax webmethod
When I fetch data from Ajax to web method and show in datatable in ASP.NET using C#, at that time it showing a System.OutOfMemoryException error.
Here is my Ajax code:
$("#btnSubmit").click(...
0
votes
1
answer
47
views
AJAX Patch Request returns empty in Laravel Controller [duplicate]
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',
...
0
votes
0
answers
59
views
Why is my AJAX request not working in Node.js and Express project?
I'm trying to make a request using ajax to my backend, but it always returns a 404 error, but my route exists.
Project structure:
public
-scripts
--script.js
routes
-chats.js
views
-chats.ejs
index.js
...
2
votes
1
answer
48
views
response handling in Js/AJAX
I created a function to update data using AJAX. On xhr.onload, this.responseText is not displaying any value in the console log, and only the else part of the condition is executing, even though the ...
0
votes
0
answers
15
views
How do I create an uploda form that reads data from file and outputs that data to the page via AJAX?
I am looking to integrate a feature onto my website that reads the data from a JSON file and then outputs that data, all via AJAX.
A bit of background is that I am creating a specific online tool ...
0
votes
0
answers
29
views
I cant send data from form
i have a problem with sending data to my mail from form.I have a 2 form in my code, one is for "fizickaLica" one is for "pravnaLica". Now i have js code which send data from first ...
-1
votes
1
answer
253
views
Non-null assertions can only be used in TypeScript files.javascript
I've been working on this code base for the past month. And just yesterday, I started facing this problem on a few files. The code is supposed to change the div based on selected options. Here is the ...