0
votes
0answers
24 views

AJAX rearrangement of post display order

I'm not looking for a full walk-through here (although that's quite welcome :p), but if anyone can get me started with a tutorial / article or has suggestions for plugins / libraries, that would help. ...
0
votes
1answer
100 views

How To Get a Key/Value from Associative Array with JQuery

I am setting up an associative array for a Kendo DropDownList. The object returns 33 as the val(). I want to retrieve the name associated with Id 33. How do I assign ProjName the Name key where Id=33? ...
0
votes
1answer
43 views

after json in php i get stdClass and cannot use array

i use JSON.stringify(pageSettings) in jquery to ajax an array to php and save the file. file content: {"MidHeight":367,"BotTop":502} i use json_decode to load it back to array in php: ...
0
votes
3answers
314 views

Create jQuery array from JSON

I want to create an associative array in jQuery using the values returned in a JSON object. The JSON object is dynamically created: ...
0
votes
3answers
196 views

Accessing an associative array using jQuery

I have an associative array here - var dataset = { "person" : [ {"userLabels": ["Name","Role"]}, {"tagNames": ["lName","role"]}, {"tableClass": "width530"}, ...
0
votes
1answer
30 views

Could use some advice on jquery each function on a associative multidimensional array.

I'm working on a jquery .get that will send a value to the server to compare against an array which will then get encoded into a json format as the responses. Below is the code ( jquey and PHP zend). ...
-1
votes
1answer
173 views

How to fetch elements from a text box and store them in an array

Can anybody help me out to store data in an array that are fetched from a text box. I need to design a format so that when space will be pressed it should show a different font color before the space ...
0
votes
2answers
247 views

jQuery submit ajax with multiple arrays

Hi I'm trying to submit a form using ajax inside Validate's submitHandler, also using the Chosen library which beautifies multiple selects. The following works: submitHandler: function(form) { ...
4
votes
4answers
71 views

Differences populating an associtive array trhough $.ajax and $.get/$.post

I tried to populate the global var selectedDates thought the first function but it fails when I try to get some value, as for example, selectedDates['1/23/2013'] After try with $.ajax instead $.get I ...
-1
votes
2answers
337 views

Sort associative array with attributes using javaScript jQuery [closed]

I have this associative array : Arr = { "ID1":{"Attr1":"b","Attr2":"5"}, "ID2":{"Attr1":"d","Attr2":"2"}, "ID3":{"Attr1":"h","Attr2":"8"} } and I want to sort it with the ...
0
votes
2answers
247 views

Jquery creating associative array with dynamic keys and multiple values

Trying to create the following: array( '12345' => 'A01', 'A02', 'A03' '22222' => 'B01', '33333' => 'C01', 'C02') So basically each key is different generated dynamically from another ...
3
votes
2answers
160 views

Adding new element to associative array each click

This is probably very easy, but I just can't figure out how to solve it right now. Each time a submit button is clicked, the function below checks input field 1 (name), and if not empty adds the value ...
0
votes
3answers
133 views

JS/Jquery - if input has any name of an array, return associated value

This is a continuation of a question I asked yesterday, where I asked how to determine if the input matches any portion of an array's element ('sun' & 'sunday' = 'sun'). Here was the solution. ...
0
votes
1answer
373 views

Convert a multidimensional array to single dimensional associative jquery array

How to convert following multidimensional array to single dimensional associative array with minimum loop in Jquery array(array('a'=>3),array('b'=>2),array('c'=>4),array('d'=>3)) ...
1
vote
1answer
595 views

How to convert javascript associative array to json and use later using parseJSON?

Look I want to do this: function MyObject() { this.attr1; this.attr2; this.attr3; } var myArray = new Array(); myArray["a"] = new MyObject(); myArray["b"] = new MyObject(); myArray["c"] = new ...

1 2 3
15 30 50 per page