Skip to main content

All Questions

Tagged with
-2 votes
0 answers
49 views

Why does my array fires Error: Call to undefined method stdClass on a function after json encode / decode? [duplicate]

I am working on an object I want to send to another php script via Ajax to perform a function called lire() So to send this object called Caddie, I json_encode it and then in my php script json_decode ...
gael's user avatar
  • 1,419
0 votes
0 answers
28 views

Fill an Array in js file [duplicate]

i use this code to fill reviewArray, but it's not getting filled in the right position. getSuccessOutput(); function getSuccessOutput() { $.ajax({ type: "post", url: '...
albertsmus's user avatar
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],[...
osomanden's user avatar
  • 611
0 votes
0 answers
51 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 ...
Meselhy's user avatar
-2 votes
1 answer
60 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
24 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
35 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
43 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
50 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
109 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
73 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
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
44 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

15 30 50 per page
1
2 3 4 5
145