firefox

Fastest way to debug Firefox addons during development

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firefox (5) open the JavaScript Debugger Can we speeden up the process? Like install it into Firefox without a restart, or configure the build script to install it into F...

Why window.print is printing all pages in IE but only one page in firefox?

I am having a JSP page, where i am dynamically creating a Table data. ( My page is having only table, and nothing else ). Number of rows in table can go upto 1000s. What i am doing is: after the complete page i have written <script> function printPage(){ window.print(); } </script> This code is working fine to print all pages ...

How can I implement a content converter in Firefox for all page elements?

I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not sure where to look for what I need. Basically I need to be able to filter all content that is received by the browser with a certain Content-Type header. I tried implementing a stream converter, and this works, but only for the top-level document in the page...

FireFox "XML Parsing Error" with Hello World WebSite!

Hello I get the following problem when trying to open an ASPX page in FireFox: "XML Parsing Error: no element found Location: http://localhost/FrameworkTest2/Default.aspx Line Number 1, Column 1:" This site works fine in IE. To get to the root of the problem, I removed all code and built a "Hello World" page instead. This works in I...

jqmodal and nyromodal will not work w/ Jquery 1.3.2 and Firefox toolbar extension

I've been trying to create my own firefox toolbar with commands that will open and close a modal dialog using either jqModal or nyroModal. In both cases the act of opening the dialog causes errors and I can't find anything out there as to why modals would break. Browser: Firefox 3.0.11 JQuery: v1.3.2 jqModal: r14 nyroModal: 1.5.0 Sampl...

Table layout problem - Firefox versus Chrome and IE7

I'm trying to layout an HTML table (it's tabular data) and it is rendering differently in Firefox 3.5 and Chrome 2.0.172 (EDIT and IE7 - which renders the table like Chrome does). I have the table inside a div: <div id="listcontainer"> <table class="tasklist"> <colgroup> <col class="narrow" /> <col class="wide" /> ...

firefox iframe history

In a web app we use IFRAME to let users select items for the parent page. The problem is that FIREFOX (3.5) adds a copy of the same (parent) page to history each time IFRAME is opened. The web app is using history.back() to go from parent page to one that called that page. We can fix that by passing the "back" page as parameter from c...

IP Address Lookup in a Firefox Extension

I'm writing a Firefox extension and I need to find the ip address of the currently loaded page. I can get the hostname of the page with window.location.host, but is there any way to find the ip for that hostname? I tried looking for the answer at the Mozilla Developer Center but was unable to find anything. EDIT: I would use something...

RegEx for all letters (including Chinese, Greek, etc.)

I need a regex that also matches Chinese, Greek, Russian, ... letters. What I basically want to do is remove punctuation and numbers. Until now I removed punctuation and numbers "manually" but that does not seem to be very consistent. Another thing I have tried is /[\p{L}]/ but that is not supported by Mozilla (I use this in a Fi...

how can I apply a CSS stylesheet to all page views in my Firefox browser

I would like to apply a CSS stylesheet to all page views in a Firefox browser using a menu option and be able to toggle this when required. (The functionality I want exists in IE: Tools | Internet Options | Accessibility | Format Documents Using my Stylesheet (although I think this may affect pages outside of simply IE). ...

JavaScript: Dragging Mouse on Links

I'm trying to make a calendar page where you can click and drag to select multiple calendar days at once. Everything works fine in Google Chrome, but in Firefox, when I try to start dragging, it fails. The reason for this is that each calendar day is contained in a link (<a></a>). When you try to drag links in Firefox, it does its own...

building a Cygwin version of GNU make

I want to add a couple of logging options to GNU make so I can see what is happening when building FireFox and friends. I have the make-3.80 sources and a complete working Cygwin build environment. Starting with ./configure and the Make I get a working executable as expected. Question: What configuration is required so the executable...

Why does the JavaScript RegExp /^\w+$/ match undefined?

Why does the the RegExp /^\w+$/ match undefined? Example code: alert(/^\w+$/.test(undefined)); This will display true in Firefox 3 (only browser I tested it on). ...

tabcontainer.addEventListener("TabSelect .... works on Firefox 3.0 but not on 3.0.11, anyone has an idea ?

Tab events like Tab select etc used to work on Firefox builds 3.0 container.addEventListener("TabSelect" ... etc where container is gBrowser.tabContainer; Any one has a idea what needs to be changed to make this work on 3.0.11 ...

Align Checkbox inside a <div>

Hi, I seem to be having a strange problem wich I cant fully understand. This is my html: <div class="menu"> Por favor seleccione os conteúdos: <br/> <br/> <br/> Nome: <input name="Nome" class="checkbox" type="checkbox" value="Nome" checked /> <br/> <br/> Data: <input name="Data" class="checkbox" type="checkbox" value="Data" checked />...

Intercepting mouse over href from Firefox extension

How can I know the url under the mouse cursor from a firefox extension? I need to interact with the href from within the overlay.js file. I'd want a lightweight solution, for example I don't want to attach some event to all hrefs found in a page. I'd rate a mouseover solution but how can't find anything useful for me! Thanks ...

Firefox: "Error loading script"

"Error loading script" occurs under FireFox 3 if I "quickly click" different links on my web site (Asp.Net MVC + jQuery, full postbacks). It is rather easy task to reproduce this bug. But I cannot understand why it occurs? Every time it shows different failed script file. All JavaScript files are included before closing tag. Errors are...

npapi - javascript doesnt load the content of a plugin

Hi ! I wrote a firefox plugin using C++ and used the <EMBED> to load it to html. In javascript I got the embedded plugin by using document.getElementByID, but when I tried to call a plugin function, the function was undefined. Moreover, plugins constructors did not run while loading the page. The same html file and plugin seems to w...

How can a Firefox extension get its own version number programmatically?

How do I programatically get my own Firefox extension's version number with Javascript? My extension has an install.rdf file containing the version number similar to below. I want to extract the contents of the <em:version> tag. <?xml version="1.0" encoding="UTF-8"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="...

HTML IE specific code

Can I use specific html if the browser is IE? (Assuming FF is the default browser) Foe example: html line 1 if IE html line 2 else html line 2 html line 3 html lin3 4 I am aware of using different CSS, but that won't work for this. Thanks. ...