|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Feb 2002
Città: Modena
Messaggi: 364
|
Passare xml a javascript?
Salve a tutti,
dunque ho un problemino Ho un codice javascript per un player audio che prende i dati in modo "statico", mi spiego meglio con il codice Codice HTML:
<script type="text/javascript">
<!--
$(document).ready(function(){
var playItem = 0;
var myPlayList = [
{name:"Titolouno",mp3:"urlfile.mp3",ogg:"urlogg.ogg"},
{name:"Titolodue",mp3:"urlfiledue.mp3",ogg:"urloggdue.ogg"}
];
Io vorrei passargli i parametri dei file mp3 da un file xml esterno "playlist.xml" organizzato così: Codice HTML:
<?xml version="1.0" encoding="utf-8"?> <playlist> <item> <title>Titolouno</title> <artist>Artista</artist> <path>fileuno.mp3</path> </item> </playlist> Grazie
__________________
CASE Thermaltake S100 TG Micro Tower Black Alimentatore Itek BS650 EVO 650W - CPU Ryzen 5 5600X - MOBO ASUS TUF Gaming B550M PLUS Wifi II - VIDEO MSI Radeon RX 6750 XT MECH 2X 12G OC - RAM Crucial 2*16GB DDR4 PRO - STORAGE SK hynix Platinum P41 1TB PCIe NVMe Gen4 M.2 2280 Ultima modifica di speedwar : 12-05-2011 alle 12:40. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Feb 2002
Città: Modena
Messaggi: 364
|
Risolto
__________________
CASE Thermaltake S100 TG Micro Tower Black Alimentatore Itek BS650 EVO 650W - CPU Ryzen 5 5600X - MOBO ASUS TUF Gaming B550M PLUS Wifi II - VIDEO MSI Radeon RX 6750 XT MECH 2X 12G OC - RAM Crucial 2*16GB DDR4 PRO - STORAGE SK hynix Platinum P41 1TB PCIe NVMe Gen4 M.2 2280 |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 16:55.



















