[Project_owners] sidebar content

Attila Szabo szabo-a at pro.hu
Mon Sep 27 15:10:58 EDT 2004


Thanks a lot, Wladimir!

Wladimir Palant wrote:

>
> That's because the sidebar content is inside a browser element, you have
> to find it first and try its contentDocument then. Finding the current
> sidebar in Mozilla is somewhat tricky:
>
> window.sidebarObj.panels
>       .get_panel_from_id(window.SidebarGetLastSelectedPanel())
>       .get_iframe()
>       .contentDocument
>       .getElementById('mid:searchWord');
>
> Same thing for Firefox is somewhat simpler:
>
> document.getElementById('sidebar')
>     .contentDocument
>     .getElementById('mid:searchWord');
>
>
> Wladimir
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>
>
>
>
> .
>



More information about the Project_owners mailing list