HighDots Forums  

Re: lunghezza array

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss Re: lunghezza array in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
HyP
 
Posts: n/a

Default Re: lunghezza array - 12-06-2007 , 08:29 AM







"dinosauro" wrote in message
Quote:
Ho un array siffatto:

arecordset[mastertable][numrow]['ragionesociale']
arecordset[mastertable][numrow]['provincie_id'] ecc.

come posso puntare all'elemento senza conoscere ad esempio
['ragionesociale']
Se 'ragionesociale' è il primo elemento:

arecordset[mastertable][numrow][0]



Quote:
e come posso esplorare l'array arecordset[mastertable][numrow] ?
for (var i in arecordset[mastertable][numrow])
alert(arecordset[mastertable][numrow][i]);


Ciauz,
HyP




Reply With Quote
  #2  
Old   
ZER0
 
Posts: n/a

Default Re: lunghezza array - 12-06-2007 , 09:09 AM






On Thu, 06 Dec 2007 15:43:03 +0100, dinosauro wrote:

[cut]
Quote:
il secondo alert dà undefined
sembra proprio che non ci si possa riferire usando un idx numerico su uno
associativo ...
http://groups.google.it/groups/searc...g.ja vascript

--
~ "Non sono solitamente un uomo che prega,
ma se sei lassù, per favore salvami,Superman."
(Homer Simpsons)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.