3
votes
1answer
30 views

Redistribute a range of percentages according to a minimum value, while keeping relative proportions

FIDDLE HERE: http://jsfiddle.net/jakelauer/5S8t8/ What I need to do Loop through a range of percentages, which add up to 100%, and set any values that fall below a minimum threshold to a certain ...
0
votes
1answer
25 views

javascript to php and viceversa communicate

I am trying to write a plug-in for firefox which would fetch all the domains from the links of the current site and display their IP addresses. for that I have written js code containing "domians". ...
1
vote
4answers
46 views

php javascript html, why doesn't this work?

here is my code. I am trying to connect to my database and make a "joke of the day", so everyday it will show a different joke. I've looked through my code several times and can't find out why it's ...
0
votes
2answers
39 views

Assign javascript array to style another array

Might be a question with a simple answer, but I can't find it. Is there a simpler way to do this: $('#' + array_with_ID[0]).css('width', array_with_px_value[0] + 'px'); $('#' + ...
0
votes
1answer
62 views

How to sort array of objects in jQuery

I have an array in this way { 1="Металлургия и производство готовых металлических продуктов", 2="Химическая промышленность", 3="Альтернативная энергетика", 4="Транспортная ...
0
votes
3answers
46 views

How to convert this array of strings to array object

I ma having this string returned from my C# code. I need to implement Google Maps. How d i convert this into array. String var array = [["Andover - Wyevale Garden Centre","Concession A","Andover ...
0
votes
1answer
22 views

Filter array item having max in javascript

My taxDetails object is carrying tax details. Let's assume, it holds following data as for now. taxDetails [0] => name: praveen amount: 100 [1]=> name: john amount: 125 ...
0
votes
2answers
35 views

Value returned and pushed into array but not available outside return

I have an Angular service that returns a value. I push that value into an array and console.log shows the value was indeed pushed. But outside this callback the array does not show the pushed value. ...
0
votes
1answer
24 views

Unexpected value change in 2D array in JavaScript

I'm trying to modify one value in a 2D array. However I'm finding some weird behavior based on how the array is constructed. The only difference between matrix and matrix2 is how they're constructed. ...
-1
votes
3answers
48 views

Convert columns to rows in javascript

I have read this To swap rows with columns of matrix in javascript (or jquery) However, it did not work for me (because I still stupi). There are numbers of arrays each as individual colum like that: ...
0
votes
1answer
31 views

Javascript using variable as multiple array index

i have this code below, but doesn't work. how i can set a variable as a multiple array index? var tamanho = $(this).html(); var tamanhoNormal = { 'P' : {'A' : 67,'L' : 50}, ...
-3
votes
4answers
56 views

Need to concatenate strings from two arrays [duplicate]

I have two jQuery variables. Each variable is a text string containing words separated by a comma. var myFirstVariable = green,blue var mySecondVariable = circle,triangle I would like to have a ...
0
votes
5answers
104 views

An array of arrays confusion

I'm trying to display the levels I'll have using this code... levelArray[0] = ["player", "empty", "empty", "empty", "wall", "wall", "empty", "empty", "wall", "wall", "empty", "empty", ...
0
votes
2answers
18 views

trouble referencing JSON array

I am still new to JSON so I have a probably very stupid question. How do I reference list.data[0].bom-item.descriptor? The alert statement I created didn't work for me. Thanks for help. var ...
0
votes
1answer
37 views

Returning an array and storing into another array, creating a multidimensional array

EDIT: I've tried to implemented the solution, but it still doesn't work. Sorry i'm a programming idiot. Thanks for the link to the page. In my first function databaseBOscreens i am attempting to ...

1 2 3 4 5 403
15 30 50 per page