Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
A tip for debugging with Atlas - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, MonoTouch for iPhone, MonoDroid for Android, and Windows Azure.

News

Personal Blog

Work Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

A tip for debugging with Atlas

This code shows you what you can call on your serialized object when using Atlas:
for(m in myObject){  //in my case, I was using result.getItem(i)
    alert(m);
}

Thanks to Wilco Bauwer for showing it to me in the asp.net forums.

Posted: Oct 18 2005, 03:38 PM by Wallym | with 3 comment(s)
Filed under:

Comments

Erik Porter said:

What exactly does getItem do? I've always done it like this...

for (i in result)
alert(i + ' = ' + result[i]);
# October 18, 2005 5:30 PM

Wallym said:

Sorry for the confusion, I was within a loop and forgot to pull that piece of code out
# October 18, 2005 5:50 PM

Wilco Bauwer said:

Bauwer ;).

Also, this is not Atlas-specific, but can be used to discover any object using JavaScript.

-Wilco
# October 19, 2005 6:16 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)