I recently noticed that the js portion of the code (noted above) causes the feed to be invalid. The below code is what I modified it to so it would validate (the short reason, the first 'td' and 'div' tags are closed at the end, when they should be closed before the next 'td' tag)martoq wrote:heres the change in .js basically just added in some customization...Cheers...Code: Select all
img = "<img class='serendipity_amazonchr_pic' border='0' hspace='0' src='" + ImageUrl + "' alt='" + prodname + "' />"; block = '<table>' + '<tr>' + '<td align="center" valign="top" rowspan="1">' + '<a href="' + url + '">' + img + '</a>' + '<td valign="top"> <div class="serendipity_amazonchr_head"><b>' + '<a href="' + url + '">' + prodname + '</a>' + ('+ catalog +')alog +')</div>' + '<div class="serendipity_amazonchr_txt">' + extra + '<br />' + 'Released: ' + released + '<br />' + '</div></td>' + '</td>' + '</tr>' + '</table>' self.opener.serendipity_imageSelector_addToBody(block, textarea);
Code: Select all
block = '<table>'
+ '<tr>'
+ '<td align="center" valign="top" rowspan="1">'
+ '<a href="'
+ url
+ '">'
+ img
+ '</a>'
+ '<div class="serendipity_amazonchr_txt"></div></td>'
+ '<td valign="top"> <div class="serendipity_amazonchr_title">'
+ '<a href="'
+ url
+ '">'
+ prodname
+ '</a></div>'
+ '<div class="serendipity_amazonchr_catalog">('+ catalog +')</div>'
+ '<div class="serendipity_amazonchr_extra">'
+ extra
+ '<br />'
+ 'Released: '
+ released
+ '<br />'
+ '</div>'
+ '</td>'
+ '</tr>'
+ '</table>'
--Mike