js code not running in extension - Mozilla

This is a discussion on js code not running in extension - Mozilla ; Hello everyone, I am trying to write a toolbar extension for firefox and am facing problems with stripping of URLs in the body of the web page. I would sure appreciate any pointers :-) The problem: the following code works ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: js code not running in extension

  1. js code not running in extension

    Hello everyone, I am trying to write a toolbar extension for firefox
    and am facing problems with stripping of URLs in the body of the web
    page. I would sure appreciate any pointers :-)

    The problem: the following code works prefect when put in a standalone
    web page but seems to freeze the browser window when put in the js
    file linked for my extension.

    Links



    foo

    bar





    could anyone give me any pointers please, more detailed commentary
    related this post can be found at

    http://groups.google.com/group/comp....de6d290be69d8#

    Thanks in advance.

  2. Re: js code not running in extension

    newbiegalore wrote:
    > Hello everyone, I am trying to write a toolbar extension for firefox
    > and am facing problems with stripping of URLs in the body of the web
    > page. I would sure appreciate any pointers :-)
    >
    > The problem: the following code works prefect when put in a standalone
    > web page but seems to freeze the browser window when put in the js
    > file linked for my extension.
    >


    > function init(){
    > var i = document.links.length;


    In the web page 'document' refers to the web page document; in the
    extension it refers to browser.xul (in a simple extension).

  3. Re: js code not running in extension

    On Apr 15, 7:43*am, "John J. Barton"
    wrote:
    > newbiegalore wrote:
    > > Hello everyone, I am trying to write a toolbar extension for firefox
    > > and am facing problems with stripping of URLs in the body of the web
    > > page. I would sure appreciate any pointers :-)

    >
    > > The problem: the following code works prefect when put in a standalone
    > > web page but seems to freeze the browser window when put in the js
    > > file linked for my extension.

    >
    > > function init(){
    > > var i = document.links.length;

    >
    > In the web page 'document' refers to the web page document; in the
    > extension it refers to browser.xul (in a simple extension).


    Thanks to the people who replied back :-)

    The problem has been solved and its solution is outlined at
    http://forums.mozillazine.org/viewto...339707#3339707

+ Reply to Thread