W
Ward
Hi,
A have an array of objects defined like this:
var collegas =
[{smtp:'(e-mail address removed)',voornaam:'Alberic',famnaam:'Verhelst'},
{smtp:'(e-mail address removed)',voornaam:'Anita',famnaam:'Dierens'}, etc
I iterate over this array with this code :
for (var i = 0, stop=collegas.length ; i < stop ; i++) {
for (var veld in collegas) {
etc
I would like to check whether a particular veld instance's name is smtp. In
code what I want is this :
if (veld.fieldName=="smtp") { do something ...
But this syntax doesn't work.
Any help much appreciated.
Ward
A have an array of objects defined like this:
var collegas =
[{smtp:'(e-mail address removed)',voornaam:'Alberic',famnaam:'Verhelst'},
{smtp:'(e-mail address removed)',voornaam:'Anita',famnaam:'Dierens'}, etc
I iterate over this array with this code :
for (var i = 0, stop=collegas.length ; i < stop ; i++) {
for (var veld in collegas) {
etc
I would like to check whether a particular veld instance's name is smtp. In
code what I want is this :
if (veld.fieldName=="smtp") { do something ...
But this syntax doesn't work.
Any help much appreciated.
Ward