mozilla

Javascript: What does the function given to setTimeout get called with?

I have code like this: setTimeout(foo, 600); I always thought that foo didn't take any arguments, e.g.: function foo() { /* bars */ } However, doing the following: function foo(a) { alert(a); /* bars */ } Popped up an alert displaying -7. What does this number represent? ...

Link in table cell doesn't work in mozilla...

I'm returning a PHP array from a function and want to display in a tabular format with appropriate links in their respective cells.This works fine in IE7(Windows 7) but the links r not clickable in firefox 3.5.7. Here is the little of code : <td>Monday<?echo "<br>" . $date[1];?></td> <td><? if($timetable['mon']['1']!=""){ ?> <a href="...

Select and operate on read only sections in a HTML document with contentEditable

I would like to experiment with the following user interface: 1. The content consists of quotes followed by comments. 2. The comments are editable, while the quotes are not. However, quotes should be able to have parts of the quote highlighted, bolded, etc. 3. The entire text (including quotations and comments) should be able to be sele...

Image not showing in IE but is showing in Mozilla - Odd

Hi All, If you look at this link: http://www.internetworld.co.uk/g/2010/ExhibLogos/ExhibID_137_Graphic1.jpg. In IE8, it doesn't show. In Mozilla it does. I have no idea as to what would cause this issue as this is just a bog standard jpg. This is also happening for other companies other than ourselves on the same site. Can anyone shed ...

How do I look under the covers and see how HTML is rendered?

For example: <input name="abutton" type="button" value="This is not a button" /> I know this gives me a button. But I also know that someone had to figure out how wide my text was, draw a button of the correct size, place my text in there... etc. Let's use Mozilla as an example. I did some googling and found this, so I think I'm on...

Cross-site json rpc : Python server side and Mozilla extension using Javascript client side

hello, I am building a mozilla extension that contacts a python application on a remote server to send and receive data. The python application can be used using xml-rpc from a python console.I am given the task to design a json-rpc that would contact the same application.Making the python server side has been easy which can be accesed u...

What lib in the gecko 1.9.3 SDK do I link against to use moz_xmalloc()?

I'm trying to link my XPCOM extension against the 1.9.3a3pre SDK and I get the following: error LNK2001: unresolved external symbol _moz_xmalloc So, what lib do I need to link to? The documentation doesn't say. This is on Windows right now, but I'll need it to build on Mac and Linux (32bit/64bit) as well. Edit: Now with bounty...

Window.open javascript function is not working in Mozilla, but working in other browsers

Hi, Window.open javascript function is not working in Mozilla, but working in other browsers, here is what I have write. <a href="javascript:window.open('../Terms.aspx','Terms','width=550,height=400')"> click here</a> Actually what happened in Mozilla is popup is opened but parent window is blank with [object Window] ...

reciving an Element object from rhino when using e4x

hi, i have a java object called myObject with function foo(Element e) that i am binding to the rhino context. in the script i am creating an XML using E4X, my question is how can i would pass this XML object as a parameter to foo? there is one solution to work with Strings something like: var data = new XML(); //Set data using E4X da...

Autocompletefb working fine in mozilla but not in IE7

Could you please suggest a debugging tool for browser issues? ...

Webkit CSS3 for Mozilla

What is the equivalent of -webkit-transition: opacity 0.6s linear; in -moz? I tried replacing -webkit with -moz but nothing happened. I even tried extending it to -moz-transition-property/duration but with no success. ...

Validating -moz-border-radius / -webkit-border-radius

Hi, is there any way to validate -moz-border-radius / -webkit-border-radius in the CSS validator? The client wants validation buttons in the sidebar (ugh!) and I can't find any way to bypass it. I've used @import too, no success. ...

Multiline TextField in a Xul "Box" Element

I need to put something like a Textarea into a "box" element in Xul. It needs to be multiline. It's for an explanation frame. Is that possible? I can't find anything on the MDC official site. ...

Problem with keyPress in Mozilla

I am usingtextarea to get some inputs. A label shows the updated chars left. It works fine in IE, but in FF 3.0, after reaching the max limit, it doesn't allow to delete or backspace key. I am using a javascript function on keypress event of the textarea. the javascript code is function checkLength() { var opinion = document.getEl...

render HTML (convert to bitmap)

Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I wasn't able to find a good starting point on how to do it. When I last tried doing this 5 years ago, I ended up using Gecko to send the document to a printer, which i...

how to compile a program with gtkmozembed.h

Hi, i have written a program under ubuntu, in which i include gtkmozembed.h. I am facing a problem in compiling the program.Below is the simplest form of a program which uses gtkmozembed. #include <gtk/gtk.h> #include <stdio.h> #include <gtkmozembed.h> int main(){ GtkWidget *mozEmbed; mozEmbed = gtk_moz_embed_new();...

Are these Mozilla-specific CSS styles doing anything?

I'm working with some CSS (from a Joomla template) like this: div#logo { -moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent url(../images/head.png) no-repeat scroll 0 0; ... } I've looked up some of those -moz- properties and they seem t...

hg: unknown command 'qimportbz'

I followed the instructions on how to setup qimportbz here; I'm on WinXP and instead of adding: [extensions] qimportbz = C:\mozilla\mercurial\qimportbz to a .hgrc file I updated a Mercurial.ini file which seems to be the correct file to add extensions to for me.. then when I run hg help qimportbz I see the help for the qimportbz cmd,...

Can't build pyxpcom on OS X 10.6

I've been following these instructions at https://developer.mozilla.org/en/Building_PyXPCOM but getting this: $ make make export make[2]: Nothing to be done for `export'. make[4]: Nothing to be done for `export'. make[4]: Nothing to be done for `export'. /opt/local/bin/python2.5 ../../../src/config/nsinstall.py -L /usr/local/pyxpcom/bui...

Using border-radius and box-shadow together (CSS)

Ok, I know neither of these properties are completely supported yet, but I'm using them anyway :P When I add a border-radius and box-shadow (with and without vendor prefixes), the radius of the border-radius is not transparent to the box-shadow. Example: http://cndg.us/3f41a0 Is this possible to fix? I've also noticed that -webkit-box-...