Non ho molta esperienza con Ajax e mi sono imbattuto in un problema elementare, ma per me insormontabile:
In pratica ho un file xml di questo tipo:
Ajax mi dovrebbe leggere questo xml periodicamente e prendere dalla prima canzone il titolo e l'artista e scriverli poi in un DIV.codice:<Songs> <song001> <Title>Give It Away</Title> <Artist>RED HOT CHILI PEPPERS</Artist> <Genre>Other</Genre> <Album>test</Album> <Comment></Comment> <Image>nofound.jpg</Image> <ImageLink></ImageLink> <Path></Path> <Tag></Tag> <CommandText></CommandText> <Date>12-05-2010</Date> Time>22.28.23</Time> <Visible>-1</Visible> </song001> <song002> <Title>Il Mondo Che Vorrei</Title> <Artist>VASCO ROSSI</Artist> <Genre>Other</Genre> <Album>test</Album> <Comment></Comment> <Image>nofound.jpg</Image> <ImageLink></ImageLink> <Path></Path> <Tag></Tag> <CommandText></CommandText> <Date>12-05-2010</Date> <Time>22.22.30</Time> <Visible>-1</Visible> </song002> </Songs>
Sono partito da un esempio di html.it per far leggere ad Ajax l'RSS del blog di html.it, ma in diverse ore non ne ho cavato un ragno dal buco.
Sono impallato.