Get links thru javascript? -


i have situation:

 $.getjson(url, args,         function(data) {             info("");             $("#results").empty();             if (! ('songs' in data.response)) {                 info("can't find anything");             } else {                 $("#all_results").show();                 var tbody = $("#all_results_body");                 tbody.empty();                 $.each(data.response.songs, function(i, song) {                     var row = $("<tr>");                     var artist = song.artist_name;                     //var artist = make_link(song.artist_name,                              //'http://static.echonest.com/echotron/?id=' + song.artist_id, 'other');                     var tid = song.tracks[0].foreign_id.replace('-ww', '');                     var tid = tid.replace('-us', '');                     var title = make_link(song.title, tid);                      /*var nacousticness = math.round(song.audio_summary.acousticness * 10000) / 10000;*/                      row.append( $("<td style='width:5%;'>").text(i + 1) );                     row.append( $("<td style='width:40%;'>").append(artist));                     row.append( $("<td style='width:55%;'>").append(title) );                      /*row.append( $("<td>").text(nacousticness));*/                      tbody.append(row);                     console.log(song.artist_id, song.id, song.audio_summary.acousticness,                          song.artist_name, song.title);                      document.write(tid + "&nbsp;");                    });             }         }, 

the document.write give result , : spotify:track:4isimo6empq9auijvz0mob spotify:track:5yjo1wqmvw6xwzagrl9kqc spotify:track:32uqv4nv8p0cirdavrebcy spotify:track:3yfw3ztozjcs7pl6ebnhho spotify:track:1kqegj8c2wsrgbla5yckpe spotify:track:3wfqyqrly7nferihcgdbyy spotify:track:0acyyjjh01tirwbn538bk1 spotify:track:6dqji4hfolhmnzhshxkugc spotify:track:4r13plx7hkjnxdyq5ukr5a spotify:track:1oenqmtbzt331pgv0odfs2 spotify:track:7nflzptw9wgnj2y9t3tfvw spotify:track:3ziaudoxayxr404splx9bv spotify:track:1uawfdonpvw6z4ositzzza spotify:track:3ssx20qt5c3na9wk78v1lq spotify:track:7vb7thpusblqg1lntq8yf7 spotify:track:3dmnvnkcxtohl1fjsm7xwr spotify:track:4oqgsytvrnh5dodilrvkcx spotify:track:6vd2ypeb1p3bcp5q0lzhrs spotify:track:3nouuhrqhmcfqht2otgqqp spotify:track:3ia3djetsollpsv3ljke35

i want save these value button or textarea thanks


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -