Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8389673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:47:31+00:00 2026-06-09T18:47:31+00:00

I am developing a Firefox addon using the Addon Builder. I use JQuery UI

  • 0

I am developing a Firefox addon using the Addon Builder. I use JQuery UI in my addon panel, and also would like to use it from the content script tied to the panel. In the panel page everything works fine. In the content script, JQuery seems to work, but I see no effect of JQuery UI calls, such as the slider case below.

Here is part of my main.js that defines the panel:

var panel = require("panel").Panel({
    width: 350,
    height: 400,
    contentURL: require("self").data.url("panel.html"),
    contentStyleFile: data.url("css/jquery-ui-1.8.22.custom.css"),
    contentScriptFile: [
        data.url("js/jquery-1.8.0.js"),
        data.url("js/jquery-ui-1.8.22.custom.min.js"),
        data.url("panel.js")
        ]
});

and here’s the call that triggers the custom event:

panel.port.emit("loadingDataEvent", t );

In panel.js, the following part tries to use JQuery and JQuery UI. The JQuery call is completed sucessfully, however the JQuery UI call that tries to update the slider object does not have any effect on anything:

self.port.on("loadingDataEvent", function (t) {
    $("#load-counter").html("<br />Not enough data yet. Approx. " + t + " secs. to go...");
    $( "#progressbar" ).progressbar( "option", "value", (60-t)/60*100 );
    document.defaultView.postMessage('{}', '*');
});

In my panel.html I can use both JQuery and JQueryUI without any problems by including them the conventional way:

<link type="text/css" href="css/jquery-ui-1.8.22.custom.css" rel="Stylesheet" />    
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
 ...
<script>
  $(function() {
    $( "#tabs" ).tabs();
    ....
  });
</script>

Any ideas on where I could be doing a mistake?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:47:33+00:00Added an answer on June 9, 2026 at 6:47 pm

    It took me much shorter than I expected to find the answer. My mistake was to use JQuery inside of script tags in the html file, such as declaring a slider, so these objects were not accessible to the content script. Separating all scripts to a different file and adding it to the list of script files that the content script will use, solved the problem:

    var panel = require("panel").Panel({
        width: 350,
        height: 400,
        contentURL: require("self").data.url("panel.html"),
        contentStyleFile: data.url("css/jquery-ui-1.8.22.custom.css"),
        contentScriptFile: [
            data.url("js/jquery-1.8.0.js"),
            data.url("js/jquery-ui-1.8.22.custom.min.js"),
            data.url("panelpage.js"), // <------ this is the new file
            data.url("panel.js")
            ]
    });
    

    EDIT:

    Some time after I wrote this, I also found out the following: Once the data.url(“panelpage.js”) is passed into the contentScriptFile, the corresponding reference to the script file needs to be deleted from the HTML file that includes it between script tags, otherwise that seems to cause some conflicts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m developing a Firefox addon and I would like to use facebook sdk in
I am developing a firefox addon(using Add-on Builder), which compares the requested webpage content
I'm developing a firefox addon and would like to have a fixed position (relative
I'm developing a Firefox extension and would like to track its use with google
I am developing an addon to Firefox using addon-builder. I want to replace a
While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard
I am developing my first addon for Firefox, and I'm using the Extention Developer
I am developing a Firefox Extension (Firefox 3.6 and up) and i would like,
I am developing a Firefox Mobile (Fennec) extension and I want to use jQuery
I am developing a Firefox addon and I have a Perl script which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.