[thelist] Debugging Mode vs. Live Mode

Anthony Baratta anthony at baratta.com
Fri Jun 16 11:58:24 CDT 2006


Catch a clue dude. You don't view your values on the web server, you view them through you debugging pane in VS 2005.

Instead of asking vague questions, do some research - use your frigging help files and google. Then ask detailed relevent questions. Ask a simple question, get simple answers. We can't read your mind.

<tip author="Anthony Baratta" subject="AJAX">
When returning data from there server, if you need to iterate through the data from the JS side before you set it up for the browser to render, e.g. drop down boxes. Send the data back to the browser as a JS Arrary:

e.g. 

Sever Sends:

[ { author: 'Anthony Baratta', title: 'AJAX Rocks!' },
{ author: 'Anthony Baratta', title: 'FireFox versus IE' },
{ author: 'Anthony Baratta', title: 'dotNet C# Functions' } ]; 

Browser JC Code:

    var articles = eval( req.responseText );
    for( var a in articles )
    {
        articles[a].author;
        articles[a].title;
    }

This way you can easily walk through the data in a readable format. Don't delimit your data and use split! This way much much-o easier-o.

</tip>



More information about the thelist mailing list