On Fri, Jun 13, 2008 at 3:35 AM, Andrew Razzano <[EMAIL PROTECTED]> wrote:
>
>
> On Fri, Jun 13, 2008 at 3:33 AM, Andrew Razzano <[EMAIL PROTECTED]>
> wrote:
>
>>
>>
>> On Fri, Jun 13, 2008 at 3:15 AM, joe ertaba <[EMAIL PROTECTED]> wrote:
>>
>>> Hi again
>>>
>>> thanks for your attention
>>>
>>> I can find out that FF3 use PlacesUtils.livemarks to get uri:
>>> browser.js:
>>>
>>> onPopupShowing: function BM_onPopupShowing(event) {
>>> var target = event.originalTarget;
>>> var itemId = target._resultNode.itemId;
>>> var siteURI = PlacesUtils.livemarks.getSiteURI(itemId);
>>> siteURIString = siteURI.spec;
>>> }
>>>
>>>
>>> so I try this one:
>>>
>>> PlacesUtils.livemarks.getSiteURI(document.popupNode.itemId);
>>> Problem : popupNode.itemId is undefined but all other are works as well
>>>
>>> PlacesUtils.livemarks.getSiteURI(this.itemId);
>>> Problem: undefined!
>>>
>>> PlacesUtils.livemarks.getSiteURI(this._itemId);
>>> Problem: same as previews
>>>
>>> or
>>>
>>> var target = event.originalTarget;
>>> var itemId = target._resultNode.itemId;
>>> PlacesUtils.livemarks.getSiteURI(itemId);
>>> Problem; target.originalTarget lives but does not have itemId
>>>
>>>
>>>
>>>
>>> any idea :)
>>>
>>>
>>>
>>>
>>> On Fri, Jun 13, 2008 at 11:12 AM, Andrew Razzano <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Fri, Jun 13, 2008 at 1:33 AM, joe ertaba <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> thanks, it works!
>>>>>
>>>>> how can I get href of selected item ?
>>>>>
>>>>> I used document.popupNode.href or document.popupNode.currentURI but not
>>>>> work!
>>>>>
>>>>>
>>>>> On Fri, Jun 13, 2008 at 6:23 AM, Andrew Razzano <[EMAIL PROTECTED]>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jun 12, 2008 at 6:27 AM, joe ertaba <[EMAIL PROTECTED]>
>>>>>> wrote:
>>>>>>
>>>>>>> hi there
>>>>>>>
>>>>>>> i used :
>>>>>>> *
>>>>>>> **var bmContext = document.getElementById("bookmarks-context-menu");
>>>>>>> *
>>>>>>>
>>>>>>> *bmContext.addEventListener("popupshowing", function(e)
>>>>>>> {.....},false);*
>>>>>>>
>>>>>>> in FF2 to add some new items but it doesn't works in FF3
>>>>>>>
>>>>>>> p.s: I thing "bookmarks-context-menu" id does not exist any more !
>>>>>>> but i cant find new id too
>>>>>>>
>>>>>>> If any body can help ?
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Project_owners mailing list
>>>>>>> [email protected]
>>>>>>> https://www.mozdev.org/mailman/listinfo/project_owners
>>>>>>>
>>>>>>>
>>>>>> Try "placesContext"
>>>>>>
>>>>>> --
>>>>>> Sonny
>>>>>> _______________________________________________
>>>>>> Project_owners mailing list
>>>>>> [email protected]
>>>>>> https://www.mozdev.org/mailman/listinfo/project_owners
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Project_owners mailing list
>>>>> [email protected]
>>>>> https://www.mozdev.org/mailman/listinfo/project_owners
>>>>>
>>>>>
>>>> Hi Joe,
>>>> Just to let you know, I am just finding out the ins and outs of FF3.
>>>> Exactly what are you trying to accomplish and I would be glad to help, as
>>>> much as I can, and this will also be a good learning experience for me as
>>>> well. Maybe together we can work this out.
>>>>
>>>> --
>>>> Sonny
>>>> _______________________________________________
>>>> Project_owners mailing list
>>>> [email protected]
>>>> https://www.mozdev.org/mailman/listinfo/project_owners
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Project_owners mailing list
>>> [email protected]
>>> https://www.mozdev.org/mailman/listinfo/project_owners
>>>
>>>
>> Have you tried the function onFolderTreeSelected();
>>
>> --
>> Sonny
>
>
> Make that onFolderTreeSelect();
>
> --
> Sonny
In bookmarkProperties.js see how #editURLBar gets value. #editURLBar is the
location textbox in the properties dialog popup that displays the site uri
when you right click on a bookmark item.
--
Sonny
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners