Saturday, October 20, 2007

Session 8 -Modifying the Browser Lab

I'm trying to do this lab: http://zenit.senecac.on.ca/wiki/index.php/Modifying_the_Browser_Lab
but I don't have the build on the computer and trying to get through DVD or my iPod says that will take 50 minutes!!!!
I will try to use my laptop, which has the source code BUT I had so many problems trying to build on VISTA (let's try again)
  • On this file: http://mxr.mozilla.org/mozilla/source/browser/base/content/tabbrowser.xml
  • t is a XUL:tab (http://developer.mozilla.org/en/docs/XUL:tab)
    1091 var t = document.createElementNS(
    1092 ",="">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
    1093 "tab");
    1111 this.mTabContainer.appendChild(t);
  • mTabContainer is a:
     159       
    160 document.getAnonymousElementByAttribute(this, "anonid", "tabcontainer");
    161
  • Instead of appending to the end, I want to place it just beside the current tab
  • There are few ideas I have:
    • In http://developer.mozilla.org/en/docs/XUL:tabs,
      I have found selectedIndex and insertItemAt
    • this.mTabContainer.insertItemAt(this.mTabContainer.selectedIndex+1, t);


I never finished this lab, continue reading session 13

No comments:

Post a Comment