LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Firefox extension not loading (https://www.linuxquestions.org/questions/linux-newbie-8/firefox-extension-not-loading-792684/)

Neethusha 03-02-2010 12:52 PM

Firefox extension not loading
 
I am developing an extension for firefox that enables users to chat with any others who happen to be browsing the same website at the same time.
The xul file adds a tool bar with a button "Enable Chat" in the browser toolbox. when a user clicks the Enable chat button, the server initiates the chat.
I went through many tutorials for extension development. They have helped. But I cant seem to get my extension up properly. Ill just put up the contents of my files for extension...pls tell me if anything is wrong...

/home/neethusha/extensions/blaze (blaze is the name of the extension)
chrome/content/blaze.xul
install.rdf
chrome.manifest

blaze.xul
<?xml version="1.0"?>
<overlay id="blaze-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbox id="navigator-toolbox">
<toolbar id="blaze-toolbar" toolbarname="Blaze Toolbar" accesskey="B" class="chromeclass-toolbar" context="toolbar-context-menu"
hidden="false" persist="hidden">
<toolbarbutton id="blaze-button" tooltiptext="Click for chat with other users"
label="Enable Chat" oncommand="execute()" />
</toolbarbutton>
</toolbar>
</toolbox>
</overlay>

chrome.manifest

content blazebutton chrome/content/
overlay chrome://browser/content/browser.xul chrome://blazebutton/content/blaze.xul

install.rdf

<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">

<Description about="urn:mozilla:install-manifest">

<!-- Required Items -->
<em:id>blazebutton@anywhere.com</em:id>
<em:name>Tutorial Toolbar</em:name>
<em:version>1.0</em:version>

<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.5.*</em:maxVersion>
</Description>
</em:targetApplication>

<!-- Optional Items -->
<em:creator>Neethusha</em:creator>
<em:description>An example toolbar extension.</em:description>
<em:homepageURL>http://www.google.com</em:homepageURL>

</Description>
</RDF>


I made the pointer to the extension in a file named "blazebutton @anywhere.com" and saved it in the firefox profile folder "/home/neethusha/.mozilla/firefox/d5ma3rr9.dev/extensions"

When i open the firefox in this profile, the extension is not loading...

I know my thread is big...:-( but pls do help me...

TB0ne 03-02-2010 02:10 PM

Quote:

Originally Posted by Neethusha (Post 3882927)
I am developing an extension for firefox that enables users to chat with any others who happen to be browsing the same website at the same time.
The xul file adds a tool bar with a button "Enable Chat" in the browser toolbox. when a user clicks the Enable chat button, the server initiates the chat.
I went through many tutorials for extension development. They have helped. But I cant seem to get my extension up properly. Ill just put up the contents of my files for extension...pls tell me if anything is wrong...

I made the pointer to the extension in a file named "blazebutton @anywhere.com" and saved it in the firefox profile folder "/home/neethusha/.mozilla/firefox/d5ma3rr9.dev/extensions"

When i open the firefox in this profile, the extension is not loading...

I know my thread is big...:-( but pls do help me...

Spell out your words.

And without seeing all your code, and not having any details, how do you expect anyone here to help you?? Version/distro of Linux? What error(s) you're getting? What you see in the log files?

Best anyone here can tell you, is that your program has problems. Fix them.

smeezekitty 03-02-2010 05:37 PM

What did or did not do?

Neethusha 03-02-2010 11:35 PM

the files above are for displaying a button.

I have not included the javascript yet....but even then this is supposed to display a button....

I tried copy pasting the tutorial at borngeek.com, that too without the javascript, just the basic skeleton and it did display the tutorial toolbar....
if my files do not display the button how will the javascript work anyway?


All times are GMT -5. The time now is 08:52 AM.