if the example content is always the same... all is well... if it is often different, simple access falls apart!
what if the code was a div instead of a p? or there was a different nesting? On 5/22/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
Just as a note, the following code produces this output: Author-Subtitle- var json = {"p":{"b":"Title","i":"Subtitle","b":"Author"}}; for(x in json.p) document.write(json.p[x]+"-"); And the following code produces this output: Title,Author-Subtitle- var json = {"p":{"b":["Title","Author"],"i":"Subtitle"}}; for(x in json.p) document.write(json.p[x]+"-"); ~Sean
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ