[Project_owners] How to set a selected text to a text field of a side bar

Silver Surfer silver.surfer444 at gmail.com
Thu Oct 23 09:10:01 PDT 2008


Thanks Brian I did it. It is a realy helpfull link.
On Thu, Oct 23, 2008 at 3:28 PM, Brian King <brian at mozdev.org> wrote:

> Silver Surfer wrote:
>
>> Hi Friends,
>>  I need to know about how to set a selected text to a text box in a
>> sidebar after selecting a text and click a popupmenu. Code for popupmenu is
>> in Overlay.xul file and when a menu item is clicked it execute a function in
>> another .js file. A broadcaster is also set in the Overlay.xul and the
>> sidebar is set to that broadcaster by loading ( setting broadcasters url)
>> another xul which has the code for sidebar. I can get the value of selected
>> text but I don't know a way to set that value to the relevant text field of
>> the sidebar.
>>
>
> See:
>
>
> https://developer.mozilla.org/en/Code_snippets/Sidebar#Accessing_the_sidebar_from_a_browser.xul_script
>
> - Brian
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>



-- 
~Silver Surfer~
Surfing through time & space
http://risingofsilversurfer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081023/d5d2e56a/attachment.html>


More information about the Project_owners mailing list