1) Display an icon in the status-bar (done)
2) When I click the icon, expand/collapse a 'window' at the bottom of
the screen. Basically, just think of how Firebug works, when you click
the firebug a nice UI expands...This is very trivial, I know, but so
far I have been unable to get this to work (spent 1 day so far and
only managed to get my icon in the status bar).
After I accomplish this, the next thing I want to do is to start
'parsing' the current page that I am on, but I can get to that
later...Right now i just need help getting this simple part working,
and then I can focus on what to do next.
Thanks,
noly
I would use the DOM Inspector, to look where in the browser tree the
Firebug window is inserted, then I would create my window using XUL
and insert it in the same place.
Firebug is open source, you can look how it works.
take a look at the browser overlay in content/firebug/browserOverlay.xul
this looks promising:
<!-- Firebug panel -->
<vbox id="appcontent">
<splitter id="fbContentSplitter" collapsed="true"/>
<vbox id="fbContentBox" collapsed="true" persist="height">
</vbox>
</vbox>
to be sure you are on the right way, search #appcontent in the
browser.xul file ( you can find this file in
firefox.installation.path/chrome/browser.jar:content/browser, it would
not be wrong to extract all the jars for further investigations )
<vbox id="appcontent" flex="1">
<tabbrowser id="content" disablehistory="true"
..... />
</vbox>
seems to be the way to go!
petschm
The XUL code below is here:
http://code.google.com/p/fbug/source/browse/branches/firebug1.5/content/firebug/browserOverlay.xul#113
>
> take a look at the browser overlay in content/firebug/browserOverlay.xul
> this looks promising:
> <!-- Firebug panel -->
> <vbox id="appcontent">
> <splitter id="fbContentSplitter" collapsed="true"/>
> <vbox id="fbContentBox" collapsed="true" persist="height">
> </vbox>
> </vbox>
The JS code that un-collapses the fbContentBox when the status bar icon
is pressed is here:
http://code.google.com/p/fbug/source/browse/branches/firebug1.5/content/firebug/firebug.js#980
If you can succeed at installing an using Chromebug, then you can see
the result of the overlay in the browser.xul context.
http://getfirebug.com/wiki/index.php/Chromebug_User_Guide
jjb
Cool beans...thanks so much...give me a few weeks and i'll be
answering questions for the next-gen n00bs ;)
lol, thanks :) noly