Aşağıdaki gibi basit bir jquery komut dosyası var:
$('a').click(function()
{
//get the id of the song we want to play
var song_id = $(this).attr("id");
//do a get request to get the information about the song
$.get("http://www.site.com/v4/ajax/get_song_info.php", { id: song_id, }, function(data)
{
alert("Data Loaded: " + data);
});
//alert( song_id );
});
Ben işe aldık ve bu verileri 'sanatçı', 'title' böylece 'şarkısı süresi' ve birkaç bit döndürür.
Ben sonra her bit ile benim sayfasını güncellemek böylece nasıl benim 'veri' işlemek yok. Bu durumda ben döndürülen değerlerin her tutmak için'' bir dizi kurmak istiyorum.
Teşekkürler.