Wednesday, March 24, 2010

update 23th March

I change the "share" button on borrower page. use steamPublish method instead of showShareDialog. In the new function , it is more like to send a new feed with picture and link .
It can automatically get the picture's source address and link from a certain page.

There are javascript method i have not used before . But they are not very hard except get a Text from a certain Class .

<\tr\><\td class="a1">Borrower Name<\/td><\/tr>
<\tr><\td class="a2">Maria Coy<\/td> <\/tr>
<\tr><\td class="a1">Location<\/td>
<\tr><\td class="a2">Tono<\/td> <\/tr>

this is a piece of html code . I need to get "Maria Coy" and "Tono" and display them on facebook by sending a feed . I know how to get them by "ID" or other attributes .but when i try to use the same way to get this. it cannot work.

function ver() {
var allElems = document.getElementsByTagName('*');

for (var i = 0; i < allElems.length; i++) {
var thisElem = allElems.item(i);
if (thisElem.className && thisElem.className == 'a2') {//


new "share" button link:

No comments:

Post a Comment