CqN on cr-48 devchannel 0.12.397.0
unread,Jun 9, 2011, 12:55:02 PM6/9/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-extensions
I tried this in an ext in the popup.html in cr-48 [has
permissions:bookmarks inlcuded in the manifest], but getting errors.
Suppose I want to create a new folder named/titled 'XYZ' in one of
the existing folders 'Other bookmarks', and then add a link 'abc' with
link title 'pqr':
chrome.bookmarks.create( {'parentId':'Other bookmarks',
'title':'XYZ' },
function (newFolder){alert('Created new folder'
+ newFolder.title);} );
chrome.bookmarks.create({'parentId':'XYZ', 'title':'pqr',
'url':'abc'});
In the above, on callback, newFolder appears to be undefined. What is
wrong in the syntax above?
B. Instead of creating the new folder XYZ in an existing folder as
above, if XYZ is to be created on the folder bar itslef, what should
be the parameter in place 'Other bookmarks' in the first .create()?
CqN