I downloaded the HelloWorld extension of yours in
order to change it a bit to match my demands of my extension.
I want the extension to show me the value inside the tag below (from a
certain website):
<span id="717025_4" class="level_red">1.31867</span>
the current value is : 1.31867, and it changes every few seconds.
you told me to do that:
1) Select the HTML panel
Firebug.chrome.selectPanel("
html");
2) Get an element from the page
var element = context.window.document.getElementById("my-element");
3) Select an element in the panel
var htmlPanel = context.getPanel("html");
htmlPanel.select(element);
but when I paste that code in yours "HelloWorld.js" file (inside the
HelloWorldPanel function)
it doesn't work (and instead of "element" I write "717025_4").
what am I doing wrong here?
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug