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?
...
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="...
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...
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 ...
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...
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...
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...
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]
...
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...
Could you please suggest a debugging tool for browser issues?
...
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.
...
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.
...
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.
...
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...
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...
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();...
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...
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,...
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...
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-...