I'm an Add-on developer, I want to pack extension which has jquery libraries?

''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/985240 /questions/985240]''
I'm an Add-on developer, I want to pack my extension and get its skeleton and this extension has Jquery libraries?

I am also addon developer. I use it like this :-
I use the following example.xul:
<?xml version="1.0"?>
<overlay id="example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<head></head>
<script type="application/x-javascript" src="jquery.js"></script>
<script type="application/x-javascript" src="example.js"></script>
</overlay>
And here is an example.js
(function() {
jQuery.noConflict();
$ = function(selector,context) {
return new jQuery.fn.init(selector,context||example.doc);
$.fn = $.prototype = jQuery.fn;
example = new function(){};
example.log = function() {
Firebug.Console.logFormatted(arguments,null,"log");
example.run = function(doc,aEvent) {
// Check for website
if (!doc.location.href.match(/^http:\/\/(.*\.)?stackoverflow\.com(\/.*)?$/i))
return;
// Check if already loaded
if (doc.getElementById("plugin-example")) return;
// Setup
this.win = aEvent.target.defaultView.wrappedJSObject;
this.doc = doc;
// Hello World
this.main = main = $('<div id="plugin-example">').appendTo(doc.body).html('Example Loaded!');
main.css({
background:'#FFF',color:'#000',position:'absolute',top:0,left:0,padding:8
main.html(main.html() + ' - jQuery <b>' + $.fn.jquery + '</b>');
// Bind Plugin
var delay = function(aEvent) {
var doc = aEvent.originalTarget; setTimeout(function() {
example.run(doc,aEvent);
}, 1);
var load = function() {
gBrowser.addEventListener("DOMContentLoaded", delay, true);
window.addEventListener("pageshow", load, false);
})();

Similar Messages

  • Apple tv   viera cast 2008.  I want to add apple tv via hdmi connection, viera cast which has Amazon prime is already connected thru ethane port on tv.  my network is wifi from APE base and APX.  Will this set up work?

    I want to add apple tv via hdmi connection , and I already have ethernet input of tv for my viera cast connection, which gets Amazon prime.  Wireless connection is APE base and APX,  Want to add
    apple tv to get Netflix so I can cancel my xfinity premium channels.  Will this set up work.  p.s as you can tell I am a Mac novice.

    Providing you have a free HDMI port on the TV and the location you would put the Apple TV will allow it to connect to your network, you should be good to go.

  • Use DISM to add drivers returns an error on an image which has profiles and programdata on a seperate volume

    Hi,
    We capture and modify W7 Ent and Pro OS images on a regular base by using DISM to add drivers for example. Until now we never had a problem because we always had images which only had 1 OS volume captured. DISM works fine to mount the image to a mount
    folder, add drivers, and save the changes in the image.
    However now we encounter an issue when doing the same actions on an image where the \Windows folder was located on the C:\ volume and \programdata and \users folders where redirected to a D:\ volume.
    When mounting the C:\ volume image (including everything except \programdata and \users folders) the error we receive when trying to add or get drivers is:
    Error 3 - the \Windows folder is not a valid Windows directory.
    The DISM.Log file show right before this error that the remote registry could not be contacted.
    This is caused I think because the registry files are located on the \Users folder, but since this folder is not captured in the image (located on another volume during capture) it cannot find the registry.
    My question is: how can we resolve this?
    What we have now is 1 WIM file where index1 is the OS (C:\ volume) and index2 is the \ProgramData and \Users folders (D:\ volume). Probably the way of capturing the image and redirecting programdata/users is not done in a correct way...
    Note: the image index1 and index2 restore works fine - the unattended.xml contains also redirection to the folders paths for \programdata and \users...
    Any help or advice would greatly be appreciated!
    Thx.
    Steve
    Wkr, Steve

    Hi Steve,
    You can be right that DISM don’t support the scenario that User profile and System are in the separated volumes.
    As a workaround, we should use the defaults to put the profile on C: during capture image, and then set the profile path to be on the D: drive after the image deploying.
    Please refer to below KB for how to using Sysprep to redirect profiles’ locations.
    Customize the default local user profile when preparing an image of Windows
    http://support.microsoft.com/kb/973289/en-hk
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • How do I add a site I want to block to the pop-up blocker?

    After I looked something up at Merriam-Webster Dictionayr's online site, I started getting a pop-up for something called Degrees.info, with a URL of
    http://cdn.optmd.com/V2/73950/157983/index.html?g=Af////8=&r=www.merriam-webster.com/dictionary/eponymous+
    I know how to add exceptions to my pop-up blocker, but not how to add a site I want to block. How do I block the above company's pop-up?

    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.
    You can't recover from this 'forget' unless you have a backup of the involved files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
    Firefox keeps JSON backups of the bookmarks in the bookmarkbackups folder, one each day that Firefox has been started up to a maximum of 10.
    *Bookmarks > Show All Bookmarks > Import & Backup > Restore > Choose File
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    Restoring a JSON backup will replace all existing bookmarks, so you lose bookmarks that were created at a time after this backup has been created.
    Note that the xx part in the file name of the JSON backup (bookmarks-####-##-##_xx.json) shows the number of bookmarks stored in the backup.

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • HT1751 if i back up my itunes library to an external hard drive and then add subsequent music and want to back that up a few days later, can i backup the only newly added music without backing up the entire library again?

    hello,
    if i back up my itunes library to an external hard drive and then add subsequent music and want to back up the newly added music a few days later, can i do it without backing up the entire library again? or do i need to back up the entire library each and every time i back up to the external hard drive?

    Just copy Users/yourusername/Music/iTunes (containing your library-files) to your external drive as well as that (extaernal) folder that contains all your audio-tracks.

  • HT1386 I have a new computer with windows 8.1.  I want to add the 52 Gb of music now on my old ipod to itunes on the computer.  I don't want to wipe out the files on the ipod by syncing to the new computer which has no music files on it yet!  How can I do

    I have a new computer with windows 8.1.  I want to add the 52 Gb of music now on my old ipod to itunes on the computer.  I don't want to wipe out the files on the ipod by syncing to the new computer which has no music files on it yet!  How can I do this?

    Apparently I wasn't clear.  The music on my ipod is but a subset of all the music on my external hard drives.  I want to import only the songs and playlists from my existing ipod into the itunes library on my new computer, which currently has no music or playlists.  How can I do this?

  • My mum wants to add Cd's onto her itunes but she only has itunes on her ipad and I have my itunes on my laptop, if i sign out and she signs in will her itunes come up and will my itunes be the same when i log back in?

    So my mum has an ipad and iphone and she wants to connect it to a laptop so she can add Cd's to her itunes and then to her ipad and phone But she doesnt want my itunes as she has bought stuff on her account So if I lgged out of m itunes on my computer will she be able to log in and add Cd's that way? ALso will my itunes be okay afterwards?

    Welcome to the Apple Community.
    iTunes won't let you log into another account and use features such as automatic downloads, iTunes Match etc etc unless the account you are currently logged into has been logged in for at least 90 days. DON'T EVEN TRY IT.
    Instead create a new user account for her on your computer and set up iTunes there for her, avoid using automatic downloads etc

  • I install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    i install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • I want to add a CD to my IPod Classic, the CD has been loaded into my library but my iPod is not showing on i-tunes and I can't get the CD onto my iPod.

    I want to add a CD to my IPod Classic, the CD has been loaded into my library but my iPod is not showing on i-tunes and I can't get the CD onto my iPod.

    Well if your iPod is not appearing under Devices in iTunes when you have it plugged into a high powered USB 2.0 port, then that would explain why this newly loaded CD has not synced to it yet. 
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • Just purchased a new pc. Downloaded Itunes. Downloaded some new music. Went to add the new music to my iphone off my new computer but it wants to wipe all of my existing music which has been purchased from itunes. HELP! What should i do?

    Just purchased a new pc. Downloaded Itunes. Downloaded some new music. Went to add the new music to my iphone off my new computer but it wants to wipe all of my existing music which has been purchased from itunes. HELP! What should i do?

    Kford_red wrote:
    Feel a bit gutted as spent £££'s downloading music tonight and not been able to get the songs onto my phone so far!
    The music you just downloaded tonight to your new computer is safe. The music you purchased on your phone is safe.  You shouldn't feel gutted.  It's your other music that you should have taken better care of.  That would include any music you ripped yourself or purchased outside of iTunes.  That you can't get back.
    It has always been the user's responsibility to back up and protect downloaded music.  If you didn't have a backup of your computer before it started acting funny, that's your fault.  It would be no different than if you lost a music CD.  It would not be a record store's responsibility to replace if you lost it.  Digital music is no different.  Similarly, a phone is not a backup medium.  Phone's break, get misplaced or stolen all the time and are not a substitute for a backup copy of your music and media.
    Computers WILL break.  Hard drives WILL fail.  That's why you back up your data. 

  • TS4062 I am trying to transfer my purchased and uploaded content from my IPhone 4S to my ITunes account on my laptop.  When i try to sync, it wants to wipe out my phone content with what is on my computer which has nothing.  Am i missing something?

    I am trying to sync my iphone 4s to my windowns Itunes account.  When i try to do it, the sync wants to remove all of the content on my phone and replace it with what is on my laptop, which has nothing yet.  I am trying to move all of my purchased and uploaded content from my phone to the computer, but don't see the setting to do that.

    Have you tried contactint the app's developer?

  • Developing a tree menu which has one level submenu

    Hi,
    I am developing an internet based application using JSP. In the application I want to display a tree menu on the left side of screen. Every menu in the tree can contain one or more submenus. When the user clicks on a particular tree menu item ( '+' sign on particular tree menu item), the sub menu appears and when submenu item is clicked, then my application will load the corresponding JSP page on the right hand side of the screen. I was wondering how to implement this menu functionality using JSP.
    regards,
    Jatin.

    You will have to use JavaScript to display/hide menus. Look up Dynamic Drive's webpage which has a lot of dynamic content like this.

  • I want to update my iphone which has 6.1 to iOS7. Can I do it thru the service center or do I need to do it on my own. Updating at home is lot more inconvinient as the internet connection is not stable.

    I want to update my iphone which has 6.1 to iOS7. Can I do it thru the service center or do I need to do it on my own. Updating at home is lot more inconvinient as the internet connection is not stable.

    To add to templeton advice, you need at least 3.5 GB free space to update directly from iPhone.
    And don't forget to make a backup at home before you proceed.

  • I cannot add a Wi-Fi guest network. Gone to Utilities Airport Utilities and all get is an image/browser of my Airport Extreme. Looking for the browser which has the title Wireless but cannot find anywhere. I need help?

    I cannot add a Wi-Fi guest network. Gone to Utilities>Airport Utilities and all I get is an image/browser of my Airport Extreme. Looking for the browser window which has the title Wireless but cannot find anywhere. What am I doing wrong?

    Open AirPort Utility. The first screen looks something like this:
    Click on the AirPort Extreme and another screen will appear. Click Edit, then the window with the Wireless tab will appear.
    If you do not see these screens, you will need to start over and configure your AirPort again.

Maybe you are looking for

  • How do I use Time Machine to downgrade from Snow back to Leopard?

    I have a MBA and optical drive, and I use Time Machine to backup. I'd like to revert back to pre-Snow, and pre 10.6.1. Where/how do I do this with time machine? Do I go to a previous date that had the old OS, and just select the System folder and the

  • Issue with "unknown user type 6" on Coherence 3.5.2

    Having an issue with a cluster which is running using an internally developed cluster starter tool. This tool, and the associated cluster, all use POF, and upon attempting to connect a non-storing member to the cluster from java, the following except

  • Help with call to web service

    Hello, I am using a web service to do address validation. I created the web service and it ran OK, but the report always says no data found. I wanted to see what was in the returned collection, so I created a new region with the following SQL: SELECT

  • Illegal angle problem as I insert an Aiff file...?

    I inserted an Aiff audio file but when I click on the button to play it, an error message appears "illegal angle situation. Only the main angle will be simulated." OK. On pressing OK, nothing happens. Does DVDSP not like Aiffs?

  • Passing Values from form2 to form1

    Hi, I have two forms .(6i) Form1 which is mdi form. form2 which is called by form1 within form1 using open_form. Now the task is, User selects some value on form2 which say for ex. student no. & name. The application requires to display some data per