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

All Questions

Tagged with
-2 votes
1 answer
57 views

What is the 'elegant' way to update name/age pairs in a website with javascript, and json? [closed]

I've got a server that hosts a website and collects data. Though it is actually Energy/power data in home automation, I will make the question more clear with name:age pairs: Suppose I have a Json ...
Arjen's user avatar
  • 17
0 votes
0 answers
23 views

Capturing data from AJAX-loaded modals using jQuery and JavaScript, encountering issues with capturing data from previous modals when opening new ones

I have a modal where I use AJAX with jQuery and JavaScript to make a GET request and display some data. Within this modal, there's a button that, when clicked, captures some data. I've added a console....
Letícia Helena's user avatar
0 votes
0 answers
30 views

How to bind a listview using javascript or jquery

Application used to bind a list view in nav bar from code behind but Im trying to bind it from client side after fetching data using Ajax on page load. I got the data on client side but not sure how ...
JoySJ's user avatar
  • 1
1 vote
0 answers
41 views

Form only sends a max of nine dynamic rows

I have a PHP file that is supposed to send a complex form to an email via the PEAR Mail package using an SMTP connection. the form has a normal (HTML) form and a dynamic one (using JS). The dynamic ...
Septimiu Balica's user avatar
0 votes
0 answers
33 views

sending mutiple arrays with ajax and updating SQL from sortable connected lists

I have been struggling with sending 3 arrays to a PHP update script with ajax. The goal is to have three lists on the page (employee, manager, admn) and when the user drags an item from one list to ...
digerati's user avatar
-1 votes
1 answer
48 views

send data from form with $('#frmadata').serializeArray return raw html code

My problem is about sending data from element input form with ajax [ serializeArray() ], but no luck because the parse_str() always retun NULL value , but actualy the data are existed so I am new ...
palsud4's user avatar
  • 13
0 votes
0 answers
98 views

Uncaught RangeError: Invalid array length in ASP.NET AJAX - How to Resolve?

I'm facing a tough problem with my ASP.NET web app that uses AJAX. When I press the submit button on my webpage, I'm getting an error that says "Uncaught RangeError: Invalid array length." ...
Snooper_A's user avatar
  • 125
0 votes
0 answers
71 views

Why do the elements in my array become undefined when I access them?

I have an array full of video objects. When I print them to the console, there are 30 elements - each an expected video object with the appropriate information. However, when I try to print an ...
Anslean's user avatar
  • 41
0 votes
1 answer
47 views

passing values in array in controller but only first array value is getting

Here , i am passing array through AJAX and in controller i am writing a loop for get all values but only first array value is getting This is my response array code which is showing after dd($request-&...
Meera's user avatar
  • 41
-1 votes
1 answer
56 views

Convert json text to PHP array for datatables childrow example [duplicate]

I am referencing this Data tables example https://datatables.net/examples/api/row_details.html and trying to use PHP to generate the AJAX as used on the example. Here is a snippet of the raw json code....
macca4244's user avatar
0 votes
0 answers
44 views

.filter() returns an empty array but array of objects is full before [duplicate]

I am trying to extract data from JSON file and then filter it, but after .filter() I get an empty array. This is just one object in my JSON file: { "products": [{ "id": ...
ostrictTurtle's user avatar
0 votes
1 answer
41 views

How to pass array into controller in laravel using ajax

I just need to know how to pass a array using ajax into a laravel controller and save those data in DB. I tried serveral ways. but the serve respond is Object { error: "No data received"}. ...
Samitha Ruwan's user avatar
1 vote
1 answer
32 views

How do I collect objects being sent in from another function in Javascript?

I have a function, let's call it GetData(). I am pulling in data from a query in another function and running an ajax call to populate the data. Once that happens I then send to another function, let'...
E0132630's user avatar
0 votes
1 answer
49 views

JAVASCRIPT How to create Multi-dimensional array in format for ajax post

I need help with this js code that needs to create a Multi-dimensional js array in format which later to be sent via ajax. From the table below I need to collect the following information for the ...
Europeuser's user avatar
-1 votes
2 answers
52 views

How to created a nested array of objects using javascript Loop? [closed]

I need to loop an AJAX response and then create an array like this: "2023-03-30": {"number": '', "url": ""}, "2023-03-30": {"number": '', &...
drago's user avatar
  • 1,272

15 30 50 per page
1
2 3 4 5
145