It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Array" Watch "Array" New topic
Author

Array

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi,

I have php array like this

Array
(
[0] => stdClass Object
(
[Name] => abc
[Filter] => any
)

[1] => stdClass Object
(
[Name] => xyz
[Filter] => clean
)
)

I have assigned this array to javascript object . Now I want to iterate through javascript array.

I want to retrieve value of Filter from the array by comparing name with some value.

I dont know how to iterate over such array.

Please help.

Thanks


~ Anand,
SCJP 1.5, SCWCD 1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

I cannot tell from your example what the structure of the array is. Could you do better?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array
 
Similar Threads
Dropdown populates other fields
Iterating over Map using JSTL
access variable of a s:select (struts2)
After upgrading from 2.0.x to 2.2.x, static content no longer loads
how i get selected list data