Enterprise AJAX Podcast # 10 
August 9th, 2006
Dave and I discuss JavaScript programming techniques and patterns such as inheritance, multiple inheritance, observer patterns and more. We also touch on the nonesense around Ajax security risks. Mentions also of BarCamp Vancouver and we're hiring at Nitobi! Until next week on the same bat channel at the same bat time:)
MP3 File
|
Del.icio.us
This entry was posted on Wednesday, August 9th, 2006 at 3:21 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

August 9th, 2006 at 5:57 pm
Hi Guys,
There’s a couple of JS libraries that do the XML->array conversion you mentioned. We posted one on Ajaxian the other day
http://www.openjs.com/scripts/xml_parser/
http://iwf.sourceforge.net/ (used it here http://ajaxpatterns.org/XML_Data_Island#XML_Data_Island_Sum_Demo)
There’s also http://www.fleegix.org/downloads/xmlparse.js
It would be good functionality for Prototype imo, pretty fundamental stuff.
PS The TV show . I think I watched it on the way to The Ajax Experience. Stream of consciousness podcasting, is there any better way to kill 90-120 minutes .
August 10th, 2006 at 7:19 pm
Those are good ones that I have not seen Michael. I should probably spend more time on ajaxpatterns
I have found that most XML parsers make no distinction for attribute nodes nor for multiple child nodes that are _not_ an array. eg an address has a street, city, post code etc but those should be accessed as named properties rather than through an array. I have certainly found that when you actually want to make something that you might make in real life, you rediscover why there is such a thing as XML Schema
I will post my code simple parser code soon as I have tried to put in some features that we find quite useful.
The really interesting part is when you actually want to start changing the information like adding items to the array and having that actually be represented in an XML document that can be sent to the server. Again schema come in very handy.
The most full featured XML->JavaScript that I have seen in OpenWDDX from Macromedia which was made waaaaaaaaaaaaaay back in 1998.
ok this is turning into a blog post now … back to work