Re: [ZMapServer-Developers] Archetypes wrapper products for ZCO
Status: Alpha
Brought to you by:
sgillies
|
From: Luiz F. <lui...@gm...> - 2005-05-09 18:57:58
|
Yves, Thanks for the reply. I reproduced your code in my local machine, and it works fine! I'll investigate a litlle more on some uses of "XmlHttpRequest" and where i= t=20 could apply on our needs. I got the concept... but not sure where it's best= =20 applied. Some comments on the plone ZPT code: It's not necessary to customize the plone_javascripts.js, you can just fill= =20 the "javascript_head_slot" in the "plone_xmlhttp" ZPT with the additional=20 code you want, for ex: =2D-------------------------------------- <html metal:use-macro=3D"here/main_template/macros/master"> <metal:block fill-slot=3D"javascript_head_slot"> <script type=3D"text/javascript" src=3D"demoajax.js"></script> </metal:block> <body> <div metal:fill-slot=3D"main"> =2E......... </div> </body> </html> On Monday 09 May 2005 13:08, Moisan Yves wrote: > Hi Luis, > > Note Sean is cc'ed on this because i t will probably not end up on the > ZMapServer list ... > > I'm happy my emails spurred some interest on your part and I am looking > forward on working with you and other folks interested in leveraging Sean= 's > great work. > > I'm not a very seasoned AJAX (and JS) programmer, so my demo site for now > is rather simple : I just hacked this : > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exam= pl >e.html. > > The article that contains this demo site is : > http://developer.apple.com/internet/webcontent/xmlhttpreq.html see > paragraph "An Example: Reading XML Data from iTunes RSS Feeds"). > > What I did was just to try and integrate the code into 1) Zope and 2) > Plone. Integrating into Zope was rather easy (except I had to look for t= he > darn XML files needed for the demo to work; unless you can do something > with the demo code download that is Mac specific ...). Anyways once I > found the XML files, what I just did is copy their contents into a standa= rd > template. See below for details. > > For integration into Plone, I had to make a custom copy of > plone_javascripts.js and stuff the JS code from the example in there, > relaunch Zope and I could use a lighter weight ZPT. You can easily > reproduce my demo site by following the steps given below if you wish. I > adapted the code to store a fictive water quality measurement station > descriptin file but what I did is not even a hack (I replaced the contents > of the CDATA section of one of the original XML files used by the demo, so > I'm not even working with the XML DOM per se). This definitely has to be > corrected, but if we can make it to gobble any XML (GML, SVG ...), then we > can easily gain access to attributes data via the XML DOM in the browser > and purpose the content any way we like (map, plot, table ...). That wou= ld > probably mean we have an efficient way to serialize ZCO objects or > arbitrary AT "GeoContentType" objects in XML so as to be able to use the > parser's own XML/XSLT engine. At that point, I believe any "geoneabled" > Zope object could be displayed on a map ... > > Please don't hesitate to comment on this : I want this cool stuff to > happen! > > Cheers, > > Yves > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > Integrating the XmlHttpRequest demo > (http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa= mp >le.html) : the ZOPE WAY > > The "main" ZPT : e.g. xmlhttp > > <html> > <head> > <style> > html {background-color:#eeeeee} > body { > background-color:#ccffcc; > font-family:Tahoma,Arial,Helvetica,sans-serif; > font-size:12px; > margin-left:15%; > margin-right:15%; > border:3px groove #006600; > padding:15px > } > h1 { > text-align:left; > font-size:1.5em; > font-weight:bold > } > </style> > <script type=3D"text/javascript"> > // global flag > var isIE =3D false; > > // global request and XML document objects > var req; > > // retrieve XML document (reusable generic function); > // parameter is URL string (relative or complete) to > // an .xml file whose Content-Type is a valid XML > // type, such as text/xml; XML source must be from > // same domain as HTML file > function loadXMLDoc(url) { > // branch for native XMLHttpRequest object > if (window.XMLHttpRequest) { > req =3D new XMLHttpRequest(); > req.onreadystatechange =3D processReqChange; > req.open("GET", url, true); > req.send(null); > // branch for IE/Windows ActiveX version > } else if (window.ActiveXObject) { > isIE =3D true; > req =3D new ActiveXObject("Microsoft.XMLHTTP"); > if (req) { > req.onreadystatechange =3D processReqChange; > req.open("GET", url, true); > req.send(); > } > } > } > > // handle onreadystatechange event of req object > function processReqChange() { > // only if req shows "loaded" > if (req.readyState =3D=3D 4) { > // only if "OK" > if (req.status =3D=3D 200) { > clearTopicList(); > buildTopicList(); > } else { > alert("There was a problem retrieving the XML data:\n" + > req.statusText); > } > } > } > > // invoked by "Category" select element change; > // loads chosen XML document, clears Topics select > // element, loads new items into Topics select element > function loadDoc(evt) { > // equalize W3C/IE event models to get event object > evt =3D (evt) ? evt : ((window.event) ? window.event : null); > if (evt) { > // equalize W3C/IE models to get event target reference > var elem =3D (evt.target) ? evt.target : ((evt.srcElement) ? > evt.srcElement : null); if (elem) { > try { > if (elem.selectedIndex > 0) { > loadXMLDoc(elem.options[elem.selectedIndex].value); > } > } > catch(e) { > var msg =3D (typeof e =3D=3D "string") ? e : ((e.message)= ? > e.message : "Unknown Error"); alert("Unable to get XML data:\n" + msg); > return; > } > } > } > } > > // retrieve text of an XML document element, including > // elements using namespaces > function getElementTextNS(prefix, local, parentElem, index) { > var result =3D ""; > if (prefix && isIE) { > // IE/Windows way of handling namespaces > result =3D parentElem.getElementsByTagName(prefix + ":" + > local)[index]; } else { > // the namespace versions of this method > // (getElementsByTagNameNS()) operate > // differently in Safari and Mozilla, but both > // return value with just local name, provided > // there aren't conflicts with non-namespace element > // names > result =3D parentElem.getElementsByTagName(local)[index]; > } > if (result) { > // get text, accounting for possible > // whitespace (carriage return) text nodes > if (result.childNodes.length > 1) { > return result.childNodes[1].nodeValue; > } else { > return result.firstChild.nodeValue; > } > } else { > return "n/a"; > } > } > > // empty Topics select list content > function clearTopicList() { > var select =3D document.getElementById("topics"); > while (select.length > 0) { > select.remove(0); > } > } > > // add item to select element the less > // elegant, but compatible way. > function appendToSelect(select, value, content) { > var opt; > opt =3D document.createElement("option"); > opt.value =3D value; > opt.appendChild(content); > select.appendChild(opt); > } > > // fill Topics select list with items from > // the current XML document > function buildTopicList() { > var select =3D document.getElementById("topics"); > var items =3D req.responseXML.getElementsByTagName("item"); > // loop through <item> elements, and add each nested > // <title> element to Topics select element > for (var i =3D 0; i < items.length; i++) { > appendToSelect(select, i, > document.createTextNode(getElementTextNS("", "title", items[i= ], > 0))); } > // clear detail display > document.getElementById("details").innerHTML =3D ""; > } > > // display details retrieved from XML document > function showDetail(evt) { > evt =3D (evt) ? evt : ((window.event) ? window.event : null); > var item, content, div; > if (evt) { > var select =3D (evt.target) ? evt.target : ((evt.srcElement) ? > evt.srcElement : null); if (select && select.options.length > 1) { > // copy <content:encoded> element text for > // the selected item > item =3D > req.responseXML.getElementsByTagName("item")[select.value]; content =3D > getElementTextNS("content", "encoded", item, 0); div =3D > document.getElementById("details"); > div.innerHTML =3D ""; > // blast new HTML content into "details" <div> > div.innerHTML =3D content; > } > } > } > </script> > </head> > <body> > <h1>XMLHttpRequest Object Demo</h1> > <hr /> > > <form> > <p>Category:<br /> > <select onchange=3D"loadDoc(event)"> > <option value=3D"">Choose One</option> > <option value=3D"songs.xml">Test XML</option> > <option value=3D"albums.xml">Top 10 Albums</option> > <option value=3D"newreleases.xml">Top 10 New Releases</option> > <option value=3D"justadded.xml">Top 10 Just Added</option> > </select> > </p> > <p>Items:<br /> > <select size=3D"10" id=3D"topics" onchange=3D"showDetail(event)"> > <option value=3D"">Choose a Category First</option> > </select> > </p> > </form> > <div id=3D"details"><span></span></div> > </body> > <html> > > Now if you look in the form, you just have to create ZPT's that have > mimetype=3Dtext/xml (not text/html, which is the default upon Page Templa= te > creation) with the same names (songs.xml) that are traversable to. An > example of the songs.xml template (Note I found this on the Web; if you > want I can send you sample files for albums.xml and so on, but you can > always just copy/paste/rename to get a feel for it) : > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <rss version=3D"2.0" > xmlns:dc=3D"http://purl.org/dc/elements/1.1/" > xmlns:sy=3D"http://purl.org/rss/1.0/modules/syndication/" > xmlns:content=3D"http://purl.org/rss/1.0/modules/content/" > xmlns:itms=3D"http://phobos.apple.com/rss/1.0/modules/itms/"> > > <channel> > <title>iTunes Top 10 Songs</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e. >app.store.DirectAction/viewTopSongs?id=3D1</link> <description>iTunes Music > Store: Today's Top 10 Songs</description> <language>en</language> > <copyright>Copyright 2004 Apple Computer, Inc. > > </copyright> > <lastBuildDate>Wed, 27 Apr 2005 18:04:55 -800</lastBuildDate> > <generator>iTunes Music Store RSS v1.0.0</generator> > <webMaster>mus...@ap...</webMaster> > <ttl>60</ttl> > > <dc:creator>iTunes Music Store</dc:creator> > <dc:date>Wed, 27 Apr 2005 18:04:55 -800</dc:date> > > <sy:updatePeriod>hourly</sy:updatePeriod> > <sy:updateFrequency>1</sy:updateFrequency> > <sy:updateBase>2003-09-01T12:00+00:00</sy:updateBase> > <image> > <url>/images/rss/badge.gif</url> > <link>http://www.apple.com/itunes/</link> > <title>iTunes Music Store</title> > <height>31</height> > <width>88</width> > </image> > <item> > <title>1. Speed of Sound - Coldplay</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D57656371&playListId=3D57656463</link> <description>Speed of= Sound > by Coldplay from the album Speed of Sound - Single</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D57656463&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2005/m04/d12/h12/s05.lnbtfwer.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D57656463&originStoreFront=3D143441">Speed of Sound - Single</a></B><br= > <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D471744">Coldplay</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > April 19, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D20">Alternative</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > By Song Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> 20= 05 > Capitol Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D20">Alternative</category> > <itms:artist>Coldplay</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D471744</itms:artistLink> <itms:album>Speed of Sound - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D57656463&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2005/m04/d12/h12/s05.lnbtf= wer. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2005/m04/d12/h12/s05.lnbtf= wer. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2005/m04/d12/h12/s05.lnbt= fwer >.100x100-99.jpg</itms:coverArt> > > <itms:song>Speed of Sound</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D57656371&playListId=3D57656463</itms:songLink> > <itms:rank>1</itms:rank> > <itms:rights>2005 Capitol Records</itms:rights> > <itms:releasedate>April 19, 2005</itms:releasedate> > </item> > <item> > <title>2. Hollaback Girl - Gwen Stefani</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D30523766&playListId=3D30523690</link> <description>Hollabac= k Girl > by Gwen Stefani from the album Love, Angel, Music, Baby</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D30523690&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Features/y2004/m11/d18/h14/dj.aoxiqpll.= 100x >100-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height= =3D"1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D30523690&originStoreFront=3D143441">Love, Angel, Music, Baby</a></B><b= r> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D108717">Gwen Stefani</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > November 23, 2004<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 12</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D14">Pop</a></font><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price:</B> > $9.99</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> (C) > 2004 Interscope Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D14">Pop</category> <itms:artist>Gwen > Stefani</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D108717</itms:artistLink> <itms:album>Love, Angel, Music, > Baby</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D30523690&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>$9.99</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Features/y2004/m11/d18/h14/dj.aox= iqpl >l.53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Features/y2004/m11/d18/h14/dj.aox= iqpl >l.60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Features/y2004/m11/d18/h14/dj.ao= xiqp >ll.100x100-99.jpg</itms:coverArt> > > <itms:song>Hollaback Girl</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D30523766&playListId=3D30523690</itms:songLink> > <itms:rank>2</itms:rank> > <itms:rights>(C) 2004 Interscope Records</itms:rights> > <itms:releasedate>November 23, 2004</itms:releasedate> > </item> > <item> > <title>3. American Baby - Dave Matthews Band</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D60288450&playListId=3D60288458</link> <description>American= Baby > by Dave Matthews Band from the album American Baby - Single</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D60288458&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2005/m04/d22/h15/s05.khhusohx.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D60288458&originStoreFront=3D143441">American Baby - Single</a></B><br>= <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D60288452">Dave Matthews Band</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > April 23, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D21">Rock</a></font><br> <font size=3D"= 3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price:</B> By So= ng > Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> 20= 05 > RCA Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D21">Rock</category> <itms:artist>Dave > Matthews Band</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D60288452</itms:artistLink> <itms:album>American Baby - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D60288458&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2005/m04/d22/h15/s05.khhus= ohx. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2005/m04/d22/h15/s05.khhus= ohx. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2005/m04/d22/h15/s05.khhu= sohx >.100x100-99.jpg</itms:coverArt> > > <itms:song>American Baby</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D60288450&playListId=3D60288458</itms:songLink> > <itms:rank>3</itms:rank> > <itms:rights>2005 RCA Records</itms:rights> > <itms:releasedate>April 23, 2005</itms:releasedate> > </item> > <item> > <title>4. Don't Phunk With My Heart - Black Eyed Peas</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D54068337&playListId=3D54068335</link> <description>Don't > Phunk With My Heart by Black Eyed Peas from the album Don't Phunk With > My Heart - Single</description> <pubDate>Wed, 27 Apr 2005 18:04:55 > -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D54068335&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Features/y2005/m03/d30/h18/dj.qfewynww.= 100x >100-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height= =3D"1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D54068335&originStoreFront=3D143441">Don't Phunk With My Heart - > Single</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D360391">Black Eyed Peas</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > April 07, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > By Song Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> (C) > 2005 Interscope Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</category> > <itms:artist>Black Eyed Peas</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D360391</itms:artistLink> <itms:album>Don't Phunk With= My > Heart - Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlb= um >?playListId=3D54068335&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Features/y2005/m03/d30/h18/dj.qfe= wynw >w.53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Features/y2005/m03/d30/h18/dj.qfe= wynw >w.60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Features/y2005/m03/d30/h18/dj.qf= ewyn >ww.100x100-99.jpg</itms:coverArt> > > <itms:song>Don't Phunk With My Heart</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D54068337&playListId=3D54068335</itms:songLink> > <itms:rank>4</itms:rank> > <itms:rights>(C) 2005 Interscope Records</itms:rights> > <itms:releasedate>April 07, 2005</itms:releasedate> > </item> > <item> > <title>5. Mr. Brightside - The Killers</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D14268729&playListId=3D14268749</link> <description>Mr. Brig= htside > by The Killers from the album Hot Fuss</description> <pubDate>Wed, 27 Apr > 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D14268749&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2004/m05/d27/h11/s05.bgvgwgjx.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D14268749&originStoreFront=3D143441">Hot Fuss</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D6483093">The Killers</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > June 15, 2004<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 11</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D20">Alternative</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > $9.99</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> (C) > 2004 The Island Def Jam Music Group</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D20">Alternative</category> > <itms:artist>The Killers</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D6483093</itms:artistLink> <itms:album>Hot Fuss</itms:albu= m> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D14268749&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>$9.99</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2004/m05/d27/h11/s05.bgvgw= gjx. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2004/m05/d27/h11/s05.bgvgw= gjx. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2004/m05/d27/h11/s05.bgvg= wgjx >.100x100-99.jpg</itms:coverArt> > > <itms:song>Mr. Brightside</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D14268729&playListId=3D14268749</itms:songLink> > <itms:rank>5</itms:rank> > <itms:rights>(C) 2004 The Island Def Jam Music Group</itms:rights> > <itms:releasedate>June 15, 2004</itms:releasedate> > </item> > <item> > <title>6. Switch - Will Smith</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D44812587&playListId=3D44812585</link> <description>Switch b= y Will > Smith from the album Switch - Single</description> <pubDate>Wed, 27 Apr > 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D44812585&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Features/y2005/m02/d13/h20/dj.dmqdnqdr.= 100x >100-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height= =3D"1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D44812585&originStoreFront=3D143441">Switch - Single</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D628845">Will Smith</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > February 15, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > By Song Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> (C) > 2005 Interscope Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</category> > <itms:artist>Will Smith</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D628845</itms:artistLink> <itms:album>Switch - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D44812585&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Features/y2005/m02/d13/h20/dj.dmq= dnqd >r.53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Features/y2005/m02/d13/h20/dj.dmq= dnqd >r.60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Features/y2005/m02/d13/h20/dj.dm= qdnq >dr.100x100-99.jpg</itms:coverArt> > > <itms:song>Switch</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D44812587&playListId=3D44812585</itms:songLink> > <itms:rank>6</itms:rank> > <itms:rights>(C) 2005 Interscope Records</itms:rights> > <itms:releasedate>February 15, 2005</itms:releasedate> > </item> > <item> > <title>7. Holiday (Faded Ending) - Green Day</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D56752023&playListId=3D56752016</link> <description>Holiday = (Faded > Ending) by Green Day from the album Holiday - Single</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D56752016&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2005/m04/d06/h15/s06.cbsmttoi.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D56752016&originStoreFront=3D143441">Holiday - Single</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D954266">Green Day</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > March 30, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 2</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D20">Alternative</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > $1.98</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> 20= 05 > Reprise</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D20">Alternative</category> > <itms:artist>Green Day</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D954266</itms:artistLink> <itms:album>Holiday - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D56752016&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>$1.98</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2005/m04/d06/h15/s06.cbsmt= toi. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2005/m04/d06/h15/s06.cbsmt= toi. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2005/m04/d06/h15/s06.cbsm= ttoi >.100x100-99.jpg</itms:coverArt> > > <itms:song>Holiday (Faded Ending)</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D56752023&playListId=3D56752016</itms:songLink> > <itms:rank>7</itms:rank> > <itms:rights>2005 Reprise</itms:rights> > <itms:releasedate>March 30, 2005</itms:releasedate> > </item> > <item> > <title>8. Lonely No More - Rob Thomas</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D44553986&playListId=3D44553976</link> <description>Lonely N= o More > by Rob Thomas from the album Lonely No More - Single</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D44553976&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2005/m02/d10/h10/s06.kwocvtzh.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D44553976&originStoreFront=3D143441">Lonely No More - Single</a></B><br= > <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D217178">Rob Thomas</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > February 15, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D21">Rock</a></font><br> <font size=3D"= 3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price:</B> By So= ng > Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> 20= 05 > Melisma/Atlantic Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D21">Rock</category> <itms:artist>Rob > Thomas</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D217178</itms:artistLink> <itms:album>Lonely No More - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D44553976&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2005/m02/d10/h10/s06.kwocv= tzh. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2005/m02/d10/h10/s06.kwocv= tzh. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2005/m02/d10/h10/s06.kwoc= vtzh >.100x100-99.jpg</itms:coverArt> > > <itms:song>Lonely No More</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D44553986&playListId=3D44553976</itms:songLink> > <itms:rank>8</itms:rank> > <itms:rights>2005 Melisma/Atlantic Records</itms:rights> > <itms:releasedate>February 15, 2005</itms:releasedate> > </item> > <item> > <title>9. Lonely - Akon</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D3261386&playListId=3D3261410</link> <description>Lonely by = Akon > from the album Trouble</description> <pubDate>Wed, 27 Apr 2005 18:04:55 > -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D3261410&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2003/m10/d20/h23/s02.kobnbfnm.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D3261410&originStoreFront=3D143441">Trouble</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D3261325">Akon</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > May 25, 2004<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 13</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > $9.99</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> (C) > 2003 Universal Records & SRC Records Inc., a division of UMG=20 > Recordings</font></td> </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D18">Hip-Hop/Rap</category> > <itms:artist>Akon</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D3261325</itms:artistLink> <itms:album>Trouble</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D3261410&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>$9.99</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2003/m10/d20/h23/s02.kobnb= fnm. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2003/m10/d20/h23/s02.kobnb= fnm. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2003/m10/d20/h23/s02.kobn= bfnm >.100x100-99.jpg</itms:coverArt> > > <itms:song>Lonely</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D3261386&playListId=3D3261410</itms:songLink> > <itms:rank>9</itms:rank> > <itms:rights>(C) 2003 Universal Records & SRC Records Inc., a > division of UMG Recordings</itms:rights> <itms:releasedate>May 25, > 2004</itms:releasedate> > </item> > <item> > <title>10. Blue Orchid - The White Stripes</title> > <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?sele= ct >edItemId=3D57911273&playListId=3D57911279</link> <description>Blue Orc= hid by > The White Stripes from the album Blue Orchid - Single</description> > <pubDate>Wed, 27 Apr 2005 18:04:55 -800</pubDate> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><ta= ble > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D57911279&originStoreFront=3D143441"><img border=3D"0" > src=3D"http://a1.phobos.apple.com/Music/y2005/m04/d13/h10/s05.mmgxjowm.10= 0x10 >0-99.jpg"></a></td> <td width=3D"10"><img alt=3D"" width=3D"10" height=3D"= 1" > src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playL= istI >d=3D57911279&originStoreFront=3D143441">Blue Orchid - Single</a></B><br> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?arti= stId >=3D2456318">The White Stripes</a><br><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B> > April 18, 2005<br> > </font><font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B> > 1</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Genre:</B> <a > href=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jingl= e.ap >p.store.DirectAction/viewGenre?id=3D20">Alternative</a></font><br> <font > size=3D"3" FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Price= :</B> > By Song Only</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Copyright</B> 20= 05 > V2 Records, Inc./ Third Man Records</font></td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > <category > domain=3D"http://phobos.apple.com/WebObjects/MZStore.woa/wa/com.apple.jin= gle. >app.store.DirectAction/viewGenre?id=3D20">Alternative</category> > <itms:artist>The White Stripes</itms:artist> > <itms:artistLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/vie= wA >rtist?artistId=3D2456318</itms:artistLink> <itms:album>Blue Orchid - > Single</itms:album> > <itms:albumLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/view= Al >bum?playListId=3D57911279&originStoreFront=3D143441</itms:albumLink> > <itms:albumPrice>By Song Only</itms:albumPrice> > > <itms:coverArt height=3D"53" > width=3D"53">http://a1.phobos.apple.com/Music/y2005/m04/d13/h10/s05.mmgxj= owm. >53x53-75.jpg</itms:coverArt> <itms:coverArt height=3D"60" > width=3D"60">http://a1.phobos.apple.com/Music/y2005/m04/d13/h10/s05.mmgxj= owm. >60x60-75.jpg</itms:coverArt> <itms:coverArt height=3D"100" > width=3D"100">http://a1.phobos.apple.com/Music/y2005/m04/d13/h10/s05.mmgx= jowm >.100x100-99.jpg</itms:coverArt> > > <itms:song>Blue Orchid</itms:song> > <itms:songLink>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewA= lb >um?selectedItemId=3D57911273&playListId=3D57911279</itms:songLink> > <itms:rank>10</itms:rank> > <itms:rights>2005 V2 Records, Inc./ Third Man Records</itms:rights> > <itms:releasedate>April 18, 2005</itms:releasedate> > </item> > > </channel> > </rss> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Integrating the XmlHttpRequest demo > (http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa= mp >le.html) : the PLONE WAY > > For inclusion into Plone, you have to stuff the JS code in xmlhttp into a > customized plone_javascripts.js. Your JS becomes available to your whole > Plone site. You have to do that because adding JS code in the head of a > ZPT that uses Plone's main-slot just won't be parsed by Zope. > > Here's an example of a Plonized ZPT that stuffs content into Plone's > main-slot (which I called plone_xmlhttp) : > > <html metal:use-macro=3D"here/main_template/macros/master"> > > <body> > <div metal:fill-slot=3D"main"> > > <h1>Stations de mesure - Bassin de la Saint-Fran=E7ois</h1> > <hr /> > > <form> > <p>Type d'=E9l=E9ment :<br /> > <select onchange=3D"loadDoc(event)"> > <option value=3D"">Faites votre choix</option> > <option value=3D"stations-test.xml">Stations de mesure</option> > </select> > </p> > <p>=C9l=E9ments :<br /> > <select size=3D"10" id=3D"topics" onchange=3D"showDetail(event)"> > <option value=3D"">Choisissez un type d'=E9l=E9ment d'abord</option> > </select> > </p> > </form> > > <div id=3D"details"><span></span></div> > > </div> > </body> > </html> > > Now I used just one option in the form. I modified songs.xml to get > "stations-test.xml" like this : > > <?xml version=3D"1.0" encoding=3D"iso-8859-1"?> > > <rss version=3D"2.0" > xmlns:content=3D"http://purl.org/rss/1.0/modules/content/"> > > <item> > <title>Plage Blanchard</title> > <description>Station de mesure de la plage Blanchard</description> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><table > border=3D"0" width=3D"100%" cellspacing=3D"1" cellpadding=3D"1"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER VALIGN=3DTOP><a > href=3D"http://eau.groupesm.com/surface/bassins/saintfrancois/magog/stati= ons/ >1"><img border=3D"0" > src=3D"http://groupesm-ctm148.groupesm.com/surface/bassins/saintfrancois/= mago >g/stations/1/imagette"></a></td> <td width=3D"95%"><B><a>Plage > Blanchard</a></B><br><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Latitude : </B> > 45.392858<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Longitude : </B> > -71.928119<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Type : </B> > Saisonnier<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Exploitant : </B= > <a > href=3D"http://www.menv.gouv.qc.ca">Minist=E8re de l'Environnement du > Qu=E9bec</a></font><br> <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B><a > href=3D"http://www.menv.gouv.qc.ca/regions/region_05/liste_plage05.asp">D= onn=E9 >es</a></B> </font> > </td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > </item> > <item> > <title>Plage Jacques-Cartier</title> > <description>Station de mesure de la plage Jacques-Cartier</description> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><table > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER VALIGN=3DTOP><a > href=3D"http://eau.groupesm.com/surface/bassins/saintfrancois/magog/stati= ons/ >1"><img border=3D"0" > src=3D"http://groupesm-ctm148.groupesm.com/surface/bassins/saintfrancois/= mago >g/stations/1/imagette"></a></td> <td width=3D"10"><img alt=3D"" width=3D"1= 0" > height=3D"1" src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a>Pla= ge > Jacques-Cartier</a></B><br><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Latitude : </B> > 45.392858<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Longitude : </B> > -71.916667<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Type : </B> > Saisonnier<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Exploitant : </B> > COGESAF ?</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B><a > href=3D"http://eau.groupesm.com/cartes/test/multiplot">Donn=E9es</a></B> > </font> > </td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > </item> > <item> > <title>Plage du Lac Fraser</title> > <description>Station de mesure de la plage du Lac Fraser</description> > <content:encoded><![CDATA[<TABLE BORDER=3D0 WIDTH=3D"100%"><TR><TD><table > border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> <tr vali= gn=3D"top" > align=3D"left"> > <td ALIGN=3DCENTER WIDTH=3D166 VALIGN=3DTOP><a > href=3D"http://eau.groupesm.com/surface/bassins/saintfrancois/magog/stati= ons/ >1"><img border=3D"0" > src=3D"http://groupesm-ctm148.groupesm.com/surface/bassins/saintfrancois/= mago >g/stations/1/imagette"></a></td> <td width=3D"10"><img alt=3D"" width=3D"1= 0" > height=3D"1" src=3D"/images/spacer.gif"></td> <td width=3D"95%"><B><a>Pla= ge du > Lac Fraser</a></B><br><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Latitude : </B> > 45.39<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Longitude : </B> > -72.170278<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Type : </B> > Saisonnier<br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Exploitant : </B> > Organismes quelconque (SEPAQ ?)</font><br> > <font size=3D"3" > FACE=3D"Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B><a > href=3D"http://www.menv.gouv.qc.ca/regions/region_05/liste_plage05.asp">D= onn=E9 >es</a></B> </font> > </td> > </tr> > </table></TD></TR> > </TABLE>]]></content:encoded> > </item> > > </rss> > > As you can see, this is a particularly awkward example, but the demo app > was using HTML formatted data inside a CDATA tag in an RSS document, so I > just kept it at that for now. > > Bottom line is that it works and I know Limi is thinking of a general > framewrok to use XmlHttpRequest in future versions of Plone (I think he is > targetting 2.2). > > A typical use I would see is click on an item (e.g. a watershed object), > build the options list using tal:repeat iterating over the contents of a > particular content type (e.g. you choose "water quality stations" in the > first form and you get a dropdown list of all such objects in the given > parent object. Clicking on an individual sub-object gives you a "details" > pane, which could be rewritten to fill a special purpose Plone slot of yo= ut > choice. For now, I can see a general purpose Plone ZPT that you would ca= ll > like so : fill-<details> whre details is the name of the new macro. We > could build such a macro to avoid building a table (as the details pane in > the demo is currently done). > > There you go. Good luck and keep me posted ! > > > > -----Message d'origine----- > De=A0: zma...@li... > [mailto:zma...@li...] De la part de > Luiz Fernando Envoy=E9=A0: 6 mai 2005 19:50 > =C0=A0: zma...@li... > Objet=A0: [ZMapServer-Developers] Archetypes wrapper products for ZCO > > Hello, > > I've just subscribed and been reading the previous posts > (http://sourceforge.net/mailarchive/message.php?msg_id=3D11649853) and I = very > interested in "trying" to help on some things, specially a better UI for > the ZCO. So I'd like to have a look at the "AJAX demo site" or any code > already done that Yves talked about. > > I've no previous knowledge of AJAX (which I'm being aware now, reading > something of Sarissa), but I did some DHTML controllers for some map > services i've implemented like: > > http://www.sosmatatlantica.org.br/?secao=3Datlas > http://www.florestasdofuturo.org.br/paginas/home.php?pg=3Dbacias_reflores= tada >s > > For these I've used Mapserver, PHPMascript and some stolen/addapted JS fr= om > the ArcIMS site templates (shame on me on that!!! , but it was what was > easiers since I've played a lot around the auto-generated js of ArcIMS). > I've been using Zope/CMF for 3 years now, I'm involved in some Plone Site > projects to (using AT). So I think this is the opportunity to join forces. > > So that's it. I'd like to try to help you. > > PS: the subscription with a gmail account didn't workout, so I've done wi= th > another account. > > Cheers, > Luiz Fernando > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=3D20 > _______________________________________________ > ZMapServer-Developers mailing list > ZMa...@li... > https://lists.sourceforge.net/lists/listinfo/zmapserver-developers |