1
vote
1answer
29 views

Filtering a multi-dimensional Knockout observableArray with ko.utils.arrayFilter()

I have an observableArray that looks something like this: this.menuItems = ko.observableArray([ { name: "level1", subItems: [ { name: "level1-1" }, { name: "level1-2" } ] }, ...
0
votes
3answers
43 views

Dynamic JavaScript Variable Name [duplicate]

I get an array like this: var array = [ [ [1,1],[1,2],[1,3] ] , [ [2,2],[3,3],[4,4] ] ] ; I want to seperate the array in two normal arrays and put the content in incrementing independently ...
0
votes
1answer
57 views

Remove specific value from multidimensional array

I have a multidimensional array with an unknown amount of nesting. I just need to remove <span class='highlight'> and </span> from it. How do I do that? My idea was, to create a JSON ...
0
votes
4answers
53 views

Multidimensional arrays. Push and then join

Lets say I have the following, var array1 = ["10", "11"], array2 = ["AAA", "BBB"], result = []; for ( var i = 0; i < array1.length; i++ ) { result.push( [ array1[i], array2[i] ] ); } ...
-4
votes
0answers
48 views

convert fourth dimensionnal array into json string [closed]

I want to stringify a fourth dimensionnal array into json string. Because I want to send this string by POST request to PHP, and after using json_decode PHP function, get the same fourth dimensionnal ...
0
votes
2answers
32 views

How to implement prototype function with 2 dimensional array in javascript?

I need to implement DataTable struct ,that is in c#, in javascript. For example function Servers(name) { this.Name = name; this.Columns = new Array(5); var rows = new Array(3); ...
0
votes
1answer
38 views

Pushing value into a multidimensional array

I have surfed the problem but couldn't get any possible solution .. Let's say i have a var like this var data = [ { 'a':10, 'b':20, 'c':30 ...
1
vote
2answers
45 views

Get the biggest value from a JavaScript multidimensional-array

I have the following variable: response = "['2013-04-20', 10568]", "['2013-04-21', 4566]", "['2013-04-22', 14228]", "['2013-04-23', 5056]", "['2013-04-24', 25837]", "['2013-04-25', 39723]", ...
0
votes
0answers
29 views

convert Array of paths/directories to flare.json-like json

I have an array of nested Directories with there sizes. I need to get them into a json-structure like this to display a 3d.js sunburst-chart. [Or any Object, Nested Array i can work with] My approach ...
0
votes
1answer
44 views

Why is my javascript array empty? [closed]

When I try to alert an array I store Parse query results in, the array is empty. I've tried moving the variables and the alert to different scopes but nothing seems to work. Is the problem with my for ...
0
votes
0answers
30 views

Javascript: Turn an two dimensional array [duplicate]

How do you turn an two dimensional array? In my case I have an array that contains the score a player has on a specific round of the game. I have var results = new Array(); for(var i = ...
5
votes
2answers
49 views

JavaScript - control two-dimensional dynamic array

i want to init a two-dimensional dynamic array in javascript, it don't limit element (maybe) like var dynamic = new Array (); dynamic[] = new Array (); after i want to add value to special array ...
0
votes
2answers
37 views

Google Spreadsheet Script - How to Transpose / Rotate Multi-dimensional Array?

I'm trying to create a function that takes in any array and transpose it so that rows turns to columns and columns to rows. Not sure what I've done wrong or missing but keep getting this message ...
0
votes
2answers
88 views

jquery - Get multidimensional array form input value

I have a search form that have multiple input types and I would like to get the values from the search form whenever user make a changes on the input. The form is like this: <form id="search"> ...
0
votes
1answer
53 views

JavaScript count variables from an array of arrays

I have the following JavaScript syntax: console.log(printClassified(classifyByDayOfWeek(myData))); mySundaysData = new Array(printClassified(classifyByDayOfWeek(myData))); console.log(mySundaysData); ...

1 2 3 4 5 28
15 30 50 per page