mozilla

Beginning XUL & XPCOM development with XULRunner?

I am planning to design an application XUL & XPCOM for proprietary system. So i have decided to use C/C++ but how can I start the development as a beginner in this field I cannot find a good guide to start around. It will be good if you can give some links and books. I also would like to know how to prevent the user from modifying the co...

Detect failure to load contents of an iframe

I can detect when the content of an iframe has loaded using the load event. Unfortunately, for my purposes, there are two problems with this: If there is an error loading the page (404/500, etc), the load event is never fired. If some images or other dependencies failed to load, the load event is fired as usual. Is there some way I c...

Forcing a description widget to wrap in XUL

I am trying to get a description in a XUL application to wrap, even if it contains long lines. For example, if I save the following as a .xul file and open it in Firefox, it looks fine and wraps appropriately: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="theWindow" title="T...

Prevent line/paragraph breaks in contentEditable

When using contentEditable in Mozilla, is there a way to prevent the user from inserting paragraph or line breaks by pressing enter or shift+enter? ...

Hiding entire table resizes it

Having an HTML page with a simple table and js code to do show / hide on it: <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>title</title> <script type="text/javascript"> function showErrorSteps() { var el = document.getElementById("t1"); if(el.style.display=="none") { ...

Which Framework or tool Mozilla uses to develop their products??

Hi, I know this is not related to programming but I am curious to know about which Framework or tool (like we use .NET Framework to develop desktop application interface) mozilla uses to develop their products like "Firefox", "Thunderbird" etc. I like the interface of their applications the buttons especially looks cool and light weigh...

a:visited doesn't work in Mozilla Firefox

I have created a link and when I try to set the style; a:visited { text-decoration: underline; color: #FF0000; } It doesnt seem to work. It works fine in IE. I have also followed the order; link, visited, hover, active. Is this a known issue, or am I making any mistake? ...

What's a good embedded browser for a pygtk application?

I'm planning on using an embedded browser in my pygtk application and I'm debating between gtkmozembed and pywebkitgtk. Is there any compelling difference between the two? Are there any third options that I don't know about? It should be noted that I won't be using this to access content on the web. I'm mainly using it for UI purpose...

GtkMozEmbed or WebkitGtk on Windows

Hello, does anyone knows how to compile either GtkMozEmbed or WebKitGtk on Windows? I'm using WebkitGtk on Linux, but now I need to port the application to Windows. I didn't find any binary and failed building from the source. I already have a gcc 3 + GTK+ 2 + make, binutils, etc, working (I can compile GTK+ 2 applications). ...

Can I create a bookmarklet button with icon?

Can I create a bookmarklet button with icon? ...

Getting all nodes between the current node and another without current()?

I'm working on a Greasemonkey script which needs to operate on each node between two others. Currently, I'm getting the first node using an (increasingly-complicated) XPath expression. I have another expression to get the "between" nodes, but it contains the initial expression twice and is getting rather long. Here's an earlier versio...

Prerequisites on installing Spidermonkey

Considering there is no Mozilla related engines installed on a linux machine. What are the specific libraries or engines needed to successfully install Spidermonkey? ...

Is it possible to use jQuery to manipulate XUL elements?

I know its possible to integrate jQuery within mozilla addons, but are we able to manipulate (animate, move, adjust transparency, etc) xul elements themselves? From what I understand, the mozilla addon can use jquery to manipulate html/dom elements, but not sure about xul elements. All links and tips are appreciated, -=Vin ...

SQLite and Javascript : Checking for existence of data before inserting OR letting SQLite throw an exception.

My primary question is which approach is faster. Some briefing I'm developing an application using Mozilla. I have this one module where I capture some data and store it in database. The data comes in intermittently. No duplicates are to be stored. For discussion sake we can assume a table with just one column, and let's name that c...

Writing a Firefox XPCOM plug-in with a native window interface? (like ActiveX control)

I have an ActiveX control that works fine in Internet Explorer and the ActiveX Control Test Container program. The actual behavior of the control is split in two parts, where one part is the ATL gunk that interfaces with the OLE host, and the other part is the real meat, which just receives callbacks for window attach, sizing, drawing an...

Mozilla 3.0.8 and Chrome height in em bug workaround.

I've got a textarea inside a div: <div id="textareawrapper"> <textarea id="chat"></textarea> </div> ...and CSS: #textareawrapper { border 1px dashed pink; margin:0;padding:0; position: absolute;bottom: 0em;left:7.5em;right:7.5em;height: 7em; } #textareawrapper textarea {margin:0;padding:0;width: 100%;height:7em;} IE 7...

How do I get my ATL COM DLL IE plugin to work in Mozilla?

I have COM DLL(ATL Project) which handles the download dialog in IExplorer. I want that same DLL to work in Mozilla. What do I have to do for this? Is it possible? ...

accessing cookies, hopefully in javascript

I am working on a Firefox add-on that will allow users (all of whom are part of a specific group; this add-on is very limited in audience scope) to see the status of their authentication cookie from the status bar. We all have to authenticate to access work-related sites, but we get no warning when the cookie expires, so this causes anno...

automating RAPIDSHARE piracy file take down process

I found a new search engine that speeds up finding piracy files from rapidshare, how could I automate a tool that finds our product using this engine and outputs the list of the rapidshare URLs that will be then sent to [email protected]. search engine: http://rapidlibrary.com/ (note, the captcha image appears just once there) Belo...

Porting addons to Mozilla Prism 1.0b1

Hi folks, I'm trying to port an application to the newest version of Mozilla Prism (1.0b1 currently). The instructions say to put this in install.rdf: <em:targetApplication> <!-- Prism --> <Description> <em:id>[email protected]</em:id> <em:minVersion>0.4</em:minVersion> <em:maxVersion>1.0.0.*</em:maxVe...