LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2010, 12:52 PM   #1
Neethusha
LQ Newbie
 
Registered: Feb 2010
Posts: 16

Rep: Reputation: 0
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...
 
Old 03-02-2010, 02:10 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,188

Rep: Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405Reputation: 4405
Quote:
Originally Posted by Neethusha View Post
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.
 
Old 03-02-2010, 05:37 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
What did or did not do?
 
Old 03-02-2010, 11:35 PM   #4
Neethusha
LQ Newbie
 
Registered: Feb 2010
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
  


Reply

Tags
extension, help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firegpg firefox extension fakie_flip Linux - Software 0 12-29-2007 06:01 PM
autofill extension for firefox? mma8x Linux - Software 3 04-27-2007 01:02 PM
Firefox extension pueblonative Linux - Software 2 02-07-2007 08:03 AM
looking for a firefox extension win32sux Linux - Software 2 05-31-2005 06:28 PM
Firefox Google Extension d_t_baker Linux - Software 2 08-04-2004 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration