Compare Revisions

Tabbed browser

Change Revisions

Revision 139780:

Revision 139780 by GijsKruitbosch on

Revision 139781:

Revision 139781 by Jrm on

Title:
Tabbed browser
Tabbed browser
Slug:
Talk:Code_snippets/Tabbed_browser
Talk:Code_snippets/Tabbed_browser
Content:

Revision 139780
Revision 139781
tt25    <hr>
26    <p>
27      The example event handler doesn't seem to work for me with 
 >firefox 2.0 - in a .js file included from an xul overlay tag:
28    </p>
29    <pre class="eval">
30gBrowser.tabContainer.addEventListener("TabSelect", MSCB_changedT
 >ab, false);
31</pre>
32    <p>
33      gives "gBrowser has no properties"
34    </p>
35    <pre class="eval">
36 window.gBrowser.tabContainer.addEventListener("TabSelect", callb
 >ack, false);
37</pre>
38    <p>
39      gives: "window.gBrowser has no properties"
40    </p>
41    <p>
42      I think this code needs to be inside a function that only g
 >ets run after the DOM is initialised? (eg put inside a function t
 >hat is added with the window.addEventListener("load", ...))
43    </p>
44    <p>
45      11:57, 19 December 2006 (CET)
46    </p>

Back to History