Created
June 5, 2014 12:14
-
-
Save kuc-arc-f/8e68e79916285cf8a0ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function disp_news(items) | |
{ | |
for(var i = 0; i < items.length ; i++){ | |
var body= $('table#id-table1'); | |
var trObj = $('<tr></tr>'); | |
var tdObj = $('<td></td>'); | |
var a_tag = $('<a href="'+ items[i].url +'" target="_blank">'+ items[i].title +'</a>'); | |
var tdObj02 = $('<td align="right"></td>'); | |
var sAtag02 = '<a href="'+ items[i].url +'" target="_blank">'; | |
sAtag02 += ' <button class="btn btn-default" style="margin-left:10px;">'; | |
sAtag02 += ' <i class="glyphicon glyphicon-chevron-right"></i>'; | |
sAtag02 += ' </button>'; | |
sAtag02 += '</a>'; | |
tdObj.append(a_tag); | |
tdObj02.append( $(sAtag02) ); | |
trObj.append(tdObj); | |
trObj.append(tdObj02); | |
body.append(trObj); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment