2 messages in com.googlegroups.bloggerdevRe: "feed has no entry post link" err...
FromSent OnAttachments
Saad24 Jan 2008 10:39 
Saad25 Jan 2008 15:46 
Subject:Re: "feed has no entry post link" error using javascript client library
From:Saad (saad@gmail.com)
Date:01/25/2008 03:46:14 PM
List:com.googlegroups.bloggerdev

Hi again.

I have gone round the problem using BloggerService.insertEntry(targetUri, entry, successCallback, failureCallback) method for both feed posting and blog entry posting.

Here, targetUri = the entryPostUri obtained throth a call to BlogEntry.getEntryPostLink(). Below is the snippets:

----------------------------------------------------------------------------------------------------------------------- var blogs = myBlogPostFeedRoot.feed.getEntries(); for( var i = 0; i < howManyBlogs; i++ ) { var blog = blogs[i]; // a BlogEntry object var blogEntryPostUri = blog.getEntryPostLink().getHref(); ... ... }

----------------------------------------------------------------------------------------------------------------------- var title = document.getElementById("NewEntryTitle").value; var content = document.getElementById("NewEntryContent").value; //var blogEntry = createNewEntry(title, content); var blogEntry = new google.gdata.blogger.BlogPostEntry(); blogEntry.setTitle(google.gdata.Text.create(title));

blogEntry.setContent(google.gdata.Text.create(content,'html'));

// selectedBlogEntryPostUri is the postUri for the se lected blog entry. blogService.insertEntry(selectedBlogEntryPostUri, blogEntry,handleMyInsertedEntry, handleError);

-----------------------------------------------------------------------------------------------------------------------

Handling comment posting worked the same way, using BlogCommentEntry.getEntryPostLink() to get targetUri.

However, I still don't know why the prescribed way in the developers' guide did not work.