0
votes
2answers
24 views

Sum not being displayed in function

I am trying to return a sum from an array and for some reason it's not displaying. I tried various things but for some reason it's not returning the sum of the array. When I call tableSum(sum) from ...
0
votes
3answers
22 views

Sort Array based on Object Attribute - Javascript

I have an array of objects called 'canvasObjects' Each object has an attribute called 'z' I want to sort this array based on objects z. How do I do this using the sort() method?
2
votes
4answers
57 views

Set div id's from array content

I'm trying to figure out how to give 16 different divs the id names that are stored in a 16 elements long array. This is so that I can randomize the divs "placement" for a memory game, since there ...
5
votes
3answers
66 views

Transferring large arrays to the client

I need to transfer a large array of 16 bit integers to a client using an AJAX request to a web service. This array is essentially grey-scale pixel data for an image with some additional meta data. ...
2
votes
6answers
52 views

How to randomly generate numbers without repetition in javascript?

I want to generate each number between 0 to 4 randomly using javascript and each number can appear only once. So I wrote the code: for(var l=0; l<5; l++) { var randomNumber = ...
0
votes
3answers
24 views

store XML in Array [closed]

here is link to i want to convert xml to array http://services.gisgraphy.com/geoloc/search?lat=22.298569900000000000&lng=70.794301799999970000&radius=7000 click on above link its return one ...
0
votes
6answers
31 views

check if array value exist on other array

how can i check if at least one value from the first array exists on the second array?, for example, how can i check if there BMW on car_1 array and car_2 array? var cars_1 = new ...
0
votes
2answers
33 views

executing a function deep within arrays

Hi I seem to be having problems executing a function deep within arrays: var Segments = [Segment_1]; var Segment_1 = { "requirements": { "Dektec": "True", "SSH": "True" }, "requests": ...
-3
votes
2answers
57 views

drop down menu with php array [closed]

I would like to change this menu so that if I choose the second report1 shows the menu that says if there is type1 otherwise go to the third menu with written about1. In all four menus. I think the ...
0
votes
2answers
29 views

IE8 array filter() does not work

I came to know that in IE8 array filter function is not supported. After looking for help on internet I found this - ...
1
vote
2answers
36 views

How to dynamically copy array from php to javascript? [duplicate]

I'm writing code in PHP and HTML for the server side coding of a GPS tracking system. The PHP code will access the coordinates of the GPS from a database. I've found HTML code to display those ...
0
votes
3answers
31 views

Using an array function inside a prompt [duplicate]

I am doing a project for a class in which I have to have a user input names, and then have the program alphabetically sort the names. The code that I've come up with isn't very elegant, but it works ...
0
votes
2answers
47 views

Translate a PHP Array to a javascript array

I'm trying to convert that PHP array : Array ( [1] => Array ( [ID] => 6927 [Town] => Paris [latitude] => 48.867521 ...
0
votes
1answer
50 views

javascript and function to extract array

Currently I have an array "teenused" that contains a'la: "01","01","03","04","05","06","07" I call function grindTeen in my code. http://jsfiddle.net/sbJ9w/ Code and functions are here: function ...
1
vote
3answers
35 views

How to include an Array and a Incrementing Variable into a getElementById Statement?

I am trying to disable dynamically created drop down menu options (depending on the users interaction with other menus options) and I am running into an error stating that "null" is not an object. On ...

1 2 3 4 5 323
15 30 50 per page