mozilla

Prevent Venkman (aka JavaScript Debugger) from printing to the console via window.dump()

The Venkman addon (officially called JavaScript Debugger) likes to print lots and lots of information using window.dump (or at least I assume that's what it's using since I don't know any other way to print to console). I would like it if the console contained only the output from my code, and not all the output from Venkman. I don't min...

Mozilla Firefox programmatic screen capture

Hi, I'm interested in writing javascript that will programmatically perform a screen capture of what is viewed in the browser, and save the file to the hard disk. I'd like to be able to type in a list of keywords, and use a search engine's api to programmatically view the page, and take a screen capture. My first question is, does this...

css3 moz-linear-gradient not working

For some reason my webkit definition works on chrome but in firefox 3.5.11 I am not seeing my gradient. html { height: 100%; } body { height: 100%; background-repeat: no-repeat; } body{ height:100%; background-color: #eaebeb; background-image: -moz-linear-gradient(top, #eaebeb, #fff); background-image: -webkit-gradient(li...

Why does all browsers do not set all output perfectely ?!!?

This is an html page : <html> <head> <title> Frame Set </title> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <!--<script type="text/javascript" src="frame.js"></script>--> <link rel="stylesheet" href="frame.css" type="text/css" media="screen" /> <script language="JavaScript" type="text/javascript"> $(document).rea...

How can I scroll a XUL tree element by less than a whole row?

I've got a XUL tree element, and would like to scroll the rows up and down on a per-pixel basis, instead of by whole rows, if possible. Browsing through the source to mozilla-central, and Thunderbird's copy at comm-central, it looks like I can only scroll by rows, but I guess I'm hoping that I missed something. (The other option I saw ...

Firefox extensions - Difference between 'traditional toolbar' and one that actually shows up in the browser client area

I'm looking into developing a Firefox extension, and would like my 'toolbar' to run in the 'client' area, since it will appear and disappear based on the page that they are on. One example of a client bar that does something similar is the Invisible Hand toolbar. Most of the extension tutorials show how to build a 'regular' toolbar. ...

Converting between physical pixels and CSS pixels

Mozilla's documentation from elementFromPoint explains that the coordinates are not in physical pixels, but "CSS pixels". Exactly what are CSS pixels? I was under the impression that a pixel in CSS was the same as the physical pixel. If this is not the case, how does one convert between physical and CSS pixels? ...

Trying to run Mozilla XUL demos

I've downloaded the xul demos from this page, a single file called "top.xul", but when I open it on Firefox it says the file for each demo is missing.. Is it just here? Do someone succeed to run the demos? ...

What is "content loaded as chrome?"

-moz-user-select Controls the appearance (only) of selection. This does not have any affect on actual selection operation. This doesn't have any effect on content loaded as chrome, except in textboxes. Source: link text I know what -moz-user-select does, but what is "content loaded as chrome?" Thanks ...

how to write a dos commands written inside a batch file into a javascript.

Hi , I am using the following javascript: function doPrint(){ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var exe = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile); exe.initWithPath("C:\\temp\\print.bat"); exe.launch(); } print.bat has the following com...

How to enforce definite length encoding with CMS in NSS?

How to enforce definite length encoding with CMS in NSS? I am trying to get NSS's CMS encoder to encode with DER, but the folks as mozilla have apparently only worried about BER encoding (as far as I can tell.) I am able to get definite encoding with primitive types, but all constructed types have indefinite encoding. Code I am curren...

Why does a ChromeWorker throw "Components is not defined"

The documentation on ChromeWorkers says that they have "chrome privileges", and chrome privileges are supposed to mean they can do anything, but when I create a ChromeWorker and try to use Components I get an error that 'Components' is not defined.. So my question is 1) why is Components not available? 2) what is available to a ChromeWo...

Problem copying HTML from JEditorPane to external applications

Hello! I'm having trouble copying HTML from JEditorPane to system clipboard and then pasting into other applications: OpenOffice 3.2 - Says "Requested clipboard format isn't available" Thunderbird 3.13 - Does nothing on paste Firefox 3.6.9 - Accepts plain text but for example in GMail "Compose mail" does nothing on paste I'm running ...

How to stop overflowing of dynamic data beyond table ?

It's a Struts application. I have to show some dynamic date in the left hand panel retrieving from DB or any session object e.g Notes. If there is space between words then its working fine. But while testing if I am entering some characters without space, then while showing the data in Left hand panel is crossing the table and coming on ...

Overcome non-cacheability of pages on Firefox

I'm trying to build an extension to Firefox to get a page from a web server and put it in the browser's cache, so that when the user asks for that link, it'll be retrieved directly from the cache, instead of asking to the original web server. But I'm having trouble with some pages which put headers to avoid cacheability, such as "Cache-...

Why this JavaScript is not working in Mozilla FF ?

Its a struts 1.2 application. I have a java script function. Its working in IE and Chrome but not in Mozilla. It is supposed to change the button after clicking that button and perform some action. function changeButton(obj) { obj.form.action=obj.form.action + "&submitType=Bucket Usage"; obj.form.submit(); document.getElementById("s...

Converting -moz-linear-gradient For All Other Supporting Browsers

Here's my rule: #element { background: -moz-linear-gradient(center top, #FFF 8px, #F2F2F2 24px, #F2F2F2 100%) repeat scroll 0 0 #F2F2F2; } I want to take that rule and apply it to all of the browsers that support a linear gradient. What would this rule's syntax look like for Chrome, Safari, and ... Internet Explorer? I'm considerin...

FCKeditor not working on Mozilla

I have uploaded my site to the server. FCKeditor is only working in Internet Exploder but not working on Mozilla. What should i do? ...

What event fires to an firefox extension when the back button is selected or history item is selected

My extension needs to know that the tab is displaying something from the history rather than the latest loaded document. onload doesn't seem to be the right event. It doesn't always fire. ...

How to preprocess HTML before it's loaded and parsed by Mozilla?

I need a way to process HTML before it's actually loaded and parsed by Mozilla. Is there any content listener that I can use in my Firefox extension? ...