Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 5th, 2008, 03:25 PM
Nick S
Guest
 
Posts: n/a
Default Re: Iteration through a json object

On Sep 5, 4:02 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
Nick S meinte:
>
Quote:
On Sep 5, 3:10 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
var obj = { ... }, p;
for(p in obj) {
window.alert(obj[p]);
>
Quote:
Quote:
};
>
Quote:
Quote:
Please answer: What is the value of p?
>
Quote:
Thanks. yes, this is what I do, however, I don't just want the value,
I also want the name of the property.
>
Jeez! The value of p *is* the name of the property. obj[p] gives you the
value of the property p.
>
Gregor
>
--http://photo.gregorkofler.at::: Landschafts- und Reisefotografiehttp://web.gregorkofler.com ::: meine JS-Spielwiesehttp://www.image2d.com :::Bildagentur für den alpinen Raum
he he ok ok, I've been at this for hours (not the problem, the app)
and I'm a little bog eyed :) Thanks for the help. Even if it had a
dose of sarcasm in it :)
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles